]> 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:29 +0000 (16:22 -0400)
commit029d0f75385298f8056c04eba1d2f9563126a8a6
tree433ac6eae152ab99373a55bf6fcaf023563d3cd4
parent6560bf82f387ca53c79f91f93ae97e6594795da8
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
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_compiler.py