]> granicus.if.org Git - php/commitdiff
Patch for bug #21844
authorDan Kalowsky <kalowsky@php.net>
Fri, 24 Jan 2003 22:43:42 +0000 (22:43 +0000)
committerDan Kalowsky <kalowsky@php.net>
Fri, 24 Jan 2003 22:43:42 +0000 (22:43 +0000)
ext/odbc/php_odbc.c

index 42bdea5d4448847a9e6a35b956edf45bde0d5c8f..9fecc74fe2ff72f674f7eda571d93ebb470ab160 100644 (file)
@@ -2922,6 +2922,11 @@ PHP_FUNCTION(odbc_columns)
                RETURN_FALSE;
        }
 
+       /* 
+        * Needed to make MS Access happy
+        */
+       if (table && strlen(table) && schema && !strlen(schema)) schema = NULL;
+
        rc = SQLColumns(result->stmt, 
                        cat, cat_len,
                        schema, schema_len,