diff options
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r-- | ext/odbc/php_odbc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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), |