[Sqlalchemy-tickets] Issue #4038: Additional dialect kwargs are not reflected (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
From: chebee7i <iss...@bi...> - 2017-07-31 13:57:36
|
New issue 4038: Additional dialect kwargs are not reflected https://bitbucket.org/zzzeek/sqlalchemy/issues/4038/additional-dialect-kwargs-are-not chebee7i: Some keyword kwargs like 'mysql_partition_by' and 'mysql_stats_sample_pages' are not reflected and stored in kwargs. ``` #!python import sqlalchemy as sa m = sa.MetaData() t = sa.Table('ti', m, sa.Column('id', sa.Integer), sa.Column('amount', sa.DECIMAL(7, 2)), sa.Column('tr_date', sa.Date), mysql_engine='InnoDB', mysql_partition_by='HASH( MONTH(tr_date) )', mysql_partitions='6' ) engine = ... t.create(engine) m2 = sa.Metadata(bind=engine, reflect=True) assert 'mysql_partition_by' in m2.tables['ti'].kwargs # AssertionError ``` |