[Bast-commits] r6598 -
DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/Storage/DBI
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Wed Jun 10 13:00:43 GMT 2009
Author: caelum
Date: 2009-06-10 13:00:42 +0000 (Wed, 10 Jun 2009)
New Revision: 6598
Modified:
DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/Storage/DBI/NoBindVars.pm
Log:
cache rsrc in NoBindVars correctly
Modified: DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/Storage/DBI/NoBindVars.pm
===================================================================
--- DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/Storage/DBI/NoBindVars.pm 2009-06-10 12:48:39 UTC (rev 6597)
+++ DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/Storage/DBI/NoBindVars.pm 2009-06-10 13:00:42 UTC (rev 6598)
@@ -50,7 +50,7 @@
my @sql_part = split /\?/, $sql;
my $new_sql;
- my $result_sources = {};
+ my $alias2src = $self->_resolve_ident_sources($ident);
foreach my $bound (@$bind) {
my $col = shift @$bound;
@@ -60,9 +60,7 @@
$col =~ s/^([^\Q${name_sep}\E]*)\Q${name_sep}\E//;
my $alias = $1 || 'me';
- $result_sources->{$alias} ||=
- $self->_resolve_ident_sources($ident)->{$alias};
- my $rsrc = $result_sources->{$alias};
+ my $rsrc = $alias2src->{$alias};
my $datatype = $rsrc->column_info($col)->{data_type};
More information about the Bast-commits
mailing list