Skip to content

Commit 64a31c5

Browse files
author
Erlend Egeberg Aasland
authored
[3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128)
(cherry picked from commit be7e467) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent f3007ea commit 64a31c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/sqlite3/test/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def trace(statement):
242242
# Can't execute bound parameters as their values don't appear
243243
# in traced statements before SQLite 3.6.21
244244
# (cf. http://www.sqlite.org/draft/releaselog/3_6_21.html)
245-
con.execute('insert into foo(x) values ("%s")' % unicode_value)
245+
con.execute("insert into foo(x) values ('%s')" % unicode_value)
246246
con.commit()
247247
self.assertTrue(any(unicode_value in stmt for stmt in traced_statements),
248248
"Unicode data %s garbled in trace callback: %s"

0 commit comments

Comments
 (0)