From: Dan Kalowsky Date: Fri, 24 Jan 2003 22:40:38 +0000 (+0000) Subject: Patch for bug #21844 X-Git-Tag: PHP_5_0_dev_before_13561_fix~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b48d709746d45bc0f0fe336f503f162ff8761565;p=php Patch for bug #21844 --- diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 367b9d8975..0d56b636ef 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -2879,6 +2879,11 @@ PHP_FUNCTION(odbc_columns) RETURN_FALSE; } + /* + * Needed to make MS Access happy + */ + if (table && strlen(table) && schema && !strlen(schema)) schema = NULL; + rc = SQLColumns(result->stmt, cat, cat_len, schema, schema_len,