]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Document how to opt-out of NCHAR for cx_Oracle
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 20 Apr 2018 17:31:45 +0000 (13:31 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 20 Apr 2018 17:33:28 +0000 (13:33 -0400)
commit013c076a96809aa620f4fbba3f904f41104ddffa
treed3c4487b1db15d647770aa05c39f2bdff512047c
parent282e8568e182f04d294136be6242515cde8af3d2
Document how to opt-out of NCHAR for cx_Oracle

Unfortunately, we need to bind Python unicode values as
NCHAR as in the case where non-ascii characters are present,
it's necessary.  We can't know in all cases how this value is being
used, so in those cases where Oracle will not accept NCHAR the
user should explicitly cast a value down to String.

Change-Id: I1a70739033435a7bf5effe2fa810ab064cea9188
Fixes: #4242
(cherry picked from commit e6e1c02c96b077700187420019194989ea55a646)
lib/sqlalchemy/dialects/oracle/cx_oracle.py