From a9a1f912fd9445d7496584a256e449ad1fd2a808 Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Sun, 29 Jul 2007 04:15:14 +0000 Subject: engine.table_names() tested vs sqlite and pg. mssql should also be ok (uses ischema like pg.) others are best-guess based on has_table code. --- lib/sqlalchemy/databases/postgres.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/sqlalchemy/databases/postgres.py') diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index b192c4778..697ca8d15 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -334,6 +334,9 @@ class PGDialect(ansisql.ANSIDialect): return "losed the connection unexpectedly" in str(e) else: return False + + def table_names(self, connection, schema): + return ischema.table_names(connection, schema) def reflecttable(self, connection, table, include_columns): if self.use_information_schema: -- cgit v1.2.1