diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-02-04 23:45:45 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-02-04 23:45:45 +0000 |
commit | e3b409f6830ba2f1a627aab87a6f701218ba08c9 (patch) | |
tree | 167ec67d2d1db07012d4f82a552a5b6eeafd21fe /lib/sqlalchemy/databases/mysql.py | |
parent | 36fc80d8cb28c35dcac0d03e251aa4eb18a78aee (diff) | |
download | sqlalchemy-e3b409f6830ba2f1a627aab87a6f701218ba08c9.tar.gz |
- 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
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |