diff options
author | girgen <girgen@FreeBSD.org> | 2005-02-11 06:59:55 +0800 |
---|---|---|
committer | girgen <girgen@FreeBSD.org> | 2005-02-11 06:59:55 +0800 |
commit | b614faa73c3ef8957efbd2c9075e6d0fec5b8227 (patch) | |
tree | 881f7fc544c42682faad900c7c1124517855a621 /databases/p5-Pg | |
parent | 28e558a2c7086658b17c0ceeb85d17a61234ba1e (diff) | |
download | freebsd-ports-gnome-b614faa73c3ef8957efbd2c9075e6d0fec5b8227.tar.gz freebsd-ports-gnome-b614faa73c3ef8957efbd2c9075e6d0fec5b8227.tar.zst freebsd-ports-gnome-b614faa73c3ef8957efbd2c9075e6d0fec5b8227.zip |
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)
Diffstat (limited to 'databases/p5-Pg')
-rw-r--r-- | databases/p5-Pg/Makefile | 2 | ||||
-rw-r--r-- | databases/p5-Pg/files/patch-Pg.pm | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/databases/p5-Pg/Makefile b/databases/p5-Pg/Makefile index ccaf0b8821c9..dc4bbeed2bb8 100644 --- a/databases/p5-Pg/Makefile +++ b/databases/p5-Pg/Makefile @@ -7,7 +7,7 @@ PORTNAME= Pg PORTVERSION= 2.1.1 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= databases perl5 MASTER_SITES= ftp://gborg.postgresql.org/pub/pgperl/stable/ diff --git a/databases/p5-Pg/files/patch-Pg.pm b/databases/p5-Pg/files/patch-Pg.pm new file mode 100644 index 000000000000..0f538d6b3a50 --- /dev/null +++ b/databases/p5-Pg/files/patch-Pg.pm @@ -0,0 +1,11 @@ +--- 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)) { |