X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id CD318D1B53C for ; Fri, 3 Oct 2003 16:06:18 +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 79998-05 for ; Fri, 3 Oct 2003 13:05:30 -0300 (ADT) Received: from mxzilla3.xs4all.nl (mxzilla3.xs4all.nl [194.109.6.49]) by svr1.postgresql.org (Postfix) with ESMTP id 83991D1B4F2 for ; Fri, 3 Oct 2003 13:05:29 -0300 (ADT) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.3.11]) by mxzilla3.xs4all.nl (8.12.10/8.12.10) with ESMTP id h93G5Sp3047199; Fri, 3 Oct 2003 18:05:28 +0200 (CEST) Received: from xs1.xs4all.nl (jtv@localhost.xs4all.nl [127.0.0.1]) by xs1.xs4all.nl (8.12.9/8.12.9) with ESMTP id h93G5SdN082095; Fri, 3 Oct 2003 18:05:28 +0200 (CEST) (envelope-from jtv@xs4all.nl) Received: (from Unknown UID 8109@localhost) by xs1.xs4all.nl (8.12.9/8.12.9/Submit) id h93G5RBl082094; Fri, 3 Oct 2003 18:05:27 +0200 (CEST) (envelope-from jtv) Date: Fri, 3 Oct 2003 18:05:27 +0200 From: "Jeroen T. Vermeulen" To: Tom Lane Cc: greg@turnstep.com, pgsql-interfaces@postgresql.org Subject: Re: PQescapeString handling of \0 Message-ID: <20031003160527.GD75826@xs4all.nl> Mail-Followup-To: Tom Lane , greg@turnstep.com, pgsql-interfaces@postgresql.org References: <19872.1065195062@sss.pgh.pa.us> <20031003155101.GC75826@xs4all.nl> <26244.1065196923@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26244.1065196923@sss.pgh.pa.us> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/5 X-Sequence-Number: 4494 On Fri, Oct 03, 2003 at 12:02:03PM -0400, Tom Lane wrote: > > I think you might be confusing PQescapeString (intended for text) with > PQescapeBytea (intended for binary data). We do not support any text I'm certain that I'm confusing those two--what I don't know is whether that's necessarily a bad thing. What exactly constitutes a binary string? Do strings of text with some weird bytes in them fit the definition? Jeroen