summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Sufficool <ssufficool@php.net>2013-09-26 19:53:47 -0700
committerStanley Sufficool <ssufficool@php.net>2013-09-26 19:53:47 -0700
commitac05cfb49912dd87264573df930d0ead3c3e0cca (patch)
tree695e93100cb44f0096011baaf363b7d084c44a3c
parent9aa904c375cd50a6e8a345f3c053e80a6617a377 (diff)
downloadphp-git-ac05cfb49912dd87264573df930d0ead3c3e0cca.tar.gz
FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver
-rw-r--r--ext/pdo_dblib/dblib_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c
index ff42514721..2aaf3975db 100644
--- a/ext/pdo_dblib/dblib_driver.c
+++ b/ext/pdo_dblib/dblib_driver.c
@@ -362,8 +362,10 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
goto cleanup;
}
+#if PHP_DBLIB_IS_MSSQL
/* dblib do not return more than this length from text/image */
DBSETOPT(H->link, DBTEXTLIMIT, "2147483647");
+#endif
/* limit text/image from network */
DBSETOPT(H->link, DBTEXTSIZE, "2147483647");