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

Fix a bug in kvtest causing "init --variance 0" runs to generate single byte

blob values only.

FossilOrigin-Name: 6b0276f968d3c6430076c6e540907cf840d0f398
This commit is contained in:
dan
2017-02-06 07:37:50 +00:00
parent 9630f3ba08
commit 809955b504
3 changed files with 9 additions and 9 deletions

View File

@ -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);