1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Preliminary fix for ticket #2291. This fixes the immediate problem. But

we really need to write more tests for the xfer optimization in order to
look for other related problems before closing this ticket. (CVS 3835)

FossilOrigin-Name: 34fec312fd1aeabb04e07d6aa061991775c7b8a1
This commit is contained in:
drh
2007-04-10 18:17:55 +00:00
parent 1eb2538a33
commit f33c9fad35
4 changed files with 32 additions and 24 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the INSERT transfer optimization.
#
# $Id: insert4.test,v 1.3 2007/02/24 15:18:50 drh Exp $
# $Id: insert4.test,v 1.4 2007/04/10 18:17:55 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -227,4 +227,16 @@ xfer_check insert4-3.22 1 {1 9} \
{x integer, b int}
# Ticket #2291.
#
do_test insert4-4.1 {
execsql {
CREATE TABLE t4(a, b, PRIMARY KEY(a,b));
INSERT INTO t4 VALUES(NULL,0);
INSERT INTO t4 VALUES(NULL,1);
INSERT INTO t4 VALUES(NULL,1);
VACUUM;
}
} {}
finish_test