1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

- update to 1.48

This commit is contained in:
Yen-Ming Lee 2006-04-20 18:26:25 +00:00
parent 651846294b
commit dec321fb26
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160032
5 changed files with 18 additions and 62 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= DBD-Pg
PORTVERSION= 1.43
PORTREVISION= 1
PORTVERSION= 1.48
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBD
@ -39,7 +38,7 @@ post-install:
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= Needs DBI 1.38 which needs perl 5.6, install lang/perl5.8 and try again
IGNORE= needs DBI 1.38 which needs perl 5.6, install lang/perl5.8 and try again
.endif
PG_CONFIG= ${LOCALBASE}/bin/pg_config

View File

@ -1,3 +1,3 @@
MD5 (DBD-Pg-1.43.tar.gz) = 1ddefc3cb5f8c0d20eaf6ba7aa11049d
SHA256 (DBD-Pg-1.43.tar.gz) = 24d34fa3b0310f61ac7748bf3d566ab6d01800f9c27c0828e42dce7e81574550
SIZE (DBD-Pg-1.43.tar.gz) = 131267
MD5 (DBD-Pg-1.48.tar.gz) = 77e56726219cccf2abb42f70c58b6eeb
SHA256 (DBD-Pg-1.48.tar.gz) = 5a2f4e870622cbe4d03e794275d7bc51f742e21ed28de82cc60d7b972a1c2d40
SIZE (DBD-Pg-1.48.tar.gz) = 144737

View File

@ -1,34 +0,0 @@
--- t/06bytea.t.orig Sun Mar 20 10:47:38 2005
+++ t/06bytea.t Thu Aug 4 22:34:26 2005
@@ -9,7 +9,7 @@
$|=1;
if (defined $ENV{DBI_DSN}) {
- plan tests => 3;
+ plan tests => 6;
} else {
plan skip_all => 'Cannot run test unless DBI_DSN is defined. See the README file';
}
@@ -22,12 +22,21 @@
$sth = $dbh->prepare(qq{INSERT INTO dbd_pg_test (id,bytetest) VALUES (?,?)});
$sth->bind_param(2, undef, { pg_type => DBD::Pg::PG_BYTEA });
-$sth->execute(400, "a\0b");
+ok($sth->execute(400, "a\0b", 'execute 401');
+ok($sth->execute(401, '\''), 'execute 401');
+ok($sth->execute(402, '\''), 'execute 402');
+
+
$sth = $dbh->prepare(qq{SELECT bytetest FROM dbd_pg_test WHERE id=?});
$sth->execute(400);
my $byte = $sth->fetchall_arrayref()->[0][0];
ok($byte eq "a\0b", "text from BYTEA column looks corect");
+
+$sth->execute(402);
+$byte = $sth->fetchall_arrayref()->[0][0];
+is($byte, '\'', 'text from BYTEA column with quote');
+
$sth->finish();
$dbh->rollback();

View File

@ -1,13 +1,15 @@
--- Makefile.PL.orig Sat May 21 16:43:17 2005
+++ Makefile.PL Mon May 23 13:32:05 2005
@@ -85,13 +85,13 @@
--- Makefile.PL.orig Thu Apr 20 19:25:49 2006
+++ Makefile.PL Thu Apr 20 19:26:54 2006
@@ -96,7 +96,7 @@
}
}
-my $comp_opts = $Config{q{ccflags}} . " -DPGLIBVERSION=$serverversion";
+my $comp_opts = " -DPGLIBVERSION=$serverversion";
-my $comp_opts = $Config{q{ccflags}} . " -DPGLIBVERSION=$serverversion -DPGDEFPORT=$defaultport";
+my $comp_opts = " -DPGLIBVERSION=$serverversion -DPGDEFPORT=$defaultport";
my %opts =
if ($ENV{DBDPG_GCCDEBUG}) {
warn "Enabling many compiler options\n";
@@ -120,7 +120,7 @@
(
NAME => 'DBD::Pg',
VERSION_FROM => 'Pg.pm',
@ -16,11 +18,11 @@
OBJECT => "Pg\$(OBJ_EXT) dbdimp\$(OBJ_EXT) quote\$(OBJ_EXT) types\$(OBJ_EXT)",
LIBS => ["-L$POSTGRES_LIB -lpq"],
AUTHOR => 'http://gborg.postgresql.org/project/dbdpg/',
@@ -99,7 +99,6 @@
PREREQ_PM => { 'Test::Simple' => '0.17', # Need Test::More.
'Test::Harness' => '2.03', # Need TODO tests.
},
@@ -130,7 +130,6 @@
'Test::Simple' => '0.30',
'Test::Harness' => '2.03',
},
- CCFLAGS => $comp_opts,
PERL_MALLOC_OK => 1,
NEEDS_LINKING => 1,
clean => { FILES => 'trace' },
clean => { FILES => 'trace Pg.xsi' },

View File

@ -1,11 +0,0 @@
--- quote.c.orig Wed May 25 04:14:24 2005
+++ quote.c Thu Aug 4 22:34:26 2005
@@ -307,7 +307,7 @@
dest = result;
Copy("'", dest++, 1, char);
- strncpy(dest,intermead,strlen(intermead));
+ strncpy(dest,intermead,strlen(intermead)+1);
strcat(dest,"\'");
#if PGLIBVERSION >= 70400