]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use NCHAR + setinputsizes() for all NVARCHAR2
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 Jan 2018 17:41:29 +0000 (12:41 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Jan 2018 14:29:32 +0000 (09:29 -0500)
commitff4898fd42d0b6f5166b1c41a71adafd0d9fed40
tree89fae5ccadd33ad1e7973039a1988ff7237cbcc7
parent92cabe2d8803c5f4aa3e627ef131ffa765ddc1c6
Use NCHAR + setinputsizes() for all NVARCHAR2

The cx_Oracle dialect now calls setinputsizes() with cx_Oracle.NCHAR
unconditionally when the NVARCHAR2 datatype, in SQLAlchemy corresponding
to sqltypes.Unicode(), is in use.  Per cx_Oracle's author this allows
the correct conversions to occur within the Oracle client regardless
of the setting for NLS_NCHAR_CHARACTERSET.

Change-Id: I3989b7aaf2178c263015a7433939196b76baf1e4
Fixes: #4163
doc/build/changelog/unreleased_12/4163.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/oracle/cx_oracle.py