]> 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:05:52 +0000 (17:05 -0400)
commit32b2b31da2017fae8fcb759a52ad3d7081dec933
tree7ddcf1583f8bf34e0d1d441f20240f1193629966
parent66f3533de86506327c753c1ea80b121692535745
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
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