Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

_execute 内の$vのチェックの変更 #77

Merged
merged 1 commit into from

2 participants

@ktat

ref($V) しか見ていないので、overload '""' => されているようなオブジェクトが来たときに、arrayでデリファレンスしようとして、死んでしまっています。

@nekokak nekokak merged commit 976036f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 23, 2012
  1. @ktat
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Teng.pm
View
2  lib/Teng.pm
@@ -231,7 +231,7 @@ sub _execute {
$sth = $self->dbh->prepare($sql);
my $i = 1;
for my $v ( @{ $binds || [] } ) {
- $sth->bind_param( $i++, ref($v) ? @$v : $v );
+ $sth->bind_param( $i++, ref($v) eq 'ARRAY' ? @$v : $v );
}
$sth->execute();
};
Something went wrong with that request. Please try again.