]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
test / document postgresql_ops against a labeled expression
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 24 Apr 2017 20:19:08 +0000 (16:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 24 Apr 2017 20:22:43 +0000 (16:22 -0400)
commit4120a4c793217fa5f644c2ec01f154225f0fd65d
tree141d08cd9dcee14cca49dd92f0f00504a1b1162e
parent6e4c212082d5805b0ffed76c16a16eb291223d43
test / document postgresql_ops against a labeled expression

Since postgresql_ops explicitly states that it expects
string keys, to apply to a function call or expression one
needs to give the SQL expression a label that can be referred
to by name in the dictionary.   test / document this.

Change-Id: I4bc4ade46dac27f9c1b92e7823433292beab97b9
Fixes: #3970
(cherry picked from commit 029d0f75385298f8056c04eba1d2f9563126a8a6)
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_compiler.py