Author: turnstep
Date: Mon Mar 28 08:51:20 2011
New Revision: 14792
Modified:
DBD-Pg/trunk/t/12placeholders.t
Log:
Fix test count
Modified: DBD-Pg/trunk/t/12placeholders.t
==============================================================================
--- DBD-Pg/trunk/t/12placeholders.t (original)
+++ DBD-Pg/trunk/t/12placeholders.t Mon Mar 28 08:51:20 2011
@@ -17,7 +17,7 @@
if (! $dbh) {
plan skip_all => 'Connection to database failed, cannot continue
testing';
}
-plan tests => 234;
+plan tests => 235;
my $t='Connect to database for placeholder testing';
isnt ($dbh, undef, $t);
@@ -429,14 +429,13 @@
SKIP: {
if ($pglibversion < 80000) {
skip ('Skipping specific placeholder test on 7.4-compiled
servers', 1);
-
- $t='Calling do() with invalid crowded placeholders fails
cleanly';
- $dbh->commit();
- eval {
- $dbh->do(q{SELECT ??}, undef, 'public', 'error');
- };
- is($dbh->state, '42601', $t);
}
+ $t='Calling do() with invalid crowded placeholders fails cleanly';
+ $dbh->commit();
+ eval {
+ $dbh->do(q{SELECT ??}, undef, 'public', 'error');
+ };
+ is($dbh->state, '42601', $t);
}
$t='Prepare/execute with non-DML placeholder works';