diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-02 15:37:24 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-02 18:03:08 -0400 |
commit | cff9544ab3aba84b65b008e51b79cdf486567d12 (patch) | |
tree | ebdac5ee1c566118b5f9682f52fe9db2a6e4cc95 /test/dialect/oracle/test_compiler.py | |
parent | 70c9bc03395fc372e1451bd1bc47c737bd0a44d4 (diff) | |
download | sqlalchemy-cff9544ab3aba84b65b008e51b79cdf486567d12.tar.gz |
Change Oracle max_identifier_length to 128
The max_identifier_length for the Oracle dialect is now 128 characters by
default, unless compatibility version less than 12.2 upon first connect, in
which case the legacy length of 30 characters is used. This is a
continuation of the issue as committed to the 1.3 series which adds max
identifier length detection upon first connect as well as warns for the
change in Oracle server.
Fixes: #4857
Change-Id: I5b11edaebb54ec7f0e5456a785105838a1d752e5
Diffstat (limited to 'test/dialect/oracle/test_compiler.py')
-rw-r--r-- | test/dialect/oracle/test_compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dialect/oracle/test_compiler.py b/test/dialect/oracle/test_compiler.py index a6ea7d2b1..32ef7fd78 100644 --- a/test/dialect/oracle/test_compiler.py +++ b/test/dialect/oracle/test_compiler.py @@ -664,11 +664,11 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): checkparams={"param_1": 20, "param_2": 10}, ) - def test_long_labels(self): + def test_long_labels_legacy_ident_length(self): dialect = default.DefaultDialect() dialect.max_identifier_length = 30 - ora_dialect = oracle.dialect() + ora_dialect = oracle.dialect(max_identifier_length=30) m = MetaData() a_table = Table( |