pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dominic Mitchell <dom@semantico.com>
To: Tim Bunce <Tim.Bunce@pobox.com>
Cc: Rudy Lippan <rlippan@remotelinux.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: David Wheeler <david@wheeler.net>
Cc: pgsql-interfaces@postgresql.org, 'DBI developers' <dbi-dev@perl.org>
Subject: Re: DBD::Pg 1.30_1 WAS (Re: Prepare and prepare ?)
Date: Fri, 30 May 2003 10:20:11 +0100
Message-ID: <3ED7224B.7030101@semantico.com> (raw)
In-Reply-To: <20030530090401.GG6818@dansat.data-plan.com>
References: <Pine.LNX.4.44.0305290446550.26451-100000@elfride.ineffable.net>
	<3ED5CC25.70102@semantico.com>
	<20030530090401.GG6818@dansat.data-plan.com>

Tim Bunce wrote:
> On Thu, May 29, 2003 at 10:00:21AM +0100, Dominic Mitchell wrote:
> 
>>One more thing for the change log:  notice messages generated by the 
>>database now use the perl warning mechanism instead of going to stderr, 
>>so they can be trapped if needed.
> 
> 
> Hopefully implemented as
> 
> 	if (DBIc_WARN(imp_xxh))
> 	    warn("...", ...)
> 
> The $h->{Warn} attribute defaults to true. Can be useful to silence
> warnings for a handle without having to play games with $SIG{__WARN__}.

See, I told you I wasn't an XS guru.  :-)

Actually, I looked at this, but my limited C and DBI skills couldn't 
work out a) what the required handle was (probably dbh) and b) how to 
pass that into the PQsetNoticeProcessor function as data and get it out 
again.

I'll happily take another look though, now that it's been brought up as 
desirable.

-Dom (time to reread K&R, methinks)




view thread (18+ messages)  latest in thread

Message-ID: <3ED7224B.7030101@semantico.com>
Permalink:  ../3ED7224B.7030101@semantico.com/
Also on:    postgresql.org/message-id/3ED7224B.7030101@semantico.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: dom@semantico.com, Tim.Bunce@pobox.com, rlippan@remotelinux.com, pgman@candle.pha.pa.us, david@wheeler.net, dbi-dev@perl.org
  Subject: Re: DBD::Pg 1.30_1 WAS (Re: Prepare and prepare ?)
  In-Reply-To: <3ED7224B.7030101@semantico.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox