yuva2achieve / solidbase

Automatically exported from code.google.com/p/solidbase
Apache License 2.0
0 stars 0 forks source link

SEPARATED BY ; gives problems #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
EXPORT CSV
WITH HEADER
SEPARATED BY ;
LOG EVERY 10000 RECORDS
FILE "export.csv" ENCODING "UTF-8"
...

Does not work.

Maybe introduce SEPARATED BY SEMICOLON

Workaround is prevent the ; ending the line:

EXPORT CSV
WITH HEADER
SEPARATED BY ; LOG EVERY 10000 RECORDS

Original issue reported on code.google.com by rene.de....@gmail.com on 19 Jun 2012 at 9:22

GoogleCodeExporter commented 8 years ago
And the exception is bad too:

java.lang.NullPointerException
        at solidbase.util.SQLTokenizer$Token.length(SQLTokenizer.java:439)
        at solidbase.core.plugins.ExportCSV.parse(ExportCSV.java:257)
        at solidbase.core.plugins.ExportCSV.execute(ExportCSV.java:79)
        at solidbase.core.CommandProcessor.executeListeners(CommandProcessor.java:330)
        at solidbase.core.CommandProcessor.executeWithListeners(CommandProcessor.java:169)
        at solidbase.core.SQLProcessor.process(SQLProcessor.java:75)
        at solidbase.core.Runner.executeSQL(Runner.java:199)
        at solidbase.Main.main0(Main.java:195)
        at solidbase.Main.pass2(Main.java:315)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at solidbase.Main.reload(Main.java:287)
        at solidbase.Main.main0(Main.java:161)
        at solidbase.Main.main(Main.java:81)

Original comment by rene.de....@gmail.com on 19 Jun 2012 at 9:23