]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use simple decimal query to detect decimal char
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 31 Oct 2022 19:09:34 +0000 (15:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 1 Nov 2022 21:06:57 +0000 (17:06 -0400)
commit766d329f83cd7a2f65114cf5a628087bbfef151c
tree7e3a737244e78182878d0a14b8c69b33c749997f
parent996063e5a87f64b4536d441eaa12ba2f8b765a44
use simple decimal query to detect decimal char

Fixed issue where the ``nls_session_parameters`` view queried on first
connect in order to get the default decimal point character may not be
available depending on Oracle connection modes, and would therefore raise
an error.  The approach to detecting decimal char has been simplified to
test a decimal value directly, instead of reading system views, which
works on any backend / driver.

Fixes: #8744
Change-Id: I39825131c13513798863197d0c180dd5a18b32dc
(cherry picked from commit 12b334417bf67c1ed302d30787e4c2dfae7ee335)
doc/build/changelog/unreleased_14/8744.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/oracle/cx_oracle.py
test/dialect/oracle/test_types.py