Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45755 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31168 invoked from network); 12 Oct 2009 17:00:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 17:00:13 -0000 Authentication-Results: pb1.pair.com header.from=samuel.roze@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=samuel.roze@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.155 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: 72.14.220.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:49709] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/00-54920-B9063DA4 for ; Mon, 12 Oct 2009 13:00:12 -0400 Received: by fg-out-1718.google.com with SMTP id d23so673792fga.11 for ; Mon, 12 Oct 2009 10:00:03 -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:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=vqTUP3mcuCRuM245U3xH+aXuKcdU1Kp4zY6TGjCpulU=; b=WnseZ96rUyRlt9DNAcPkcyW58q7c1TXOqeeofF5l/4CDOYvp53+R6QgnWYNRU8WX3z 6qTGl7UevAhgp+T0rPXg4453FvDLNsWMLn0XsqhXDp7TyhzMonfyYEFG6eaS+XWipvDj /8/OJX+iabAvvZ/P7xEgMx8BGVQvyJSnkWPPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=FhZBxjpQrnhy6Az9fwmpFatkeZgZmLapyAJhhPkGGadR9uc7E0jcNnxhef1TQ3+/sU C635lXTVAdTP9IiKDpgKH7HY1GTlHCASkiAEUxDYjBANfkpcPOh4NquAwad2faTb88L8 HNumuKUCjePxS+fXiS2NLlqcdTpi0OB881cl8= Received: by 10.86.192.34 with SMTP id p34mr5450900fgf.28.1255366803356; Mon, 12 Oct 2009 10:00:03 -0700 (PDT) Received: from ?192.168.0.10? (lns-bzn-54-82-251-72-162.adsl.proxad.net [82.251.72.162]) by mx.google.com with ESMTPS id l19sm118686fgb.2.2009.10.12.10.00.02 (version=SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 10:00:02 -0700 (PDT) To: internals@lists.php.net In-Reply-To: <1255038690.10759.9.camel@samuel-laptop> References: <1255038690.10759.9.camel@samuel-laptop> Content-Type: text/plain; charset="UTF-8" Date: Mon, 12 Oct 2009 19:00:22 +0200 Message-ID: <1255366822.3605.80.camel@samuel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 8bit Subject: Re: Patch: Use notices in PDO From: samuel.roze@gmail.com (Samuel ROZE) Hi, I'm writing here to take a point about the discussion. On one side, you want to turn this functionality to a global function, like it is describe into this patch and on the other side, you said that on MySQL and Oracle we can get this notices with queries so it is not needed for them but only for PostgreSQL. Before continuing every development I want to make like a survey about what I (or we) will do. Here are my proposals: 1. Make this functionality only for PostgreSQL, with a "pgGetNotices" function. 2. Continue development for MySQL & Oracle, with the known that if notices recuperation is enabled, PDO will have to do queries. 3. Let development at this stage waiting that somebody else propose a notices patch for other Database than PostgreSQL. Note: For MySQL there'is the mysql_info function (http://dev.mysql.com/doc/refman/5.1/en/mysql-info.html) Thanks a lot for your reply. Samuel. Le jeudi 08 octobre 2009 à 23:51 +0200, Samuel ROZE a écrit : > Hi, > > I've make a patch which insert notices concepts to PDO. It create: > - PDO::noticeInfo() - to be like errorInfo > - PDO::ATTR_LOG_NOTICES, the name of the PDO parameter > - PDO::NOTICES_FETCH - fetch notices > - PDO::NOTICES_NONE - don't fetch notices > > The notices HashTable is emptied at each queries. > > There is a patch to implements this function into PDO: > http://www.d-sites.com/wp-content/uploads/2009/10/php-5_3-pdo-notices-managment.patch > > And one other to implements notices recuperation for PostgreSQL: > http://www.d-sites.com/wp-content/uploads/2009/10/php-5_3-pdo-pgsql-notices-managment.patch > > It can be done for Oracle, i'm sure. > > Thanks for feedbacks. > Samuel. >