diff options
Diffstat (limited to 'dev-lang/php/files/php547-ds-odbc_blob.patch')
-rw-r--r-- | dev-lang/php/files/php547-ds-odbc_blob.patch | 19 |
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); |