]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException
authorJohannes Schlüter <johannes@php.net>
Mon, 29 Jun 2009 09:36:03 +0000 (09:36 +0000)
committerJohannes Schlüter <johannes@php.net>
Mon, 29 Jun 2009 09:36:03 +0000 (09:36 +0000)
"SQLSTATE[] (null)")  (Felipe)

ext/pdo_dblib/dblib_driver.c

index d34c14a3337c9539fe0c970e4cfeeb316ec3b0f1..cfd993b0294278e2fac1d69386410d2041da42c5 100644 (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;