diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-08-18 10:48:16 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-08-18 11:53:26 -0400 |
commit | 9dd3184f7b48f0dd402dbf7db5f7f13d51483804 (patch) | |
tree | 441ec58781fb986ce333f17a8bc47dcdc726c9a4 /lib/sqlalchemy/orm/context.py | |
parent | b09dbcf141afa516f55857b37396f91d1f2aae0f (diff) | |
download | sqlalchemy-9dd3184f7b48f0dd402dbf7db5f7f13d51483804.tar.gz |
CAST Oracle table_name, owner, others to VARCHAR(128)
Added a CAST(VARCHAR2(128)) to the "table name", "owner", and other
DDL-name parameters as used in reflection queries against Oracle system
views such as ALL_TABLES, ALL_TAB_CONSTRAINTS, etc to better enable
indexing to take place against these columns, as they previously would be
implicitly handled as NVARCHAR2 due to Python's use of Unicode for strings;
these columns are documented in all Oracle versions as being VARCHAR2 with
lengths varying from 30 to 128 characters depending on server version.
Additionally, test support has been enabled for Unicode-named DDL
structures against Oracle databases.
Fixes: #4486
Change-Id: I2787e3f8de1f656318692bd535d6a7f1cef1a841
Diffstat (limited to 'lib/sqlalchemy/orm/context.py')
0 files changed, 0 insertions, 0 deletions