[Pkg-php-commits] [php/debian-experimental] Adapt mssql-null-exception.patch to 5.3.1
Ondřej Surý
ondrej at sury.org
Mon Jan 11 16:44:09 UTC 2010
---
debian/patches/mssql-null-exception.patch | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/debian/patches/mssql-null-exception.patch b/debian/patches/mssql-null-exception.patch
index 49baa7c..43adb1b 100644
--- a/debian/patches/mssql-null-exception.patch
+++ b/debian/patches/mssql-null-exception.patch
@@ -1,16 +1,13 @@
-Index: php/ext/pdo_dblib/dblib_driver.c
-===================================================================
---- php.orig/ext/pdo_dblib/dblib_driver.c
-+++ php/ext/pdo_dblib/dblib_driver.c
-@@ -230,9 +230,11 @@ static int pdo_dblib_handle_factory(pdo_
+--- a/ext/pdo_dblib/dblib_driver.c
++++ b/ext/pdo_dblib/dblib_driver.c
+@@ -230,8 +230,10 @@ static int pdo_dblib_handle_factory(pdo_
goto cleanup;
}
+#if PHP_DBLIB_IS_MSSQL
- if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) {
- goto cleanup;
- }
+ /* dblib do not return more than this length from text/image */
+ DBSETOPT(H->link, DBTEXTLIMIT, "2147483647");
+#endif
-
- if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) {
- goto cleanup;
+
+ /* limit text/image from network */
+ DBSETOPT(H->link, DBTEXTSIZE, "2147483647");
--
1.6.3.3
More information about the Pkg-php-commits
mailing list