Re: [sqlite] Syntax Errors with various strings?

2006-07-05 Thread Gussimulator
uly 05, 2006 5:13 PM Subject: Re: [sqlite] Syntax Errors with various strings? Gussimulator wrote: Thanks Christian, I'll give it a shot later. Just because using quotation marks (did a quick macro that adds them to my string) did the job, doesnt mean its a better solution than this one

Re: [sqlite] Syntax Errors with various strings?

2006-07-05 Thread Gerry Snyder
Gussimulator wrote: Thanks Christian, I'll give it a shot later. Just because using quotation marks (did a quick macro that adds them to my string) did the job, doesnt mean its a better solution than this one. In particular, if your strings include the ' character, you will need to double

Re: [sqlite] Syntax Errors with various strings?

2006-07-05 Thread Gussimulator
To: Sent: Wednesday, July 05, 2006 7:18 AM Subject: Re: [sqlite] Syntax Errors with various strings? Have you tried using the quote() function? From http://www.sqlite.org/lang_expr.html quote(X) This routine returns a string which is the value of its argument suitable for inclusion into another S

Re: [sqlite] Syntax Errors with various strings? & ...Ampersand

2006-07-05 Thread Gussimulator
Enclosing the strings with quotation marks did the job. Thanks a lot. - Original Message - From: "C.Peachment" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 05, 2006 6:39 AM Subject: Re: [sqlite] Syntax Errors with various strings? & ...Ampersand The soluti

Re: [sqlite] Syntax Errors with various strings?

2006-07-05 Thread Dennis Cote
Gussimulator wrote: Hi, When I have strings with "-", "!", "\" or similar characters I get a syntax error.. Now, I thought this would happen with a few of this chars so I made 2 routines in my program, one that converts each of this chars into a flag string, which then, by the other routine ca

Re: [sqlite] Syntax Errors with various strings?

2006-07-05 Thread Christian Nassau
Have you tried using the quote() function? >From http://www.sqlite.org/lang_expr.html quote(X)This routine returns a string which is the value of its argument suitable for inclusion into another SQL statement. Strings are surrounded by single-quotes with escapes on interior quotes as need

Re: [sqlite] Syntax Errors with various strings? & ...Ampersand

2006-07-05 Thread C.Peachment
The solution I have adopted to both of these issues is to: 1. ensure all strings are enclosed by matching quotation marks, and 2. use the question mark substitution form of prepared statement with subsequent bind of parameters. This can only be done from a programming language and not the command

[sqlite] Syntax Errors with various strings?

2006-07-05 Thread Gussimulator
Hi, When I have strings with "-", "!", "\" or similar characters I get a syntax error.. Now, I thought this would happen with a few of this chars so I made 2 routines in my program, one that converts each of this chars into a flag string, which then, by the other routine can be reverted to the