From e3b409f6830ba2f1a627aab87a6f701218ba08c9 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 4 Feb 2007 23:45:45 +0000 Subject: - added "schema" argument to all has_table() calls, only supported so far by PG - added basic unit test for PG reflection of tables in an alternate schema --- lib/sqlalchemy/databases/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index c09d02756..c6bf2695f 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -335,7 +335,7 @@ class MySQLDialect(ansisql.ANSIDialect): def dbapi(self): return self.module - def has_table(self, connection, table_name): + def has_table(self, connection, table_name, schema=None): cursor = connection.execute("show table status like '" + table_name + "'") return bool( not not cursor.rowcount ) -- cgit v1.2.1