[Bast-commits] r7163 -
DBIx-Class/0.08/branches/mssql_storage_minor_refactor/lib/DBIx/Class/Storage
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sat Aug 1 16:10:23 GMT 2009
Author: caelum
Date: 2009-08-01 16:10:23 +0000 (Sat, 01 Aug 2009)
New Revision: 7163
Modified:
DBIx-Class/0.08/branches/mssql_storage_minor_refactor/lib/DBIx/Class/Storage/DBI.pm
Log:
default collist for storage _resolve_column_info
Modified: DBIx-Class/0.08/branches/mssql_storage_minor_refactor/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/branches/mssql_storage_minor_refactor/lib/DBIx/Class/Storage/DBI.pm 2009-08-01 10:36:47 UTC (rev 7162)
+++ DBIx-Class/0.08/branches/mssql_storage_minor_refactor/lib/DBIx/Class/Storage/DBI.pm 2009-08-01 16:10:23 UTC (rev 7163)
@@ -1687,6 +1687,18 @@
$sep = "\Q$sep\E";
my (%return, %converted);
+
+ if (not $colnames) {
+ $colnames = [ map {
+ my $alias = $_;
+ my $source = $alias2src->{$alias};
+ map "${alias}${sep}$_", $source->columns
+ } keys %$alias2src ];
+
+# also add unqualified columns for 'me' table
+ push @$colnames, $alias2src->{$root_alias}->columns;
+ }
+
foreach my $col (@$colnames) {
my ($alias, $colname) = $col =~ m/^ (?: ([^$sep]+) $sep)? (.+) $/x;
More information about the Bast-commits
mailing list