]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- add missing quotes
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Aug 2017 22:19:02 +0000 (18:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Aug 2017 22:19:02 +0000 (18:19 -0400)
Change-Id: Ib6efc465cccd7c7661dd089856edfd4979b53517

lib/sqlalchemy/testing/provision.py

index 7ea6a569cd0c59b43d98abd57ed9ccc987a603c0..b8ffa9687c9e4012e9cb26d0a1e8f6091c8c6228 100644 (file)
@@ -181,7 +181,7 @@ def _pg_create_db(cfg, eng, ident):
                 time.sleep(.5)
                 result = conn.execute(
                     "SELECT datname FROM pg_database "
-                    "where datname=%s" % ident)
+                    "where datname='%s'" % ident)
                 row = result.first()
                 if not row:
                     raise Exception(