diff options
author | Frank M. Kromann <fmk@php.net> | 2001-01-05 22:01:22 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-01-05 22:01:22 +0000 |
commit | e4d1107058e25de05dab72945f827ef5e7ea7c04 (patch) | |
tree | 5f3e75e61af91b202e37feb60d19d99100beae08 /ext/odbc/php_odbc.c | |
parent | 6005910da26a0329f52777c87ed2676411291ac5 (diff) | |
download | php-git-e4d1107058e25de05dab72945f827ef5e7ea7c04.tar.gz |
Adding hack to allow odbc_tables to work on Access databases
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), |