Lines Matching refs:sp1
577 let mut sp1 = tx.savepoint().unwrap(); in test_savepoint() localVariable
578 sp1.execute_batch("INSERT INTO foo VALUES(2)").unwrap(); in test_savepoint()
579 assert_current_sum(3, &sp1); in test_savepoint()
582 let mut sp2 = sp1.savepoint().unwrap(); in test_savepoint()
595 assert_current_sum(3, &sp1); in test_savepoint()
608 let mut sp1 = tx.savepoint().unwrap(); in test_ignore_drop_behavior() localVariable
609 insert(1, &sp1); in test_ignore_drop_behavior()
610 sp1.rollback().unwrap(); in test_ignore_drop_behavior()
611 insert(2, &sp1); in test_ignore_drop_behavior()
613 let mut sp2 = sp1.savepoint().unwrap(); in test_ignore_drop_behavior()
617 assert_current_sum(6, &sp1); in test_ignore_drop_behavior()
618 sp1.commit().unwrap(); in test_ignore_drop_behavior()
628 let mut sp1 = db.savepoint_with_name("my_sp").unwrap(); in test_savepoint_names() localVariable
629 insert(1, &sp1); in test_savepoint_names()
630 assert_current_sum(1, &sp1); in test_savepoint_names()
632 let mut sp2 = sp1.savepoint_with_name("my_sp").unwrap(); in test_savepoint_names()
640 assert_current_sum(5, &sp1); in test_savepoint_names()
641 sp1.rollback().unwrap(); in test_savepoint_names()
643 let mut sp2 = sp1.savepoint_with_name("my_sp").unwrap(); in test_savepoint_names()
647 assert_current_sum(8, &sp1); in test_savepoint_names()
648 sp1.commit().unwrap(); in test_savepoint_names()