From: Dan Kalowsky Date: Fri, 24 Jan 2003 22:43:42 +0000 (+0000) Subject: Patch for bug #21844 X-Git-Tag: PHP_4_3_before_13561_fix~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=306918850b591840f037a8b20134d1d7b49977ef;p=php Patch for bug #21844 --- diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 42bdea5d44..9fecc74fe2 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -2922,6 +2922,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,