summaryrefslogtreecommitdiff
path: root/test/sql/query.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-12-17 23:09:51 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-12-17 23:09:51 +0000
commit6a99f293130c6e11aba28c19c84f9195c5bf60c7 (patch)
treefec4da7bdcf1a3698f71eb24bda378249f3d56a4 /test/sql/query.py
parent7b7530de199963fc946b7f96c14bf78ae24a43a3 (diff)
downloadsqlalchemy-6a99f293130c6e11aba28c19c84f9195c5bf60c7.tar.gz
- _execute_clauseelement() goes back to being
a private method. Subclassing Connection is not needed now that ConnectionProxy is available. - tightened the interface for the various _execute_XXX() methods to reduce ambiguity - __distill_params() no longer creates artificial [{}] entry, blank dict is no longer passed through to do_execute() in any case unless explicitly sent from the outside as in connection.execute("somestring"), {}) - fixed a few old sql.query tests which were doing that - removed needless do_execute() from mysql dialect - fixed charset param not properly being sent to _compat_fetchone() in mysql
Diffstat (limited to 'test/sql/query.py')
-rw-r--r--test/sql/query.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sql/query.py b/test/sql/query.py
index 86ad02aa4..9b3d4cec5 100644
--- a/test/sql/query.py
+++ b/test/sql/query.py
@@ -486,10 +486,10 @@ class QueryTest(TestBase):
r = users.select().execute().fetchone()
self.assertEqual(len(r), 2)
r.close()
- r = testing.db.execute('select user_name, user_id from query_users', {}).fetchone()
+ r = testing.db.execute('select user_name, user_id from query_users').fetchone()
self.assertEqual(len(r), 2)
r.close()
- r = testing.db.execute('select user_name from query_users', {}).fetchone()
+ r = testing.db.execute('select user_name from query_users').fetchone()
self.assertEqual(len(r), 1)
r.close()
@@ -513,7 +513,7 @@ class QueryTest(TestBase):
def test_column_order_with_text_query(self):
# should return values in query order
users.insert().execute(user_id=1, user_name='foo')
- r = testing.db.execute('select user_name, user_id from query_users', {}).fetchone()
+ r = testing.db.execute('select user_name, user_id from query_users').fetchone()
self.assertEqual(r[0], 'foo')
self.assertEqual(r[1], 1)
self.assertEqual([x.lower() for x in r.keys()], ['user_name', 'user_id'])