]> git.saurik.com Git - cyql.git/commitdiff
Handle exists() with format arguments.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 12 Oct 2010 08:06:04 +0000 (08:06 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 12 Oct 2010 08:06:04 +0000 (08:06 +0000)
__init__.py

index 0883b3a1ff495be685d3dc74427b03c7a23f4cb2..10383d3c320ec5fe1f1c62c15e61adb753d789af 100644 (file)
@@ -70,7 +70,7 @@ class transaction(object):
             select exists (
                 {statement}
             )
-        ''')[0]
+        '''.format(**locals()), 1)[0]
 
 @contextmanager
 def connect(dsn):