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:
@ -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);
|
||||
|
Reference in New Issue
Block a user