[Sqlalchemy-tickets] Issue #3181: MetaData.reflect with "only" keyword fails due to wrong capitaliz
Brought to you by:
zzzeek
|
From: Ivan S. <iss...@bi...> - 2014-09-02 17:32:35
|
New issue 3181: MetaData.reflect with "only" keyword fails due to wrong capitalization [Oracle] https://bitbucket.org/zzzeek/sqlalchemy/issue/3181/metadatareflect-with-only-keyword-fails Ivan Smirnov: ```sql CREATE TABLE "FOO"."BAR" ( ... ) ``` This works as expected: ```python >>> engine.has_table('BAR', schema='FOO') True >>> engine.has_table('bar', schema='FOO') True ``` However this doesn't: ```python >>> meta.reflect(schema='FOO', only=['BAR']) InvalidRequestError: Could not reflect: requested table(s) not available in oracle+cx_oracle://***:***@*** schema 'FOO': (BAR) ``` which only seems to works if names in `only` are manually lowercased: ```python >>> meta.reflect(schema='FOO', only=['bar']) ``` Responsible: zzzeek |