Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45706 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9631 invoked from network); 9 Oct 2009 12:06:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2009 12:06:06 -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 209.85.220.225 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.220.225 mail-fx0-f225.google.com Received: from [209.85.220.225] ([209.85.220.225:44562] helo=mail-fx0-f225.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/45-19113-C272FCA4 for ; Fri, 09 Oct 2009 08:06:05 -0400 Received: by fxm25 with SMTP id 25so6678711fxm.24 for ; Fri, 09 Oct 2009 05:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LzinKyqXTo6462y4XGM2zGaEWZ0fHR8uqyETBOMiKrw=; b=IP4y0VDlG8yopvmA25epMKcqFmz3PjnEQUV5hXe8iliUkHRciMmnoJ3sSDy2e62L1y eGI6H2Wr+C/vPG9poE/WnjshimgUnXAS7h/2Cwx3hJWgaJYuvlxJ50GDwo+pKGa5a/Sq PnlhP7nRk3U5D84yrkLzSiyJJJmT78xIYqTKs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Nc0gjdqq8TRYE3EA4tF77c7ZZs+cGDyXDNUYXH5W2c8wCGf+dnD1BG7PfSzMJApmXB 9Xxh5gdWd6bkYnfR/+mQRzJFZxFwFS8ZeQFoncXQhgcz7wxpkaDR94qRwqe1dlz9m471 ruOfCEgXRxmep2XJibcILswyspr6JhPbKtZ5E= MIME-Version: 1.0 Received: by 10.204.34.18 with SMTP id j18mr2135385bkd.38.1255089961771; Fri, 09 Oct 2009 05:06:01 -0700 (PDT) In-Reply-To: <4ACED592.7070807@oracle.com> References: <1255038690.10759.9.camel@samuel-laptop> <4ACE6613.808@oracle.com> <1255067917.4144.4.camel@samuel-laptop> <4ACED592.7070807@oracle.com> Date: Fri, 9 Oct 2009 14:06:01 +0200 Message-ID: <18e9608a0910090506g49e2c122ne176debfd5c8a402@mail.gmail.com> To: Christopher Jones Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Patch: Use notices in PDO From: samuel.roze@gmail.com (Samuel ROZE) Well, if I understood, DBMS_OUTPUT returns user's notices or warning, but no errors ? In the standart way, in console, how the notices are printed ? Is DBMS_OUTPUT used both by Pl/SQL function and Oracle functions? Thanks. Samuel. 2009/10/9 Christopher Jones : > > Samuel ROZE wrote: >> It's a good idea. >> >> - PDO::NOTICES_FETCH -> PDO::NOTICES_ENABLED >> - PDO::NOTICES_NONE -> PDO::NOTICES_DISABLED >> >> That's better ? > > That works. > >> I see that you are from the Oracle team. Can you explain me how oracle >> works to raise notices like PostgreSQL ? Or can you build a proof of >> concept to get notices from Oracle ? > > I'm equating your NOTICES to Oracle's DBMS_OUTPUT. See "Getting > Output with DBMS_OUTPUT" on p 181 of: > > http://www.oracle.com/technology/tech/php/underground-php-oracle-manual.h= tml > > Something similar could be coded in the PDO driver. > > The amount of text output could be quite large, depending on the > user's coding style. Is your design extensible enough to allow for > streaming/chunking if the interface needs to be enhanced? > > PL/SQL also has compile time warnings and errors that are handled > differently, see "PL/SQL Success With Information Warnings" on p167. > > Chris > > >> >> Thanks. >> Samuel. >> >> Le jeudi 08 octobre 2009 =C3=A0 15:22 -0700, Christopher Jones a =C3=A9c= rit : >>> Samuel ROZE wrote: >>>> 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 >>> I initially took "FETCH" to mean it was related to a query; this >>> wouldn't always be the case. What about calling it NOTICES_ENABLE? >>> >>> Chris >>> >> >> > > -- > Blog: http://blogs.oracle.com/opal > Twitter: http://twitter.com/ghrd >