From: Stanley Sufficool Date: Fri, 27 Sep 2013 02:53:47 +0000 (-0700) Subject: FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver X-Git-Tag: php-5.4.21RC1~3^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac05cfb49912dd87264573df930d0ead3c3e0cca;p=php FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver --- 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");