diff options
author | wiz <wiz> | 2004-05-14 18:49:52 +0000 |
---|---|---|
committer | wiz <wiz> | 2004-05-14 18:49:52 +0000 |
commit | 4e18e9f92453fc841590c3bb8ef4819410fe8a2b (patch) | |
tree | 4c8e9d60d0c9992a8deada5867ab418c9a3315c1 /databases/p5-DBD-Sybase/patches | |
parent | cdc546ed37370c0946adabde28161f0e433d830b (diff) | |
download | pkgsrc-4e18e9f92453fc841590c3bb8ef4819410fe8a2b.tar.gz |
Convert to bl3. Make build with gcc3.
Diffstat (limited to 'databases/p5-DBD-Sybase/patches')
-rw-r--r-- | databases/p5-DBD-Sybase/patches/patch-ab | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/databases/p5-DBD-Sybase/patches/patch-ab b/databases/p5-DBD-Sybase/patches/patch-ab new file mode 100644 index 00000000000..61a87863b63 --- /dev/null +++ b/databases/p5-DBD-Sybase/patches/patch-ab @@ -0,0 +1,43 @@ +$NetBSD: patch-ab,v 1.1 2004/05/14 18:49:52 wiz Exp $ + +--- dbdimp.c.orig 2001-12-13 02:05:26.000000000 +0100 ++++ dbdimp.c +@@ -1970,23 +1970,23 @@ static int syb_st_describe_proc(imp_sth, + PerlIO_printf(DBILOGFP, " describe_proc: %s %s %s\n", db, owner, proc); + + if(db && *db) { +- sprintf(sql, " +-select c.colid, c.name, c.usertype, c.prec, c.scale +- from %s..sysobjects o, %s..syscolumns c, %s..sysusers u +- where c.id = o.id +- and o.name = '%s' +- and o.type = 'P' +- and o.uid = u.uid +- and u.name = '%s' ++ sprintf(sql, "\ ++select c.colid, c.name, c.usertype, c.prec, c.scale \ ++ from %s..sysobjects o, %s..syscolumns c, %s..sysusers u\ ++ where c.id = o.id \ ++ and o.name = '%s'\ ++ and o.type = 'P'\ ++ and o.uid = u.uid\ ++ and u.name = '%s'\ + ", db, db, db, proc, owner); + } else { +- sprintf(sql, " +-select c.colid, c.name, c.usertype, c.prec, c.scale +- from sysobjects o, syscolumns c +- where c.id = o.id +- and o.name = '%s' +- and o.type = 'P' +- and o.uid = user_id(u.uid ++ sprintf(sql, "\ ++select c.colid, c.name, c.usertype, c.prec, c.scale \ ++ from sysobjects o, syscolumns c\ ++ where c.id = o.id \ ++ and o.name = '%s'\ ++ and o.type = 'P'\ ++ and o.uid = user_id(u.uid\ + and u.name = '%s'", proc, owner); + } + #endif |