Hi David
You need to modify "import_format.txt" so that the format line reads:
Format=TabDelimited STRICT
InstantDB will use the STRICT keyword to tell it that quotes do not
delimit string constants and will "strictly" follow the tab character
as the column delimiter.
See
http://instantdb.enhydra.org/software/documentation/import.html#Importin
g-Data-from-Text-Files
for an explanation of why it does this.
Pete
----- Original Message -----
From: "David H. Young" <david.young@lutris.com>
Date: Tuesday, November 28, 2000 5:21 pm
Subject: InstantDB: single quotes in imported data
> ScriptTool is choking on single quotes when I do an import from
> a tab delimited file. I reduced the import1.txt file to a single line
> containing 2 single quotes. I tried escaping the single quotes with
> "\" to no avail. How do I pre-process single quotes?
>
> Thanks, David
>
> Connected to jdbc:idb:jack.prp
> Driver InstantDB JDBC Driver
> Version Version 3.21
>
> sql1.txt DROP TABLE Subscriber
> sql1.txt IMPORT Subscriber FROM "import1.txt" USING
> "import_format.txt"Error importing line 1
> david@lutris.com David Young Joe's Garage no It's been a great day.
> java.sql.SQLException: java.sql.SQLException: Column Contact cannot
> accept value s been a great day.
> at org.enhydra.instantdb.db.Table.addRowAtRow(Table.java, Compiled
> Code)
>
> --
> David H. Young
> Chief Evangelist
> Lutris Technologies, Inc.
> 1200 Pacific Avenue, Suite 300
> Santa Cruz, CA 95060 USA
> 831.460.7310; 831.471.9754 (fax)
> http://www.lutris.com
> http://www.enhydra.org
>
>
> -------------------------------------------------------------------
> ----------
> To unsubscribe from this mailing list, send email to
> majordomo@enhydra.orgwith the text "unsubscribe instantdb" in the
> body of the email.
> If you have other questions regarding this mailing list, send
> email to
> the list admin at owner-instantdb@enhydra.org.
>
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|