X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FNoBindVars.pm;h=95f1cac94222b9df12a10dc429e7ae156c701326;hb=0bd2c1cdd249ba5866529b8316a1764a07a4871f;hp=51ef7d50544ff99a038a40ac455720d6ef7f5db9;hpb=b50a5275b5637b79d7e8f11b06fff9d9273c949d;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/DBI/NoBindVars.pm b/lib/DBIx/Class/Storage/DBI/NoBindVars.pm index 51ef7d5..95f1cac 100644 --- a/lib/DBIx/Class/Storage/DBI/NoBindVars.pm +++ b/lib/DBIx/Class/Storage/DBI/NoBindVars.pm @@ -4,6 +4,7 @@ use strict; use warnings; use base 'DBIx::Class::Storage::DBI'; +use mro 'c3'; =head1 NAME @@ -50,22 +51,20 @@ sub _prep_for_execute { foreach my $bound (@$bind) { my $col = shift @$bound; - my $do_quote = $self->should_quote_data_type($col); + my $datatype = 'FIXME!!!'; foreach my $data (@$bound) { if(ref $data) { $data = ''.$data; } - $data = $self->_dbh->quote($data) if $do_quote; + $data = $self->_dbh->quote($data); $new_sql .= shift(@sql_part) . $data; } } $new_sql .= join '', @sql_part; - return ($new_sql); + return ($new_sql, []); } -sub should_quote_data_type { 1 } - =head1 AUTHORS Brandon Black