Comment 2 for bug 709527

Revision history for this message
Matt Haggard (iffy) wrote :

diff --git a/tests/databases/base.py b/tests/databases/base.py
index 0802271..a9194dc 100644
--- a/tests/databases/base.py
+++ b/tests/databases/base.py
@@ -163,6 +163,11 @@ class DatabaseTest(object):
         result = self.connection.execute(Select(SQLRaw("1")))
         self.assertTrue(result.get_one(), (1,))

+ def test_execute_where_string(self):
+ result = self.connection.execute("SELECT * FROM test WHERE "
+ "title = ?", ('Title 10',))
+ self.assertEquals(result.get_one(), (10, "Title 10"))
+
     def test_get_one(self):
         result = self.connection.execute("SELECT * FROM test ORDER BY id")
         self.assertEquals(result.get_one(), (10, "Title 10"))