Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56467 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84346 invoked from network); 22 Nov 2011 18:51:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Nov 2011 18:51:21 -0000 Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain analysisandsolutions.com from 166.84.1.89 cause and error) X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.89 mailbackend.panix.com Solaris 10 (beta) Received: from [166.84.1.89] ([166.84.1.89:58580] helo=mailbackend.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/B3-60398-82FEBCE4 for ; Tue, 22 Nov 2011 13:51:21 -0500 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 4AFC32851E; Tue, 22 Nov 2011 13:51:17 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 14662) id 07A6B24248; Tue, 22 Nov 2011 13:51:17 -0500 (EST) Date: Tue, 22 Nov 2011 13:51:17 -0500 To: Yasuo Ohgaki Cc: internals@lists.php.net Message-ID: <20111122185117.GA8927@panix.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [PHP-DEV] pg_escape_literal(), pg_escape_identifier() patch From: danielc@analysisandsolutions.com (Daniel Convissor) Hi Yasuo: > I've posted pgsql patch that adds > pg_escape_literal()/pg_escape_identifier() pg_escape_identifier() sounds good. Regarding pg_escape_literal(), which implements PQescapeLiteral, it is very similar to PHP's pg_esacpe_string(), implementing PQescapeStringConn. What is the benefit of adding this new function? (For those wanting more info, see: http://developer.postgresql.org/pgdocs/postgres/libpq-exec.html ) Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409