From ac05cfb49912dd87264573df930d0ead3c3e0cca Mon Sep 17 00:00:00 2001 From: Stanley Sufficool Date: Thu, 26 Sep 2013 19:53:47 -0700 Subject: [PATCH] FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver --- ext/pdo_dblib/dblib_driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c index ff425147219..2aaf3975db1 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");