]> granicus.if.org Git - php/commitdiff
- Possible fix for bug #49344 on Windows (pdo_mssql fails to connect,throws PDOExcept...
authorFelipe Pena <felipe@php.net>
Thu, 10 Sep 2009 01:20:42 +0000 (01:20 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 10 Sep 2009 01:20:42 +0000 (01:20 +0000)
ext/pdo_dblib/dblib_driver.c

index 73201fc405a011ae3ed1cfbd5d09b16936287e7e..1d1d20ca97f560efb93fda3b60f838af60d50fd8 100644 (file)
@@ -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;