Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15554 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58160 invoked by uid 1010); 23 Mar 2005 04:06:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58108 invoked from network); 23 Mar 2005 04:06:02 -0000 Received: from unknown (HELO gmail.com) (127.0.0.1) by localhost with SMTP; 23 Mar 2005 04:06:02 -0000 X-Host-Fingerprint: 64.233.184.202 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.202:47481] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 75/C2-04146-BEAE0424 for ; Tue, 22 Mar 2005 23:04:59 -0500 Received: by wproxy.gmail.com with SMTP id 37so69328wra for ; Tue, 22 Mar 2005 20:04:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=YwAMDMr9EKjxCvgEoUFqmJHysjRtHYG5gImsOQKBLhfskePBsECbBS6dFNe8NwsZVU++cCNGyHfCmXLtMwJWpWFS0njynWsrTXscuXRIxhlbiHPMu6Tzk69+7gZVfG4ZX8x6Ua6f+uRwQ8eit1Fds4yC0NdVjX1QBm32iFPPNS8= Received: by 10.54.105.20 with SMTP id d20mr219604wrc; Tue, 22 Mar 2005 20:04:57 -0800 (PST) Received: by 10.54.44.57 with HTTP; Tue, 22 Mar 2005 20:04:57 -0800 (PST) Message-ID: <4e89b4260503222004342d5bed@mail.gmail.com> Date: Tue, 22 Mar 2005 23:04:57 -0500 Reply-To: Wez Furlong To: Christopher Kings-Lynne Cc: Dan Scott , php-dev In-Reply-To: <4240E865.9050209@familyhealth.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <423F84AD.9070809@familyhealth.com.au> <027201c52ed8$8b369170$1200000a@intra.emini.dk> <42402D82.8000305@familyhealth.com.au> <4240BFD5.9090605@familyhealth.com.au> <4e89b42605032219241edf4a16@mail.gmail.com> <4240E38E.6060504@familyhealth.com.au> <4e89b42605032219476a70a77d@mail.gmail.com> <4240E865.9050209@familyhealth.com.au> Subject: Re: [PHP-DEV] pdo_pgsql From: kingwez@gmail.com (Wez Furlong) > So you are proposing that we rewrite :name and ? params into $n format > and use pgsql's native prepare/bind functions to do the binding? Yes. > BTW, isn't the current sql parser broken for mysql backquoting anyway? > > eg: SELECT * FROM `my_weird ? table`; > > And in case you're wondering, yes that is a perfectly legal mysql table > name. Probably, but again, I'm not too worried about this right now. It's impossible to cover everything 100%; I think a reasonable way out for people that have to work with such an atrocity is to set an attribute to tell PDO not to bother parsing the query. --Wez.