On Wed, Oct 24, 2001 at 09:01:26AM +0100, Simon Oliver wrote:
> Tim Bunce wrote:
> > Yes, yes. I agree and I plan to add something along these lines very soon.
> >
> > (From your previous message you seemed to want to add *class* attributes
> > and that's what would need a strong case as it doesn't fit with the DBI's
> > approach to life.)
>
> I guess that's because I'm a little confused/ignorant of how attributes
> are implemented in DBI.pm and the DBD's.
>
> This is something I've been after for some time. If you show how to
> implement the new attributes I will write a patch and accompanying
> documentation.
Thanks.
There's probably no need for both attributes and a method call.
Just a method call (that can be subclassed) should suffice.
Something like
sub quote_identifier {
shift;
return join '.', map { qq{"$_"} } @_;
}
would be enough to both quote single names and add dots for multiple names.
Right?
Tim.