From: Norbert Buchmuller Date: Tue, 25 Nov 2008 04:13:10 +0000 (+0100) Subject: * Disabled stringification of arrayref bind values (used to pass values for PostgreS... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=272ffdb8f11e46eb1af9555b080f400c789b6f61;p=dbsrgits%2FDBIx-Class-Historic.git * Disabled stringification of arrayref bind values (used to pass values for PostgreSQL arrays). --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 45dba23..c441333 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -1198,7 +1198,8 @@ sub _dbh_execute { } foreach my $data (@data) { - $data = ref $data ? ''.$data : $data; # stringify args + my $ref = ref $data; + $data = $ref && $ref ne 'ARRAY' ? ''.$data : $data; # stringify args (except arrayrefs) $sth->bind_param($placeholder_index, $data, $attributes); $placeholder_index++;