Subject: | [PATCH] Explicitly specify the type for all bind parameters |
Date: | Tue, 28 Sep 2010 00:42:32 +0100 |
To: | bug-DBD-Pg [...] rt.cpan.org |
From: | Dagfinn Ilmari Mannsåker <ilmari [...] ilmari.org> |
This fixes the pg_server_prepare=1 test on PostgreSQL 7.4.
---
t/06bytea.t | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/t/06bytea.t b/t/06bytea.t
index 8bf4828..8936873 100644
--- a/t/06bytea.t
+++ b/t/06bytea.t
@@ -35,6 +35,7 @@ my ($sth, $t);
$sth = $dbh->prepare(q{INSERT INTO dbd_pg_test (id,bytetest) VALUES (?,?)});
$t='bytea insert test with string containing null and backslashes';
+$sth->bind_param(1, undef, { pg_type => PG_INT4 });
$sth->bind_param(2, undef, { pg_type => PG_BYTEA });
ok ($sth->execute(400, 'aa\\bb\\cc\\\0dd\\'), $t);
--
1.7.0.4