[Bps-public-commit] r18937 - DBIx-SearchBuilder/trunk
ruz at bestpractical.com
ruz at bestpractical.com
Wed Mar 25 20:10:17 EDT 2009
Author: ruz
Date: Wed Mar 25 20:10:17 2009
New Revision: 18937
Modified:
DBIx-SearchBuilder/trunk/SearchBuilder.pm
Log:
* switch Fields in SB.pm to handle's method
Modified: DBIx-SearchBuilder/trunk/SearchBuilder.pm
==============================================================================
--- DBIx-SearchBuilder/trunk/SearchBuilder.pm (original)
+++ DBIx-SearchBuilder/trunk/SearchBuilder.pm Wed Mar 25 20:10:17 2009
@@ -1557,21 +1557,7 @@
=cut
sub Fields {
- my $self = shift;
- my $table = shift;
-
- my $dbh = $self->_Handle->dbh;
-
- # TODO: memoize this
-
- return map lc( $_->[0] ), @{
- eval {
- $dbh->column_info( '', '', $table, '' )->fetchall_arrayref( [3] );
- }
- || $dbh->selectall_arrayref("DESCRIBE $table;")
- || $dbh->selectall_arrayref("DESCRIBE \u$table;")
- || []
- };
+ return (shift)->_Handle->Fields( @_ );
}
More information about the Bps-public-commit
mailing list