[Sqlalchemy-tickets] Issue #3068: using conv() should be bypassing naming convention entirely (zzze
Brought to you by:
zzzeek
|
From: Mike B. <iss...@bi...> - 2014-06-03 15:32:57
|
New issue 3068: using conv() should be bypassing naming convention entirely https://bitbucket.org/zzzeek/sqlalchemy/issue/3068/using-conv-should-be-bypassing-naming Mike Bayer: this issue is mostly fixed by c33d0378802a with #3028 but that is a different issue being fixed here. if conv() is present we shouldn't be hitting naming convention logic at all. the below fails in 0.9.4 but succeeds in rel_0_9: ``` #!python from sqlalchemy import UniqueConstraint, Table, MetaData from sqlalchemy.sql.naming import conv m = MetaData(naming_convention={"uq": "uq_%(table_name)s_%(column_0_name)s"}) t = Table('mytable', m) uq = UniqueConstraint(name=conv('my_special_key')) t.append_constraint(uq) ``` |