X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FNoBindVars.pm;h=349f658800b98a7554918851e11f86ab425b1ad3;hb=35e3ee0e6d75e25434046bdf26ef760f4dcd264b;hp=80f367d5435535b5dc89106c9276810bf81a115c;hpb=b4474f31dee1dd4f1ded144158878f1009982448;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 80f367d..349f658 100644 --- a/lib/DBIx/Class/Storage/DBI/NoBindVars.pm +++ b/lib/DBIx/Class/Storage/DBI/NoBindVars.pm @@ -38,6 +38,9 @@ Manually subs in the values for the usual C placeholders. sub _prep_for_execute { my $self = shift; + + my ($op, $extra_bind, $ident) = @_; + my ($sql, $bind) = $self->next::method(@_); # stringify args, quote via $dbh, and manually insert @@ -46,12 +49,14 @@ sub _prep_for_execute { my $new_sql; foreach my $bound (@$bind) { - shift @$bound; + my $col = shift @$bound; + my $datatype = 'FIXME!!!'; foreach my $data (@$bound) { if(ref $data) { $data = ''.$data; } - $new_sql .= shift(@sql_part) . $self->_dbh->quote($data); + $data = $self->_dbh->quote($data); + $new_sql .= shift(@sql_part) . $data; } } $new_sql .= join '', @sql_part;