pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: Postgre General <pgsql-general@postgresql.org>
Subject: Re: Warning: PostgreSQL query failed
Date: Mon, 22 Sep 2003 13:19:49 +0200
Message-ID: <20030922131949.F607@hermes.hilbert.loc> (raw)
In-Reply-To: <016901c380f6$7b115730$1201a8c0@a4005>
References: <016901c380f6$7b115730$1201a8c0@a4005>

> 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



view thread (3+ messages)

Message-ID: <20030922131949.F607@hermes.hilbert.loc>
Permalink:  ../20030922131949.F607@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/20030922131949.F607@hermes.hilbert.loc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Karsten.Hilbert@gmx.net, pgsql-general@postgresql.org
  Subject: Re: Warning: PostgreSQL query failed
  In-Reply-To: <20030922131949.F607@hermes.hilbert.loc>
  References: <016901c380f6$7b115730$1201a8c0@a4005> <20030922131949.F607@hermes.hilbert.loc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox