use strict;
use warnings;
+use DBIx::ContextualFetch;
use NEXT;
use base qw/Class::Data::Inheritable/;
return sprintf($sql, @args);
}
+package DBIx::ContextualFetch::st;
+
+no warnings 'redefine';
+
+sub _untaint_execute {
+ my $sth = shift;
+ my $old_value = $sth->{Taint};
+ $sth->{Taint} = 0;
+ my $ret;
+ {
+ no warnings 'uninitialized';
+ $ret = $sth->SUPER::execute(@_);
+ }
+ $sth->{Taint} = $old_value;
+ return $ret;
+}
+
1;
my $btaste2 = Film->retrieve($btaste->id);
$btaste->NumExplodingSheep(18);
my @warnings;
- local $SIG{__WARN__} = sub {
- unless ($_[0] =~ m/ContextualFetch/) {
- push(@warnings, @_);
- } };
+ local $SIG{__WARN__} = sub { push(@warnings, @_); };
{
# unhook from live object cache, so next one is not from cache