From: Brandon L. Black Date: Thu, 29 Mar 2007 14:13:17 +0000 (+0000) Subject: backport Ash's quoting fix from Loader to columns_info_for X-Git-Tag: v0.08010~171 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88262f96056323dd426285bd45fbe385168cd0d3;p=dbsrgits%2FDBIx-Class.git backport Ash's quoting fix from Loader to columns_info_for --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 27bd0d6..cee2436 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -926,7 +926,7 @@ sub columns_info_for { } my %result; - my $sth = $dbh->prepare("SELECT * FROM $table WHERE 1=0"); + my $sth = $dbh->prepare($self->sql_maker->select($table, undef, \'1 = 0')); $sth->execute; my @columns = @{$sth->{NAME_lc}}; for my $i ( 0 .. $#columns ){