From ba13c4e7649353a5d98236e722387b7eb57d9b0c Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 28 Jun 2009 02:02:09 +0000 Subject: [PATCH] - Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException "SQLSTATE[] (null)") --- 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 03609e62ce..73201fc405 100644 --- a/ext/pdo_dblib/dblib_driver.c +++ b/ext/pdo_dblib/dblib_driver.c @@ -230,9 +230,11 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_ goto cleanup; } +#if PHP_DBLIB_IS_MSSQL if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) { goto cleanup; } +#endif if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) { goto cleanup; -- 2.50.1