Skip to content

Commit

Permalink
More minor changes to test scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielk-1977 committed May 29, 2018
1 parent 97ef6c8 commit c62142b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion ext/expert/expert1.test
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ do_setup_rec_test $tn.14 {
INSERT INTO t9 VALUES(?, ?, ?);
} {
CREATE INDEX t10_idx_00000062 ON t10(b);
-- TRIGGER t9t
SEARCH TABLE t10 USING INDEX t10_idx_00000062 (b=?)
}

Expand Down
4 changes: 3 additions & 1 deletion ext/expert/sqlite3expert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,9 @@ int idxFindIndexes(
}
}

pStmt->zEQP = idxAppendText(&rc, pStmt->zEQP, "%s\n", zDetail);
if( zDetail[0]!='-' ){
pStmt->zEQP = idxAppendText(&rc, pStmt->zEQP, "%s\n", zDetail);
}
}

for(pEntry=hIdx.pFirst; pEntry; pEntry=pEntry->pNext){
Expand Down
2 changes: 2 additions & 0 deletions test/resetdb.test
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if {[permutation]=="inmemory_journal"} {

# Create a sample database
do_execsql_test 100 {
PRAGMA auto_vacuum = 0;
PRAGMA page_size=4096;
CREATE TABLE t1(a,b);
WITH RECURSIVE c(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM c WHERE x<20)
Expand Down Expand Up @@ -92,6 +93,7 @@ db2 close
forcedelete test.db
sqlite3 db test.db
do_execsql_test 300 {
PRAGMA auto_vacuum = 0;
PRAGMA page_size=8192;
PRAGMA journal_mode=WAL;
CREATE TABLE t1(a,b);
Expand Down

0 comments on commit c62142b

Please sign in to comment.