summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-20 18:18:17 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-20 18:18:17 -0400
commit2ccd77e5dc6e389159a64f7aed39b9785580a01c (patch)
tree05897cd208a950c782c454a3b2e016a7e7a9b919 /test/dialect/test_postgresql.py
parentaef0c7a903464f4e05496c69ff4e78d41239c220 (diff)
downloadsqlalchemy-2ccd77e5dc6e389159a64f7aed39b9785580a01c.tar.gz
- [feature] The Query.update() method is now
more lenient as to the table being updated. Plain Table objects are better supported now, and additional a joined-inheritance subclass may be used with update(); the subclass table will be the target of the update, and if the parent table is referenced in the WHERE clause, the compiler will call upon UPDATE..FROM syntax as allowed by the dialect to satisfy the WHERE clause. Target columns must still be in the target table i.e. does not support MySQL's multi-table update feature (even though this is in Core). PG's DELETE..USING is also not available in Core yet.
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r--test/dialect/test_postgresql.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py
index 0d46175e9..fda4002ef 100644
--- a/test/dialect/test_postgresql.py
+++ b/test/dialect/test_postgresql.py
@@ -1,4 +1,7 @@
# coding: utf-8
+
+from __future__ import with_statement
+
from test.lib.testing import eq_, assert_raises, assert_raises_message, is_
from test.lib import engines
import datetime