HSQLDB Resultset - how to get HSQLDB return space without quotes as space and not null? -
i using hsqldb link existing text files, fire sql upon retrieve data in resultset. problem if text file has data space, hsql db resultset returns null those. ex: text file row:
data1|data2|| |data3
i expecting resultset
data1,data2,null, ,data3
the hsqldb doc guid/chpt5 states that: "empty fields treated null. these fields there nothing or spaces between separators." there way change default behaviour? treat no space between seperators null , space between seperators space?
according hsqldb documentation, "quoted empty strings treated empty strings.". in case, able modify existing text files? if so, replace instances of 1 or more spaces between 2 seperators using regular expression (ex: \|\s+\|
) quoted equivalent:
data1|data2|| |data3
would become
data1|data2||" "|data3
this should allow hsqldb pick field values instead of setting them null.
Comments
Post a Comment