Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62162 invoked from network); 24 May 2011 05:04:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2011 05:04:31 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:57331] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/D2-34196-D5C3BDD4 for ; Tue, 24 May 2011 01:04:30 -0400 Received: by bwz18 with SMTP id 18so6086866bwz.29 for ; Mon, 23 May 2011 22:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type; bh=bmjynLx9y+W4U1s9GyyTX7c1y6wwKZ2ZZdM6makZsE0=; b=x+Szdz72hFAuE+TENZ9gpEhEQmM70B1z2y0fGoOdaaa8S/ZsgCi7Sv4BJySMGfZrnQ 1UJ2hD+YTLwwcKslSmJNoRE9ul9PJa0Cg4YX2r+AzXJI5MbQlRmHn8UBzuqG3DxkhvRE HO/PSZcHG0ho2TDRe8WCyOGQSKHci6tZ0COKE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=qwDAx8+xju5o8yqK9ci7NEdw5C/KHn7QSGQSFFHlacLB6czZzW0CG0bYZqceAvEmed P9G1ubreCDujGUO78YrxR0GWxuPlUymEmy8P4aPFiG/s/QMz/aRi+Rld/6bRen1WI0Wo 80V4Xrwku524KXnP0VfN97ekuIXSNSeN+lUKQ= Received: by 10.204.82.166 with SMTP id b38mr2668373bkl.207.1306213466440; Mon, 23 May 2011 22:04:26 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.204.119.79 with HTTP; Mon, 23 May 2011 22:03:45 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 May 2011 14:03:45 +0900 X-Google-Sender-Auth: fH3fQ9U0PcuAxKWw9NYenNfq-mQ Message-ID: To: Hannes Magnusson Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PATCH] pg_escape_literal/pg_escape_identifier for pgsql From: yohgaki@ohgaki.net (Yasuo Ohgaki) 2011/5/24 Yasuo Ohgaki : >> Should we really provide fallback if PQescape(Literal|Identifier) >> isn't available? Did you copy the escaping from postgresql directly? > > Wouldn't it nice to have the same escaping capability for 8.x? > It's not possible to copy the code, since it's binded to PostgreSQL's > multibyte function. It's possible to use mbstring function for thatbut it's > not default. I forgot to mention. It may seems to strange way to escape strings, (i.e. ' E' prefix) but all currently supported PostgreSQL versions accept this escape. -- Yasuo Ohgaki yohgaki@ohgaki.net