Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 1D5322E005B for ; Wed, 30 Apr 2008 12:52:50 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95307-08 for ; Wed, 30 Apr 2008 12:52:42 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.224]) by developer.postgresql.org (Postfix) with ESMTP id 9FCCD2E0057 for ; Wed, 30 Apr 2008 12:52:40 -0300 (ADT) Received: by qb-out-0506.google.com with SMTP id o12so183100qba.17 for ; Wed, 30 Apr 2008 08:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=QQMRDqmg+f6e+NbNxVN6ErvBCz47MMvEO4Vg8bQqLZo=; b=tH9caN0wk1UBdtfpCMQqUaYZkv/sP3MtflXkpQmqXlRxJuM0GihYO1Si7oI6ABfmPeZf2x4np9tceE8jyIR0HPoHLxRcbL/ebyOkljwmQI1e8THTcWEBh7Banpj1gVBejQl0TG5fqrcQCeLZVkixoRJnfZh3BvOWUySNmeY7kSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e3IraCwiuCkpfnuIPbBo/Zsj9RcWKjjI2jWFjs+tceWjk1RrlKw4NjLOsKHW9PbuFzTDUNuKuPyj8FJlg1r4GAlJJ6c+sqQheNBLor8xbedHBo5xhIGkyBcuu33snX2Y6yqw9NriQzLGva0xxUobjtVrwHEKBl/i9O+L6UM+RwU= Received: by 10.114.155.1 with SMTP id c1mr900135wae.174.1209570759220; Wed, 30 Apr 2008 08:52:39 -0700 (PDT) Received: by 10.114.137.7 with HTTP; Wed, 30 Apr 2008 08:52:39 -0700 (PDT) Message-ID: Date: Wed, 30 Apr 2008 09:52:39 -0600 From: "Scott Marlowe" To: "Andy Anderson" Subject: Re: Quoting " Cc: pgsql-general@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/1418 X-Sequence-Number: 132387 On Wed, Apr 30, 2008 at 7:10 AM, Andy Anderson wrote: > In a test I just did, the sequence \" (backslash double-quote) is > interpreted as just a " inside of the E'...' string constant expression. > This is great, since PHP's addslashes() sticks them in along with the other > stuff I really need to quote like ' and \. But I see that \" isn't > documented in the manual in section 4.1.2.1. I assume this is, in fact, > standard behavior for Postgres? (Perhaps a comprehensive table might be a > good idea at this point in the manual.) Why are you using php's addslashes() function? Is there something missing from pg_escape_string()??? Or are you doing something else I'm not thinking of?