]> 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)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Nov 2015 18:06:39 +0000 (13:06 -0500)
commit104cfe149ab78124412490b3c57df210821c8a00
treeb104d0899abe2e0cd80e72d8aaa463ceec8ecb20
parentc392ba1de775170efcaed870a7a9884073c83eb0
- 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

(cherry picked from commit fd47fea6fbb11ee84b7eea5772f40855703ebe47)
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
test/dialect/postgresql/test_compiler.py