Revision 2730
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
1025 | 1025 |
|
1026 | 1026 |
def table_exists(db, table): |
1027 | 1027 |
table = sql_gen.as_Table(table) |
1028 |
return list(tables(db, table.schema, table.name)) != [] |
|
1028 |
return list(tables(db, table.schema, table.name, exact=True)) != []
|
|
1029 | 1029 |
|
1030 | 1030 |
def errors_table(db, table, if_exists=True): |
1031 | 1031 |
''' |
Also available in: Unified diff
sql.py: table_exists(): Use new tables() exact param so that LIKE special chars in table name are not interpreted specially