Skip to content

Commit ac05cfb

Browse files
author
Stanley Sufficool
committed
FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver
1 parent 9aa904c commit ac05cfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/pdo_dblib/dblib_driver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
362362
goto cleanup;
363363
}
364364

365+
#if PHP_DBLIB_IS_MSSQL
365366
/* dblib do not return more than this length from text/image */
366367
DBSETOPT(H->link, DBTEXTLIMIT, "2147483647");
368+
#endif
367369

368370
/* limit text/image from network */
369371
DBSETOPT(H->link, DBTEXTSIZE, "2147483647");

0 commit comments

Comments
 (0)