Compare commits
2 Commits
e6d0107e13
...
80e5732d31
Author | SHA1 | Date |
---|---|---|
Miss Islington (bot) | 80e5732d31 | |
Miss Islington (bot) | def7dc3b71 |
|
@ -265,6 +265,14 @@ class TraceCallbackTests(unittest.TestCase):
|
|||
cur.execute(queries[0])
|
||||
con2.execute("create table bar(x)")
|
||||
cur.execute(queries[1])
|
||||
|
||||
# Extract from SQLite 3.7.15 changelog:
|
||||
# Avoid invoking the sqlite3_trace() callback multiple times when a
|
||||
# statement is automatically reprepared due to SQLITE_SCHEMA errors.
|
||||
#
|
||||
# See bpo-40810
|
||||
if sqlite.sqlite_version_info < (3, 7, 15):
|
||||
queries.append(queries[-1])
|
||||
self.assertEqual(traced_statements, queries)
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
In :mod:`sqlite3`, fix `CheckTraceCallbackContent` for SQLite pre 3.7.15.
|
|
@ -90,7 +90,7 @@ if (-not $skipupload) {
|
|||
$d = "$target/$($p[0])/"
|
||||
& $plink -batch $user@$server mkdir $d
|
||||
& $plink -batch $user@$server chgrp downloads $d
|
||||
& $plink -batch $user@$server chmod g-x,o+rx $d
|
||||
& $plink -batch $user@$server chmod o+rx $d
|
||||
& $pscp -batch $chm.FullName "$user@${server}:$d"
|
||||
if (-not $?) { throw "Failed to upload $chm" }
|
||||
|
||||
|
@ -115,7 +115,7 @@ if (-not $skipupload) {
|
|||
$sd = "$d$($a.Name)$($p[1])/"
|
||||
& $plink -batch $user@$server mkdir $sd
|
||||
& $plink -batch $user@$server chgrp downloads $sd
|
||||
& $plink -batch $user@$server chmod g-x,o+rx $sd
|
||||
& $plink -batch $user@$server chmod o+rx $sd
|
||||
& $pscp -batch $msi.FullName "$user@${server}:$sd"
|
||||
if (-not $?) { throw "Failed to upload $msi" }
|
||||
& $plink -batch $user@$server chgrp downloads $sd*
|
||||
|
|
Loading…
Reference in New Issue