arguile wrote:
> 
> Side note:
> ----------
> 
> I might as well raise an issue that's been bothering me about the metadata
> function. A lot of the ODBC spec seems to map awfully to Perl. I mean, look
> at the table_info() function.
> 
>         The value of $type is a comma-separated list of one or more types
>         of tables to be returned in the result set. Each value may optionally
>         be quoted.
> 
>         $sth = $dbh->table_info( $catalog, $schema, $table, $type );
> 
> I mean, really! The people who wrote the ODBC spec have obviously never
> dealt with an array refference ;). I commend DBI for staying to spec, but
> would it be possible to allow this as well?
> 
>         $sth = $dbh->table_info( $catalog, $schema, $table, \@types );
> 
> Ahhh, now we're talking. The first thing most drivers I've looked at do is
> trim the string and split// it into an array; so allowing both would give
> much greater flexibility, and a more Perlish feel to the function, while
> only requiring DBD writes to add a simple if-else check (UNIVERSAL::isa(),
> ref(), etc.).
> 
> If I'm way off base feel free to say so.

Indeed, our first attempt (DBD::Oracle) checked for an array ref:

  http:[EMAIL PROTECTED]/msg00091.html


Steffen

Reply via email to