]> 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:31:45 +0000 (13:31 -0400)
commite6e1c02c96b077700187420019194989ea55a646
tree697a4cb4dca36937f17791359d134abc12e97ae0
parent887636beb14235fb56af8e361d07d96de7ea152e
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
lib/sqlalchemy/dialects/oracle/cx_oracle.py