Re: Strange parse error??

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Strange parse error??
Дата
Msg-id Pine.BSF.4.21.0102221503150.14234-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Strange parse error??  (Bjørn T Johansen <bjorntj@softinn.no>)
Список 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 по дате отправления:

Предыдущее
От: Bjørn T Johansen
Дата:
Сообщение: Strange parse error??
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Strange parse error??