Re: Warning: PostgreSQL query failed - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: Warning: PostgreSQL query failed
Date
Msg-id 20030922131949.F607@hermes.hilbert.loc
Whole thread Raw
In response to Warning: PostgreSQL query failed  ("shreedhar" <shreedhar@lucidindia.net>)
List 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 by date:

Previous
From: "Cornelia Boenigk"
Date:
Subject: Re: Warning: PostgreSQL query failed
Next
From: Paul Thomas
Date:
Subject: Re: Question about connection java and Postgresql in Linux