[Sqlalchemy-tickets] Issue #3264: has_table() in Postgresql doesnt work for temporary (zzzeek/sqlal
Brought to you by:
zzzeek
|
From: Mike B. <iss...@bi...> - 2014-12-04 16:42:00
|
New issue 3264: has_table() in Postgresql doesnt work for temporary https://bitbucket.org/zzzeek/sqlalchemy/issue/3264/has_table-in-postgresql-doesnt-work-for Mike Bayer: ``` #!python from sqlalchemy import * metadata = MetaData() user_tmp = Table( "user_tmp", metadata, Column("id", INT, primary_key=True), Column('name', VARCHAR(50)), prefixes= ['TEMPORARY'] ) e = create_engine("postgresql://scott:tiger@localhost/test", echo='debug') user_tmp.create(e, checkfirst=True) user_tmp.create(e, checkfirst=True) ``` |