]> granicus.if.org Git - php/commitdiff
Adding hack to allow odbc_tables to work on Access databases
authorFrank M. Kromann <fmk@php.net>
Fri, 5 Jan 2001 22:01:22 +0000 (22:01 +0000)
committerFrank M. Kromann <fmk@php.net>
Fri, 5 Jan 2001 22:01:22 +0000 (22:01 +0000)
ext/odbc/php_odbc.c

index 0650224f8fbc6c103e5abccfe8eb040b61cf7a5a..393aa8ae207d64ab4a81f1907b29685ffdaf4c9a 100644 (file)
@@ -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),