Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Update to tests for the session extension. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8ad03d5b812987fe1352c063f42015ba |
User & Date: | mistachkin 2017-10-14 21:57:51.098 |
Context
2017-10-14
| ||
22:40 | Add tests for the session extension change group methods. Remove extraneous byte array parameter check from the SQLiteChangeGroup.CreateChangeSet method. check-in: e7e1b9dcf9 user: mistachkin tags: trunk | |
21:57 | Update to tests for the session extension. check-in: 8ad03d5b81 user: mistachkin tags: trunk | |
07:33 | Add full support for the native session extension. check-in: 17c0ae883b user: mistachkin tags: trunk | |
Changes
Changes to Tests/session.eagle.
︙ | ︙ | |||
606 607 608 609 610 611 612 613 614 615 616 617 618 619 | unset -nocomplain state byteArray session freeDbConnection unset -nocomplain connection cleanupDb $fileName(0) unset -nocomplain db fileName } -constraints {eagle command.object monoBug28 command.sql compile.DATA SQLite\ System.Data.SQLite SQLiteInterop\ defineConstant.System.Data.SQLite.INTEROP_SESSION_EXTENSION} -result \ {{{TableName t1 NumberOfColumns 2 OperationCode Insert Indirect False\ | > > > | 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 | unset -nocomplain state byteArray session freeDbConnection unset -nocomplain connection cleanupFile $fileName(2) cleanupFile $fileName(1) cleanupDb $fileName(0) unset -nocomplain db fileName } -constraints {eagle command.object monoBug28 command.sql compile.DATA SQLite\ System.Data.SQLite SQLiteInterop\ defineConstant.System.Data.SQLite.INTEROP_SESSION_EXTENSION} -result \ {{{TableName t1 NumberOfColumns 2 OperationCode Insert Indirect False\ |
︙ | ︙ | |||
934 935 936 937 938 939 940 | openStreamChangeSetForConnection \ $connection $fileName(1) $fileName(3) state1 openStreamChangeSetForConnection \ $connection $fileName(2) "" state2 | | | 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 | openStreamChangeSetForConnection \ $connection $fileName(1) $fileName(3) state1 openStreamChangeSetForConnection \ $connection $fileName(2) "" state2 $state1(changeSet) CombineWith $state2(changeSet); unset state2 state1 openStreamChangeSetForConnection \ $connection $fileName(3) "" state3 $state3(changeSet) -marshalflags +DynamicCallback \ Apply conflictCallback null; unset state3 |
︙ | ︙ | |||
956 957 958 959 960 961 962 963 964 965 966 967 968 969 | cleanupSomeText unset -nocomplain state4 state3 state2 state1 freeDbConnection unset -nocomplain connection cleanupDb $fileName(0) catch {object removecallback conflictCallback} catch { foreach callbackResult $callbackResults { | > > > | 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 | cleanupSomeText unset -nocomplain state4 state3 state2 state1 freeDbConnection unset -nocomplain connection cleanupFile $fileName(2) cleanupFile $fileName(1) cleanupDb $fileName(0) catch {object removecallback conflictCallback} catch { foreach callbackResult $callbackResults { |
︙ | ︙ | |||
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 | unset -nocomplain state4 state3 state2 state1 freeDbConnection unset -nocomplain connection cleanupDb $fileName(0) catch {object removecallback conflictCallback} catch { foreach callbackResult $callbackResults { catch {object dispose $callbackResult} | > > > > | 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 | unset -nocomplain state4 state3 state2 state1 freeDbConnection unset -nocomplain connection cleanupFile $fileName(3) cleanupFile $fileName(2) cleanupFile $fileName(1) cleanupDb $fileName(0) catch {object removecallback conflictCallback} catch { foreach callbackResult $callbackResults { catch {object dispose $callbackResult} |
︙ | ︙ | |||
1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 | } -constraints {eagle command.object monoBug28 command.sql compile.DATA SQLite\ System.Data.SQLite SQLiteInterop\ defineConstant.System.Data.SQLite.INTEROP_SESSION_EXTENSION} -result {{1\ {inserted: Alpha Bravo Charlie Delta Echo} 2 {inserted: Foxtrot Golf Hotel\ India Juliet}} {1 {inserted: Alpha Bravo Charlie Delta Echo} 2 {inserted:\ Foxtrot Golf Hotel India Juliet} 3 {inserted: Kilo Lima Mike November Oscar} 4\ {inserted: Papa Quebec Romeo Sierra Tango}}}} ############################################################################### rename conflictCallback "" rename tableFilterCallbackT1 "" rename createByteArray "" rename arrayToList "" | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 | } -constraints {eagle command.object monoBug28 command.sql compile.DATA SQLite\ System.Data.SQLite SQLiteInterop\ defineConstant.System.Data.SQLite.INTEROP_SESSION_EXTENSION} -result {{1\ {inserted: Alpha Bravo Charlie Delta Echo} 2 {inserted: Foxtrot Golf Hotel\ India Juliet}} {1 {inserted: Alpha Bravo Charlie Delta Echo} 2 {inserted:\ Foxtrot Golf Hotel India Juliet} 3 {inserted: Kilo Lima Mike November Oscar} 4\ {inserted: Papa Quebec Romeo Sierra Tango}}}} ############################################################################### runTest {test session-1.9 {apply change set (remote stream)} -setup { setupDb [set fileName session-1.9.db] cleanupSomeText } -body { createTheSchema $db main set connection [getDbConnection] set webClient [object create -alias System.Net.WebClient] set stream [$webClient -alias OpenRead \ https://system.data.sqlite.org/tests/session-1.9.bin] set changeSet [$connection -alias CreateChangeSet $stream null] $changeSet -marshalflags +DynamicCallback \ Apply conflictCallback null; unset changeSet string tolower [hash normal sha1 [sql execute -execute reader \ -format list $db {SELECT x, y FROM t1 ORDER BY x;}]] } -cleanup { cleanupSomeText unset -nocomplain changeSet stream webClient freeDbConnection unset -nocomplain connection cleanupDb $fileName catch {object removecallback conflictCallback} catch { foreach callbackResult $callbackResults { catch {object dispose $callbackResult} } } unset -nocomplain callbackResult callbackResults db fileName } -constraints {eagle command.object monoBug28 command.sql compile.DATA SQLite\ System.Data.SQLite SQLiteInterop\ defineConstant.System.Data.SQLite.INTEROP_SESSION_EXTENSION} -result \ {06631bf3545dba83b25db5142afc4d229544ed55}} ############################################################################### rename conflictCallback "" rename tableFilterCallbackT1 "" rename createByteArray "" rename arrayToList "" |
︙ | ︙ |