summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-04-03 16:34:03 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-04-03 16:34:03 +0000
commitabb10856dcea07ca4d38d28df4e493d11d8fd345 (patch)
tree3936f0a7a9ddf7560928b6e21c4fd4a8669c337a /lib/sqlalchemy/util.py
parenta27d6be28a0beb35da2e3eb1dfed7ab7460d7654 (diff)
downloadsqlalchemy-abb10856dcea07ca4d38d28df4e493d11d8fd345.tar.gz
- case() interprets the "THEN" expressions
as values by default, meaning case([(x==y, "foo")]) will interpret "foo" as a bound value, not a SQL expression. use text(expr) for literal SQL expressions in this case. For the criterion itself, these may be literal strings only if the "value" keyword is present, otherwise SA will force explicit usage of either text() or literal().
Diffstat (limited to 'lib/sqlalchemy/util.py')
0 files changed, 0 insertions, 0 deletions