From: Frank M. Kromann Date: Fri, 5 Jan 2001 22:01:22 +0000 (+0000) Subject: Adding hack to allow odbc_tables to work on Access databases X-Git-Tag: php-4.0.5RC1~715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4d1107058e25de05dab72945f827ef5e7ea7c04;p=php Adding hack to allow odbc_tables to work on Access databases --- diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 0650224f8f..393aa8ae20 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -2506,6 +2506,9 @@ PHP_FUNCTION(odbc_tables) RETURN_FALSE; } + /* This hack is needed to access table information in Access databases (fmk) */ + if (table && strlen(table) && schema && !strlen(schema)) schema = NULL; + rc = SQLTables(result->stmt, cat, SAFE_SQL_NTS(cat), schema, SAFE_SQL_NTS(schema),