Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45718 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11980 invoked from network); 10 Oct 2009 17:32:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2009 17:32:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=samuel.roze@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=samuel.roze@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: samuel.roze@gmail.com X-Host-Fingerprint: 209.85.219.227 mail-ew0-f227.google.com Received: from [209.85.219.227] ([209.85.219.227:34545] helo=mail-ew0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/20-10808-C15C0DA4 for ; Sat, 10 Oct 2009 13:32:13 -0400 Received: by ewy27 with SMTP id 27so3122769ewy.23 for ; Sat, 10 Oct 2009 10:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=7IPoSC6he/bL295tk9VAWMJN+o8FhuFsl0TGYYdtARg=; b=Vs7BqU2WYSEzokRNQhlpUDLeHl86Wv2TzcY8MceumWo+nJg5Fb+Reb9invs4Y8zKEl 9mt3l5InrtInoRU5UXMW62Xl1Cb3PvCrAq5IA3HicofvdFLR/XmrlKX+DAnce2QBZDEU 2tlwYoC+UxKcxWxrro13oop6FGze2/uMpykqo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=XvL3bj0LFmqsROhq5r317bypGZFOnmbSH4ogg5I/JL0SoA0CFLvj2vlQgis1in1z8n opuR81ObgN+Nuynadk8tLCWnikvOwOaQPkEmum6TCiYRuk8ykf+qiOjKm2gHzPZVqU2m vULbsVg4VLUVZBp88T5e84nPyEhPeVfn9+f6M= Received: by 10.211.160.19 with SMTP id m19mr1912010ebo.2.1255195929937; Sat, 10 Oct 2009 10:32:09 -0700 (PDT) Received: from ?192.168.0.10? (lns-bzn-53-82-65-38-114.adsl.proxad.net [82.65.38.114]) by mx.google.com with ESMTPS id 10sm12972eyz.32.2009.10.10.10.32.08 (version=SSLv3 cipher=RC4-MD5); Sat, 10 Oct 2009 10:32:09 -0700 (PDT) To: Lester Caine Cc: PHP internals In-Reply-To: <4AD09F8B.1010205@lsces.co.uk> References: <1255038690.10759.9.camel@samuel-laptop> <1255120269.3605.14.camel@samuel-laptop> <1255122734.3605.21.camel@samuel-laptop> <4AD09F8B.1010205@lsces.co.uk> Content-Type: text/plain; charset="UTF-8" Date: Sat, 10 Oct 2009 19:32:25 +0200 Message-ID: <1255195945.3605.49.camel@samuel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Re: Patch: Use notices in PDO From: samuel.roze@gmail.com (Samuel ROZE) Le samedi 10 octobre 2009 à 15:51 +0100, Lester Caine a écrit : > Ferenc Kovacs wrote: > >>> Then see how we can do it for the other drivers at the same time. > >> I'm looking for Oracle. > >> Is somebody know how we can do for MySQL (and how raise notices with > >> it) ? > >> > > http://dev.mysql.com/doc/refman/5.1/en/show-warnings.html > > Something to consider here is that, like MySQL in this case, many of > these types of activity ARE now available as SQL queries and so do not > have to be handled specially by the driver. It is only those areas where > the results are only available by non-SQL calls that should be added as > special cases. PDO has no interest in mapping SQL between different > engines! Carrying out additional SQL calls in the background to emulate > functions required by other drivers just seems wrong? The Firebird > engine has been working to move all of the 'service' facilities which > would normally be handled directly by the driver into simple SQL queries > to get around this problem from the other end. It is the case for MySQL and Oracle...so for your mind, we don't have to make this option available ? I disagree because PDO want make that PHP codes support many Databases and if I want to get this notices on MySQL, I can use "SHOW WARNING" but, if my apps is used on PostgreSQL, my query will fail ! If I can use PDO::noticeInfo in MySQL and in PostgreSQL, it will be great. :-) And we have to know that these additional requests will be executed only if PDO::ATTR_LOG_NOTICES is turned to 1 ! So user want them... ;-) > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk// > Firebird - http://www.firebirdsql.org/index.php >