summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-InterBase/files/patch-dbdimp.c
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2004-03-24 09:06:02 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2004-03-24 09:06:02 +0000
commit82795a42c06ace7672ea74cf58b07f9e78e13c68 (patch)
tree82e1c7f0278139a856f3554039518cc9d9f6f223 /databases/p5-DBD-InterBase/files/patch-dbdimp.c
parentUpdate to 2.0.0 (diff)
Updated to 0.43
Notes
Notes: svn path=/head/; revision=105110
Diffstat (limited to 'databases/p5-DBD-InterBase/files/patch-dbdimp.c')
-rw-r--r--databases/p5-DBD-InterBase/files/patch-dbdimp.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/databases/p5-DBD-InterBase/files/patch-dbdimp.c b/databases/p5-DBD-InterBase/files/patch-dbdimp.c
new file mode 100644
index 000000000000..bcbe93e2b2d9
--- /dev/null
+++ b/databases/p5-DBD-InterBase/files/patch-dbdimp.c
@@ -0,0 +1,36 @@
+--- dbdimp.c 2004/02/25 04:38:03 1.105
++++ dbdimp.c 2004/03/03 11:26:48 1.106
+@@ -1,5 +1,5 @@
+ /*
+- $Id: dbdimp.c,v 1.105 2004/02/25 04:38:03 edpratomo Exp $
++ $Id: dbdimp.c,v 1.106 2004/03/03 11:26:48 edpratomo Exp $
+
+ Copyright (c) 1999-2004 Edwin Pratomo
+ Portions Copyright (c) 2001-2003 Daniel Ritz
+@@ -2185,7 +2185,7 @@
+ DBI_TRACE(1, (DBILOGFP, "ib_fill_isqlda: SQL_VARYING\n"));
+ {
+ char buf[25]; /* long long can have max 20 chars. */
+- char *tmp;
++ char *tmp = NULL;
+ if (ivar->sqldata == (char *) NULL)
+ {
+ if ((ivar->sqldata = (char *)safemalloc(
+@@ -2204,7 +2204,7 @@
+ tmp = buf;
+ len = sprintf(tmp, "%ld", SvNV(value));
+ }
+- else if (SvPOK(value)) {
++ else if (SvPOK(value) || (SvTYPE(value) == SVt_PVMG)) {
+ len = SvCUR(value);
+ tmp = SvPV_nolen(value);
+ }
+@@ -2261,7 +2261,7 @@
+ tmp = buf;
+ len = sprintf(tmp, "%ld", SvNV(value));
+ }
+- else if (SvPOK(value)) {
++ else if (SvPOK(value) || (SvTYPE(value) == SVt_PVMG)) {
+ len = SvCUR(value);
+ tmp = SvPV_nolen(value);
+ }