pajoye Fri, 09 Oct 2009 18:56:19 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=289440
Log: - Possible fix for bug #49344 on Windows (pdo_mssql fails to connect,throws PDOException SQLSTATE[] (null) (severity 0)) Bug: http://bugs.php.net/49344 (No Feedback) pdo_mssql fails to connect,throws PDOException SQLSTATE[] (null) (severity 0) Changed paths: U php/php-src/branches/PHP_5_3_1/ext/pdo_dblib/dblib_driver.c Modified: php/php-src/branches/PHP_5_3_1/ext/pdo_dblib/dblib_driver.c =================================================================== --- php/php-src/branches/PHP_5_3_1/ext/pdo_dblib/dblib_driver.c 2009-10-09 18:52:59 UTC (rev 289439) +++ php/php-src/branches/PHP_5_3_1/ext/pdo_dblib/dblib_driver.c 2009-10-09 18:56:19 UTC (rev 289440) @@ -230,11 +230,11 @@ goto cleanup; } -#if PHP_DBLIB_IS_MSSQL - if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) { - goto cleanup; - } -#endif + /* dblib do not return more than this length from text/image */ + DBSETOPT(H->link, DBTEXTLIMIT, "2147483647"); + + /* limit text/image from network */ + DBSETOPT(H->link, DBTEXTSIZE, "2147483647"); if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) { goto cleanup;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php