diff options
author | Felipe Pena <felipe@php.net> | 2009-09-10 01:20:42 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-09-10 01:20:42 +0000 |
commit | c068f17a317aa6ba607c6360c0a8d46acf4aefd9 (patch) | |
tree | 53b2100d4f0ed5ceef14aeb8ca28a48bd52a92ec | |
parent | 5f4a55c67fc0b2e556fd9d34ce69d4322340ec4c (diff) | |
download | php-git-c068f17a317aa6ba607c6360c0a8d46acf4aefd9.tar.gz |
- Possible fix for bug #49344 on Windows (pdo_mssql fails to connect,throws PDOException SQLSTATE[] (null) (severity 0))
-rw-r--r-- | ext/pdo_dblib/dblib_driver.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c index cfd993b029..029f3e1128 100644 --- a/ext/pdo_dblib/dblib_driver.c +++ b/ext/pdo_dblib/dblib_driver.c @@ -230,11 +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 + /* 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; |