From: | Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> |
---|---|
To: | Postgre General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Warning: PostgreSQL query failed |
Date: | 2003-09-22 11:19:49 |
Message-ID: | 20030922131949.F607@hermes.hilbert.loc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin 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
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 2003-09-22 15:43:02 | Re: error with functions |
Previous Message | Cornelia Boenigk | 2003-09-22 11:16:46 | Re: [GENERAL] Warning: PostgreSQL query failed |
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Thomas | 2003-09-22 12:29:00 | Re: Question about connection java and Postgresql in Linux |
Previous Message | Cornelia Boenigk | 2003-09-22 11:16:46 | Re: [GENERAL] Warning: PostgreSQL query failed |