freebsd-ports/databases/p5-Pg/files/patch-Pg.pm
Palle Girgensohn 93c9d246c6 Fix a problem where an array is returned from a DoQuery call that
should return 0 tuples. It was always returning an array that indicates
it has 1 tuple.

Submitted by:	Birch Zimmer <birch at naturalpoint dot com>
Approved by:	ade (mentor)
2005-02-10 22:59:55 +00:00

11 lines
280 B
Perl

--- Pg.pm~ Tue Apr 20 05:25:06 2004
+++ Pg.pm Thu Feb 10 00:17:29 2005
@@ -69,7 +69,7 @@
my ($result, $status, $i, $j);
- $$array_ref[0][0] = '';
+ @$array_ref = ();
if ($result = $conn->exec($query)) {
if (2 == ($status = $result->resultStatus)) {