Re: [sqlite] Unicode quote characters parsing in FTS5 queries

2020-02-03 Thread Simon Slavin
On 3 Feb 2020, at 9:30pm, David Guillen Fandos wrote: > However my queries where choking on some input that contained the U+2018 and > U+2019 characters. It seems like these chars are being treated like a regular > quote character At least one version of SQL respects those characters for

[sqlite] Unicode quote characters parsing in FTS5 queries

2020-02-03 Thread David Guillen Fandos
Hello there, I was running some queries using FTS5 in my database and I generally sanitize the input by removing non-ascii characters, except for all the unicode chars above 128 or so. That way I get rid of stuff like quotes, double quotes, periods, etc. However my queries where choking on some

Re: [sqlite] escape quote for csv import

2013-06-19 Thread Steve Martin
Hi > (There is no official CSV standard, and there is no widely supported escaping > mechanism.) Refer to RFC4180 for CSV standard. Steve Martin Technical Lead NEC New Zealand Limited NEC House, Level 6, 40 Taranaki Street, PO Box 1936, Wellington 6140, New Zealand T: 043816291 M:

Re: [sqlite] escape quote for csv import

2013-06-19 Thread j . merrill
ouble-quote. "abc","the char in parens ("") is doublequote","def" -Original Message- Date: Tue, 18 Jun 2013 22:02:31 +0200 From: Clemens Ladisch <clem...@ladisch.de> To: sqlite-users@sqlite.org Subject: Re: [sqlite] escape quote for csv import

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Petite Abeille
On Jun 18, 2013, at 11:07 PM, Roland Hughes wrote: > and "tools.ietf.org" is exactly WHERE on the sqlite.org path? "Everything is amazing and nobody is happy" -- Louis CK ___ sqlite-users mailing list

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Roland Hughes
and "tools.ietf.org" is exactly WHERE on the sqlite.org path? From: sqlite-users-boun...@sqlite.org on behalf of Petite Abeille Sent: Tuesday, June 18, 2013 5:03 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] escape quo

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Petite Abeille
On Jun 18, 2013, at 10:46 PM, Roland Hughes wrote: > It isn't documented anywhere, but, you have to BOTH quote the string AND > double up the quotes inside of it. Indeed: 7. If double-quotes are used to enclose fields, then a double-quote appearing

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Roland Hughes
f Petite Abeille Sent: Tuesday, June 18, 2013 4:19 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] escape quote for csv import On Jun 18, 2013, at 10:02 PM, Clemens Ladisch <clem...@ladisch.de> wrote: > (There is no official CSV standard, and there is no widely su

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Roland Hughes
Not an option, but thanks for the suggestion. From: sqlite-users-boun...@sqlite.org on behalf of Clemens Ladisch Sent: Tuesday, June 18, 2013 4:02 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] escape quote for csv import Roland Hughes wrote: >

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Petite Abeille
On Jun 18, 2013, at 10:02 PM, Clemens Ladisch wrote: > (There is no official CSV standard, and there is no widely supported > escaping mechanism.) Perhaps. But that's not an excuse to ignore the de facto convention: Common Format and MIME Type for Comma-Separated Values

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Igor Tandetnik
On 6/18/2013 4:02 PM, Clemens Ladisch wrote: (There is no official CSV standard, and there is no widely supported escaping mechanism.) Well, there's http://tools.ietf.org/html/rfc4180 -- Igor Tandetnik ___ sqlite-users mailing list

Re: [sqlite] escape quote for csv import

2013-06-18 Thread Clemens Ladisch
Roland Hughes wrote: > How does one escape a in a CSV file so it will correctly import? The sqlite3 tool allows to configure the separator, but the quote character for delimiting fields is hardcoded. (There is no official CSV standard, and there is no widely supported escaping mechanism.) > I

[sqlite] escape quote for csv import

