On Tue, Feb 15, 2005 at 10:38:20AM -0800, David Wheeler wrote:
> On Feb 14, 2005, at 3:09 AM, Tim Bunce wrote:
> 
> >[On the roadmap/todo there's an item about recording the names of
> >all attributes that have been set on a handle. That may also be
> >useful here so drivers can be led by what attributes have actually
> >been set rather than having to go check every possible attribute.]
> 
> Yes, that makes sense. Just an array reference somewhere listing them. 

I figured just a hash would do

   keys %{ $h->{FooAttributes} }

> Or perhaps keeping the original hash ref, at least for the duration of 
> a call to connect()?

Umm, not sure what you mean there. Basically I'm proposing having the STORE
method[1] just do $h->{FooAttributes}->{$attribute_name} = undef;
so there's a record of just what attribute names have been explicitly set.

[1] Actually it would be the DBIs dispatch method that would do that
when dispatching to the STORE method.

> >>Yes, because then the DBI can leave it if there is no
> >>DBD::foo::db::connect, such as in older versions of the drivers. That
> >>doesn't sound so bad to me...am I insane? :)
> >
> >Perhaps we both are :)
> 
> I'll drink to that!

If you'll be at the MySQL conference in April then I'll be buying.
Sadly I won't be going to OSCON this year as it clashes with other commitments.

> >More generally, I'm very open to people volunteering to work on DBI
> >enhancements from the roadmap/todo. Subversion branches make it easy
> >for multiple people to be working on enhancements that scratch
> >their own itches, without getting in the way of others or the mainline.
> 
> Feh. That's all I need is to be committer on yet another project. Me 
> and my big mouth!

:-)

Tim.

Reply via email to