Re: DBD::Pg: Newbie Question

2002-11-26 Thread Jason E. Stewart
"David Wheeler" <[EMAIL PROTECTED]> writes: > Hi All, > > I'm trying to eliminate the compiler warnings from DBD::Pg, and got it > down to just one (from four). The warning is: > > > Pg.xs: In function `XS_DBD__Pg__db_pg_notifies': > Pg.xs:135: warning: assignment makes pointer from integer wit

DBD::Pg: Newbie Question

2002-11-26 Thread David Wheeler
Hi All, I'm trying to eliminate the compiler warnings from DBD::Pg, and got it down to just one (from four). The warning is: Pg.xs: In function `XS_DBD__Pg__db_pg_notifies': Pg.xs:135: warning: assignment makes pointer from integer without a cast Line 135 is the last line of this function: voi

Re: Escaping Binary Data in DBD::Pg

2002-11-26 Thread David Wheeler
Thanks for the reply, Tim. On Tuesday, November 26, 2002, at 04:53 PM, Tim Bunce wrote: $dbh->quote($val, DBI_SQL_BINARY); (Which is correct per the spec.) But only by $dbh->quote($val, { TYPE => DBI_SQL_BINARY }); (Which is wrong.) Check again. It makes no sense that they would inv

Re: Escaping Binary Data in DBD::Pg

2002-11-26 Thread Tim Bunce
On Tue, Nov 26, 2002 at 10:11:22AM -0800, David Wheeler wrote: > On Monday, November 25, 2002, at 03:57 PM, David Wheeler wrote: > > >>If it doesn't work then yes (if $h->{Warn} is set, see Driver.xst for > >>examples). > > > >Okay, I'll try to work up that patch tonight. > > Here's the patch.

Re: CPAN indexer (was Re: DBD::Pg CVS version.)

2002-11-26 Thread Brian Ingerson
On 26/11/02 07:17 -0800, David Wheeler wrote: > On Tuesday, November 26, 2002, at 07:00 AM, Graham Barr wrote: > > > On Tue, Nov 26, 2002 at 10:51:10AM +, Matt Sergeant wrote: > >> On Mon, 25 Nov 2002, Graham Barr wrote: > >> > >>> If the inclusion of modules in distributions is common and t/

Re: CPAN indexer (was Re: DBD::Pg CVS version.)

2002-11-26 Thread David Wheeler
On Monday, November 25, 2002, at 03:37 PM, David Wheeler wrote: I'd just hack in the very few alternatives you need ("/" + Max + VMS, you can ignore windows as "/" works fine) in a BEGIN block. Um, what is it on VMS? ...Never mind, I can look in File::Spec::VMS. Or not. Here's what I got:

Re: Escaping Binary Data in DBD::Pg

2002-11-26 Thread David Wheeler
On Monday, November 25, 2002, at 03:57 PM, David Wheeler wrote: If it doesn't work then yes (if $h->{Warn} is set, see Driver.xst for examples). Okay, I'll try to work up that patch tonight. Here's the patch. I would appreciate any feedback. I had to alter quote() quite a bit again, as it s

Re: CPAN indexer (was Re: DBD::Pg CVS version.)

2002-11-26 Thread Matt Sergeant
On Tue, 26 Nov 2002, Graham Barr wrote: > On Tue, Nov 26, 2002 at 10:51:10AM +, Matt Sergeant wrote: > > On Mon, 25 Nov 2002, Graham Barr wrote: > > > > > If the inclusion of modules in distributions is common and t/ is not > > > acceptable then a common place should be agreeded. I almost sugg

Re: Anybody using $h->event(...) and DBIh_EVENT*() ?

2002-11-26 Thread David Wheeler
On Tuesday, November 26, 2002, at 02:24 AM, Tim Bunce wrote: Leave them for now. Okay. They won't be in my redesigned version. I guess I should have asked "Is anyone *depending* on them?" But, thinking about it, he answer pretty much has to be "no" because I'd removed support for the undocu

Re: $sel->CursorName does not exist

2002-11-26 Thread David Wheeler
On Tuesday, November 26, 2002, at 02:21 AM, Tim Bunce wrote: http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF- 8&safe=off&as_qdr=all&q=HandleEvent+Bunce Cool, thanks. I don't think that PostgreSQL features callbacks at the database level, but I do recall such a thing from my SQL Server

Re: CPAN indexer (was Re: DBD::Pg CVS version.)

2002-11-26 Thread David Wheeler
On Tuesday, November 26, 2002, at 07:00 AM, Graham Barr wrote: On Tue, Nov 26, 2002 at 10:51:10AM +, Matt Sergeant wrote: On Mon, 25 Nov 2002, Graham Barr wrote: If the inclusion of modules in distributions is common and t/ is not acceptable then a common place should be agreeded. I almos

Re: CPAN indexer (was Re: DBD::Pg CVS version.)

2002-11-26 Thread Graham Barr
On Tue, Nov 26, 2002 at 10:51:10AM +, Matt Sergeant wrote: > On Mon, 25 Nov 2002, Graham Barr wrote: > > > If the inclusion of modules in distributions is common and t/ is not > > acceptable then a common place should be agreeded. I almost suggested > > this recently with the release of CPAN::

Re: Anybody using $h->event(...) and DBIh_EVENT*() ?

2002-11-26 Thread Tim Bunce
On Tue, Nov 26, 2002 at 11:39:47AM +0100, H.Merijn Brand wrote: > > sv_setiv (DBIc_ERR (imp_drh), (IV)1); > sv_setpv (DBIc_ERRSTR (imp_drh), "disconnect_all not implemented"); > DBIh_EVENT2 (drh, ERROR_event, DBIc_ERR (imp_drh), DBIc_ERRSTR (imp_drh)); > > Which is probabl

Re: CPAN indexer (was Re: DBD::Pg CVS version.)

2002-11-26 Thread Matt Sergeant
On Mon, 25 Nov 2002, Graham Barr wrote: > If the inclusion of modules in distributions is common and t/ is not > acceptable then a common place should be agreeded. I almost suggested > this recently with the release of CPAN::MakeMaker which depends on . > being in @INC. But it has the side affect

Re: Anybody using $h->event(...) and DBIh_EVENT*() ?

2002-11-26 Thread H.Merijn Brand
On Tue 26 Nov 2002 00:34, David Wheeler <[EMAIL PROTECTED]> wrote: > On Monday, November 25, 2002, at 03:26 PM, Tim Bunce wrote: > > > They're about to be deprecated/changed/removed or something as > > part of moving towards a $h->{HandleEvent} = sub { ... } interface. > > > > So far I've just gu

Re: Anybody using $h->event(...) and DBIh_EVENT*() ?

2002-11-26 Thread Tim Bunce
On Mon, Nov 25, 2002 at 03:34:53PM -0800, David Wheeler wrote: > On Monday, November 25, 2002, at 03:26 PM, Tim Bunce wrote: > > >They're about to be deprecated/changed/removed or something as > >part of moving towards a $h->{HandleEvent} = sub { ... } interface. > > > >So far I've just gutted th

Re: $sel->CursorName does not exist

2002-11-26 Thread Tim Bunce
On Mon, Nov 25, 2002 at 04:15:49PM -0800, David Wheeler wrote: > On Monday, November 25, 2002, at 04:04 PM, Tim Bunce wrote: > > >Perl 5.8.0 is (quite reasonably) clearing refs in lexical variables > >in a more timely manner when the sub exists. > > > >The failing test in 07kids.t isn't testing a