diff options
author | Johannes Schlüter <johannes@php.net> | 2009-06-29 09:36:03 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2009-06-29 09:36:03 +0000 |
commit | dec83ec4d229eff344badca98d82c7b78046e860 (patch) | |
tree | 1c22b15d6fac1e15237283124c8fffde49847f9d | |
parent | d73094aed477ccd887c6a636dece235d495e4a4b (diff) | |
download | php-git-dec83ec4d229eff344badca98d82c7b78046e860.tar.gz |
MFH: Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException
"SQLSTATE[] (null)") (Felipe)
-rw-r--r-- | ext/pdo_dblib/dblib_driver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c index d34c14a333..cfd993b029 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; |