From: Felipe Pena Date: Sun, 28 Jun 2009 02:02:09 +0000 (+0000) Subject: - Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException "SQLSTATE... X-Git-Tag: php-5.4.0alpha1~191^2~3229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba13c4e7649353a5d98236e722387b7eb57d9b0c;p=php - Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException "SQLSTATE[] (null)") --- 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;