[Sqlalchemy-tickets] Issue #3124: Infinite loop when using create_all() on an Enum(metadata=...) in
Brought to you by:
zzzeek
|
From: eevee <iss...@bi...> - 2014-07-13 21:06:35
|
New issue 3124: Infinite loop when using create_all() on an Enum(metadata=...) in SQLite https://bitbucket.org/zzzeek/sqlalchemy/issue/3124/infinite-loop-when-using-create_all-on-an eevee: Reported here, but seen someone else experience it too: http://stackoverflow.com/q/24720380/17875 My diagnosis from figuring it out with the someone else on IRC: 18:43 <!eevee> somehow calling self._on_metadata_create within the metadata's create event is adding itself as an event listener again 18:44 <!eevee> because, i think, it re-creates a dialect-specific enum with the same args... 18:44 <!eevee> looks pretty clearly like a bug wow 18:44 <@Zhorken> it specifically hangs with SQLite 18:44 <@Zhorken> or at least, not with Postgres 18:45 <!eevee> ah, postgres has a real enum type; sqlite doesn't so it gets a fallback |