Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 61711
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: ilmari [...] ilmari.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Patch applied in r14449
On Fri Oct 01 23:49:25 2010, greg@turnstep.com wrote: Show quoted text
> Patch applied in r14449