]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
parse for parenthesis in referenced tablename, columnname
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Sep 2023 15:05:48 +0000 (11:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Sep 2023 18:21:37 +0000 (14:21 -0400)
commitd12d38ced6a3243572bed3c8b316016048968450
treeb7059d3cdf8f9e52ee710eb70a881008c874fd6b
parent8aa575366cc671ba8b28f2603cc3ca3b675f868f
parse for parenthesis in referenced tablename, columnname

Fixed a series of reflection issues affecting the PostgreSQL,
MySQL/MariaDB, and SQLite dialects when reflecting foreign key constraints
where the target column contained parenthesis in one or both of the table
name or column name.

Fixes: #10275
Change-Id: Ia2393d45416af6b36e7cab4ee10c2ade7a7e49b3
doc/build/changelog/unreleased_20/10275.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/reflection.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/dialect/postgresql/test_dialect.py