X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B2A0BD1B911 for ; Mon, 22 Sep 2003 11:20:38 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 07498-05 for ; Mon, 22 Sep 2003 08:20:29 -0300 (ADT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 7CD56D1B57B for ; Mon, 22 Sep 2003 08:20:25 -0300 (ADT) Received: (qmail 22965 invoked by uid 65534); 22 Sep 2003 11:20:27 -0000 Received: from p5087ED73.dip0.t-ipconnect.de (EHLO hermes.hilbert.loc) (80.135.237.115) by mail.gmx.net (mp025) with SMTP; 22 Sep 2003 13:20:27 +0200 X-Authenticated: #1433807 Received: (from ncq@localhost) by hermes.hilbert.loc (8.11.6/8.11.6/SuSE Linux 0.5) id h8MBJnM01615 for pgsql-general@postgresql.org; Mon, 22 Sep 2003 13:19:49 +0200 Date: Mon, 22 Sep 2003 13:19:49 +0200 From: Karsten Hilbert To: Postgre General Subject: Re: Warning: PostgreSQL query failed Message-ID: <20030922131949.F607@hermes.hilbert.loc> Mail-Followup-To: Postgre General References: <016901c380f6$7b115730$1201a8c0@a4005> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <016901c380f6$7b115730$1201a8c0@a4005> User-Agent: Mutt/1.3.22.1i Re-X-turn-receipt-to: Karsten.Hilbert@gmx.net Di-X-sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi-X-rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri-X-ority: 2 (High) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/1421 X-Sequence-Number: 49640 > 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