Changes to the sesssions module ensure that tables appear within changesets and patchsets in the same order that they were attached to the sessions object.

FossilOrigin-Name: 7695890230dc1e0c6db9b7aa509db2039c7f7239
This commit is contained in:
dan
2015-10-01 16:35:57 +00:00
parent 32af5eda6a
commit 6c39e6a800
9 changed files with 376 additions and 42 deletions
-10
View File
@@ -31,16 +31,6 @@ set testprefix sessionB
# 3.*: Test that sqlite3changeset_invert() works with patchset blobs.
# Correct behaviour is to return SQLITE_CORRUPT.
proc do_patchset_test {tn session res} {
set r [list]
foreach x $res {lappend r $x}
uplevel do_test $tn [list [subst -nocommands {
set x [list]
sqlite3session_foreach c [$session patchset] { lappend x [set c] }
set x
}]] [list $r]
}
proc do_sql2patchset_test {tn sql res} {
sqlite3session S db main
S attach *