Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add a test to make sure a database can be attached to a single handle twice if not in shared-cache mode. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
1c4984c62f393f41f9182ea82546c16d |
User & Date: | dan 2009-11-20 17:18:06.000 |
Original User & Date: | dan 2009-11-20 10:18:06.000 |
References
2009-11-20
| ||
17:23 | Merge leaf accidentally created by [1c4984c62f]. (check-in: cae949ce97 user: dan tags: trunk) | |
Context
2009-11-20
| ||
17:23 | Merge leaf accidentally created by [1c4984c62f]. (check-in: cae949ce97 user: dan tags: trunk) | |
17:18 | Add a test to make sure a database can be attached to a single handle twice if not in shared-cache mode. (check-in: 1c4984c62f user: dan tags: trunk) | |
13:18 | Avoid unnecessary page cache allocations when move a page while autovacuuming an in-memory database, since the allocation might fail making it impossible to rollback the transaction. (check-in: 9a429349cc user: drh tags: trunk) | |
Changes
Changes to test/attach.test.
︙ | ︙ | |||
782 783 784 785 786 787 788 789 790 791 | } } {1 {database is locked}} do_test attach-8.4 { db errorcode } {5} db2 close file delete -force test2.db finish_test | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 | } } {1 {database is locked}} do_test attach-8.4 { db errorcode } {5} db2 close file delete -force test2.db # Test that it is possible to attach the same database more than # once when not in shared-cache mode. That this is not possible in # shared-cache mode is tested in shared7.test. do_test attach-9.1 { file delete -force test4.db execsql { ATTACH 'test4.db' AS aux1; CREATE TABLE aux1.t1(a, b); INSERT INTO aux1.t1 VALUES(1, 2); ATTACH 'test4.db' AS aux2; SELECT * FROM aux2.t1; } } {1 2} do_test attach-9.2 { file delete -force test4.db catchsql { BEGIN; INSERT INTO aux1.t1 VALUES(3, 4); INSERT INTO aux2.t1 VALUES(5, 6); } } {1 {database is locked}} do_test attach-9.3 { file delete -force test4.db execsql { COMMIT; SELECT * FROM aux2.t1; } } {1 2 3 4} finish_test |