Re: Strange parse error?? - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Strange parse error??
Date
Msg-id Pine.BSF.4.21.0102221503150.14234-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Strange parse error??  (Bjørn T Johansen <bjorntj@softinn.no>)
List pgsql-sql
On Thu, 22 Feb 2001, [ISO-8859-1] Bj�rn T Johansen wrote:

> I am trying to do a simple update (or at least I thought it was
> simple), but I just keep getting a parse error, saying:
> 
> Error executing query
> 
> Update "Config" Set "Wave" = 'F:\wav\BTJ.wav',"Answer" = 20,
> "Recordwav" ='F:\wav\',"CalledID" = '12345678' where "Recno" = 1
> 
> PostgreSQL error message:
> ERROR: parser: parse error at or near "12345678"

I believe that it's because postgres treats \ as an escape character
so the 'F:\wav\' was probably treating the closing \' as an escaped
quote inside the string.  You'll probably want to double the \ 
characters.




pgsql-sql by date:

Previous
From: Bjørn T Johansen
Date:
Subject: Strange parse error??
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: Strange parse error??