Author: mjevans
Date: Tue Mar 15 12:10:04 2011
New Revision: 14754
Modified:
dbi/trunk/t/10examp.t
Log:
add test for rt 66127
Modified: dbi/trunk/t/10examp.t
==============================================================================
--- dbi/trunk/t/10examp.t (original)
+++ dbi/trunk/t/10examp.t Tue Mar 15 12:10:04 2011
@@ -5,6 +5,7 @@
use Config;
use Cwd;
use strict;
+use Data::Dumper;
$^W = 1;
$| = 1;
@@ -354,6 +355,14 @@
ok( !eval { $se_sth1->execute } );
like $@, qr/\[for Statement "select mode from \?" with ParamValues: 1='val1',
2='val2', 3='val3', 4='val4', 5='val5', 6='val6', 7='val7', 8='val8', 9='val9',
10='val10', 11='val11'\]/;
+eval {
+ local $se_sth1->{PrintError} = 0;
+ $se_sth1->execute(1,2);
+};
+unlike($@, qr/ParamValues:/, 'error string does not contain ParamValues');
+is($se_sth1->{ParamValues}, undef, 'ParamValues is empty')
+ or diag(Dumper($se_sth1->{ParamValues}));
+
# check that $dbh->{Statement} tracks last _executed_ sth
$se_sth1 = $dbh->prepare("select mode from ?");
ok($se_sth1->{Statement} eq "select mode from ?");