- Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException "SQLSTATE[] (null)")

This commit is contained in:
Felipe Pena 2009-06-28 02:02:09 +00:00
parent 7b74ae4895
commit ba13c4e764

View File

@ -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;