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

index 367b9d897551accd9a37c778ecb46647f11cac65..0d56b636ef98950e46e01b611626970d865b07c2 100644 (file)
@@ -2879,6 +2879,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,