From e4d1107058e25de05dab72945f827ef5e7ea7c04 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Fri, 5 Jan 2001 22:01:22 +0000 Subject: [PATCH] Adding hack to allow odbc_tables to work on Access databases --- ext/odbc/php_odbc.c | 3 +++ 1 file changed, 3 insertions(+) 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), -- 2.50.1