Skip to content

Commit 577b10b

Browse files
author
Stanley Sufficool
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver
2 parents 69454d9 + ac05cfb commit 577b10b

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)