Thanks Donald.  I have a utility that imports csv files to sqlite so just
trying to get a handle on what I need to deal with!

Pete
lcSQL Software <http://www.lcsql.com>



On Wed, May 23, 2012 at 9:00 AM, <sqlite-users-requ...@sqlite.org> wrote:

> Message: 15
> Date: Wed, 23 May 2012 08:11:17 -0400
> From: Donald Griggs <dfgri...@gmail.com>
> To: General Discussion of SQLite Database <sqlite-users@sqlite.org>
> Subject: Re: [sqlite] csv test cases (was Details On New Features)
> Message-ID:
>        <cadlx_mpecpeln5fbhprcupw0pimqhigzjero38munrw5wep...@mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> -- Regarding: *  I have a question about #9 of your test cases.  According
> to RFC 4180, #9 is an invalid record.  The RFC states
>    "If fields are not enclosed with double quotes, then double quotes may
> not appear inside the fields."*
>
>
> My example #9 was:
> 9,imperial ("laughing") loon
>
>
> I'm no standards expert, but I would presume the statement was aimed mostly
> at anyone aiming to *create*  csv, rather than as a firm requirement that
> these flawed input lines not be imported by a *receiving* process -- but I
> may be wrong.
>
>
> Regarding:  *However, I imported your test cases into Open Office, Excel,
> and
> Numbers and the resulting spreadsheets all left the quotes in place in
> that record.  To confuse matters even more, if I then exported those
> spreadsheets as csv files, they all enlosed the string in quotes and
> escaped the original quotes.*
>
>
> All these programs, in addition to the current sqlite CLI, allow us to not
> only import these "loony" lines (as in #9) but export them to good csv and
> result in identical table data upon round-tripping -- Seems like a world I
> can live in    ;-)
>
> (BTW, I was involved in neither the design nor implementation of this
> sqlite code.)
>
> Donald
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to