2013-06-18 Thread Roland Hughes
I'm sure this question has been asked a thousand times, but I did not find a useable answer anywhere on the web. How does one escape a in a CSV file so it will correctly import? I have data coming from a translation database. No, I cannot go fix the database, I can only massage the CSV and

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread jose isaias cabrera
"Derrell Lipman" wrote... > > >> >> and I did an SQL command dump of the string that I am passing to the D >> SQLite wrapper and it is escaped. I am reclining on the idea that it is >> the >> D wrapper. I have to go to post this on the D wrapper newsgroup. >> > > My understanding is that you

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread Derrell Lipman
> > > and I did an SQL command dump of the string that I am passing to the D > SQLite wrapper and it is escaped. I am reclining on the idea that it is > the > D wrapper. I have to go to post this on the D wrapper newsgroup. > My understanding is that you can call C library functions from D. You

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread jose isaias cabrera
"David Bicking" wrote... > On Wed, 2009-02-11 at 16:12 -0500, jose isaias cabrera wrote: >> "P Kishor" wrote... >> >> >> > On Wed, Feb 11, 2009 at 2:00 PM, jose isaias cabrera >> > wrote: >> >> >> >> >> >> "P Kishor" wrote... >> >> >> >> >> >>> On Wed, Feb 11, 2009 at 1:48

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread David Bicking
On Wed, 2009-02-11 at 16:12 -0500, jose isaias cabrera wrote: > "P Kishor" wrote... > > > > On Wed, Feb 11, 2009 at 2:00 PM, jose isaias cabrera > > wrote: > >> > >> > >> "P Kishor" wrote... > >> > >> > >>> On Wed, Feb 11, 2009 at 1:48 PM, jose isaias cabrera > >>>

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread jose isaias cabrera
"P Kishor" wrote... ...clip... >> after this, I will prepare s and UPDATE Xtra3. Here is the question: the >> original UPDATE should have worked, correct? Meaning that the >> filename'3.txt should have been prepared as filename''3.txt, correct? >> > > > yup. That is what I did... Ok, I will

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread P Kishor
On Wed, Feb 11, 2009 at 3:12 PM, jose isaias cabrera wrote: > > "P Kishor" wrote... > > >> On Wed, Feb 11, 2009 at 2:00 PM, jose isaias cabrera >> wrote: >>> >>> >>> "P Kishor" wrote... >>> >>> On Wed, Feb 11, 2009 at 1:48 PM, jose isaias

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread jose isaias cabrera
"P Kishor" wrote... > On Wed, Feb 11, 2009 at 2:00 PM, jose isaias cabrera > wrote: >> >> >> "P Kishor" wrote... >> >> >>> On Wed, Feb 11, 2009 at 1:48 PM, jose isaias cabrera >>> wrote: Greetings and salutations... I am having

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread P Kishor
On Wed, Feb 11, 2009 at 2:00 PM, jose isaias cabrera wrote: > > > "P Kishor" wrote... > > >> On Wed, Feb 11, 2009 at 1:48 PM, jose isaias cabrera >> wrote: >>> >>> Greetings and salutations... >>> >>> I am having a problem with an specific UPDATE.

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread jose isaias cabrera
"P Kishor" wrote... > On Wed, Feb 11, 2009 at 1:48 PM, jose isaias cabrera > wrote: >> >> Greetings and salutations... >> >> I am having a problem with an specific UPDATE. One of the functions of >> my >> program is to capture all of the files in a directory so that

Re: [sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread P Kishor
On Wed, Feb 11, 2009 at 1:48 PM, jose isaias cabrera wrote: > > Greetings and salutations... > > I am having a problem with an specific UPDATE. One of the functions of my > program is to capture all of the files in a directory so that one can search > on a file name and

[sqlite] Single quote, newlines and UPDATES

2009-02-11 Thread jose isaias cabrera
Greetings and salutations... I am having a problem with an specific UPDATE. One of the functions of my program is to capture all of the files in a directory so that one can search on a file name and find out where that file is quickly. This is working perfectly, until there is a file that

[sqlite] to quote or not ?

2007-03-14 Thread Stef Mientki
I've a problem with finding the correct algorithm for quoting. When I've a view in the database, where 2 tables have the same field names "PatNr", doing a pragma to get the fields of the view, I get: PatNr PatNr:1 For quering the data from that view, I don't ask for the view, but generate

[sqlite] Réf. : Re: [sqlite] single quote protection

2004-04-01 Thread Gregory Letellier
 thx for your help     ---Message original---   De : Tito Ciuro Date : 04/01/04 14:24:31 A : Gregory Letellier Cc : [EMAIL PROTECTED] Sujet : Re: [sqlite] single quote protection   Hello Gregory,   http://www.mail-archive.com/[EMAIL PROTECTED]/msg01031.html   Advice: use

[sqlite] single quote protection

2004-04-01 Thread Gregory Letellier
hello,   i've many strings value to insert in a varchar column, but this strings contains character : '   how to protect it ?   thx for your help !       IncrediMail - La messagerie électronique a enfin évolué - Cliquer