]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Postgres: Do not prefix table with schema in: "FOR UPDATE of <table>"
authorDiana Clarke <diana.joan.clarke@gmail.com>
Tue, 24 Nov 2015 18:41:07 +0000 (13:41 -0500)
committerDiana Clarke <diana.joan.clarke@gmail.com>
Tue, 24 Nov 2015 18:58:50 +0000 (13:58 -0500)
commitfd47fea6fbb11ee84b7eea5772f40855703ebe47
treed523e7d9e25bb7a0feeb5393cf65d00b88b1efe4
parentf7943db2f32e3cace9cadc5cf05402d425b76d33
- Postgres: Do not prefix table with schema in: "FOR UPDATE of <table>"

For example, this query:

    SELECT s1.users.name FROM s1.users FOR UPDATE OF s1.users

should actually be:

    SELECT s1.users.name FROM s1.users FOR UPDATE OF users

fixes #3573
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
test/dialect/postgresql/test_compiler.py