summaryrefslogtreecommitdiffstats
path: root/dev-lang/php/files/php547-ds-odbc_blob.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /dev-lang/php/files/php547-ds-odbc_blob.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'dev-lang/php/files/php547-ds-odbc_blob.patch')
-rw-r--r--dev-lang/php/files/php547-ds-odbc_blob.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-lang/php/files/php547-ds-odbc_blob.patch b/dev-lang/php/files/php547-ds-odbc_blob.patch
new file mode 100644
index 0000000..041ce84
--- /dev/null
+++ b/dev-lang/php/files/php547-ds-odbc_blob.patch
@@ -0,0 +1,19 @@
+diff -dPNur php-5.3.2/ext/pdo_odbc/odbc_stmt.c php-5.3.2-ds/ext/pdo_odbc/odbc_stmt.c
+--- php-5.3.2/ext/pdo_odbc/odbc_stmt.c 2010-01-03 10:23:27.000000000 +0100
++++ php-5.3.2-ds/ext/pdo_odbc/odbc_stmt.c 2010-08-08 01:00:46.000000000 +0200
+@@ -569,9 +569,15 @@
+ return 0;
+ }
+ }
++
++ if (displaysize < 0) {
++ col->maxlen = S->cols[colno].datalen = 0;
++ colsize = 256;
++ } else {
+ colsize = displaysize;
+
+ col->maxlen = S->cols[colno].datalen = colsize;
++ }
+ col->namelen = colnamelen;
+ col->name = estrdup(S->cols[colno].colname);
+ S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype);