Re: Warning: PostgreSQL query failed

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: Warning: PostgreSQL query failed
Дата
Msg-id 20030922131949.F607@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Warning: PostgreSQL query failed  ("shreedhar" <shreedhar@lucidindia.net>)
Список pgsql-general
> 107-Flash 5cartoons and Games\SMARTSOUND\SOUNDFILES\KICKIN'BACK.SDS |
                                                            ^
                                This
will make the parser think the string ends here and assume
BACK to be intended to be part of valid SQL syntax. You need
to escape your input strings.

> insert into tblFile (filename, filesize, filetype, modifieddate, parentid,
> catalogid) values ('KICKIN\'BACK.SDS', 13803564 , ' OpenOffice.org 5.0 Chart
> ', '11/22/2000 01:15:54 PM', 69455, 61)
Hm, you do seem to do escaping. The number of slashes may not
be sufficient, though.

HTH,
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

В списке pgsql-general по дате отправления:

Предыдущее
От: "Cornelia Boenigk"
Дата:
Сообщение: Re: Warning: PostgreSQL query failed
Следующее
От: Paul Thomas
Дата:
Сообщение: Re: Question about connection java and Postgresql in Linux