Commit:    ac05cfb49912dd87264573df930d0ead3c3e0cca
Author:    Stanley Sufficool <ssuffic...@php.net>         Thu, 26 Sep 2013 
19:53:47 -0700
Parents:   9aa904c375cd50a6e8a345f3c053e80a6617a377
Branches:  PHP-5.4

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=ac05cfb49912dd87264573df930d0ead3c3e0cca

Log:
FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver

Bugs:
https://bugs.php.net/48539

Changed paths:
  M  ext/pdo_dblib/dblib_driver.c


Diff:
diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c
index ff42514..2aaf397 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");


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to