summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorDan Kalowsky <kalowsky@php.net>2003-01-24 22:43:42 +0000
committerDan Kalowsky <kalowsky@php.net>2003-01-24 22:43:42 +0000
commit306918850b591840f037a8b20134d1d7b49977ef (patch)
tree28ca88fdf35541d3a868449b198e95488e2eb065 /ext/odbc/php_odbc.c
parent6695acbd23fbaa5ec21e75632a1a3909276ad042 (diff)
downloadphp-git-306918850b591840f037a8b20134d1d7b49977ef.tar.gz
Patch for bug #21844
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r--ext/odbc/php_odbc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 42bdea5d44..9fecc74fe2 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -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,