diff options
author | dan <dan@noemail.net> | 2017-02-06 07:37:50 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2017-02-06 07:37:50 +0000 |
commit | 809955b504cbb41daa14152647b990cb36b0965b (patch) | |
tree | 076e3f9a2cad9bbebd112d4b1436a34a4c10c5b8 /test/kvtest.c | |
parent | 9630f3ba085cf4d3a4b9b198153470cf2fd8fea8 (diff) | |
download | sqlite-809955b504cbb41daa14152647b990cb36b0965b.tar.gz sqlite-809955b504cbb41daa14152647b990cb36b0965b.zip |
Fix a bug in kvtest causing "init --variance 0" runs to generate single byte
blob values only.
FossilOrigin-Name: 6b0276f968d3c6430076c6e540907cf840d0f398
Diffstat (limited to 'test/kvtest.c')
-rw-r--r-- | test/kvtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/kvtest.c b/test/kvtest.c index 2a108aa47..77ee02a4f 100644 --- a/test/kvtest.c +++ b/test/kvtest.c @@ -310,7 +310,7 @@ static int initMain(int argc, char **argv){ "WITH RECURSIVE c(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM c WHERE x<%d)" " INSERT INTO kv(k,v) SELECT x, randomblob(%d+(random()%%(%d))) FROM c;\n" "COMMIT;\n", - pgsz, nCount, sz, iVariance + pgsz, nCount, sz, iVariance+1 ); rc = sqlite3_exec(db, zSql, 0, 0, &zErrMsg); if( rc ) fatalError("database create failed: %s", zErrMsg); |