Re: connect_cached() bug?

2001-06-01 Thread Ronald J Kimball
On Fri, Jun 01, 2001 at 10:25:51AM +0100, Graham Barr wrote: > On Fri, Jun 01, 2001 at 10:23:39AM +0100, Graham Barr wrote: > > On Fri, Jun 01, 2001 at 10:19:51AM +0100, Tim Bunce wrote: > > > Thanks. I'll fix it for the next release. Meanwhile try > > > > > > ... $attr ? sort %$attr : (); > >

Re: connect_cached() bug?

2001-06-01 Thread Graham Barr
On Fri, Jun 01, 2001 at 10:23:39AM +0100, Graham Barr wrote: > On Fri, Jun 01, 2001 at 10:19:51AM +0100, Tim Bunce wrote: > > Thanks. I'll fix it for the next release. Meanwhile try > > > > ... $attr ? sort %$attr : (); > > Um, that will mix the kesy and values. You would need something like

Re: connect_cached() bug?

2001-06-01 Thread Graham Barr
On Fri, Jun 01, 2001 at 10:19:51AM +0100, Tim Bunce wrote: > Thanks. I'll fix it for the next release. Meanwhile try > > ... $attr ? sort %$attr : (); Um, that will mix the kesy and values. You would need something like ... $attr ? map { ($_,$attr->{$_}) } sort keys %$attr : () Graham.

Re: connect_cached() bug?

2001-06-01 Thread Tim Bunce
Thanks. I'll fix it for the next release. Meanwhile try ... $attr ? sort %$attr : (); Tim. On Thu, May 31, 2001 at 04:17:09PM -0500, Mitch Helle-Morrissey wrote: > I think there might be a bug with the connect_cached() method in DBI. If > the elements in the attributes hashref are in a

connect_cached() bug?

2001-05-31 Thread Mitch Helle-Morrissey
I think there might be a bug with the connect_cached() method in DBI. If the elements in the attributes hashref are in a different order, then it makes a new handle instead of returning the cached handle, even if they are the same values. This presents a problem if you are generating the attribu