aboutsummaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authordrh <>2024-02-19 16:22:58 +0000
committerdrh <>2024-02-19 16:22:58 +0000
commite7bdb2172c717f7ba64e15fb65b930524e759d71 (patch)
tree4df3b8b0a318608261e4f2f2ec8ae120d7508e59 /ext/session
parent6c6356f7f2f3c6e717d445d117407e2edecccac5 (diff)
downloadsqlite-e7bdb2172c717f7ba64e15fb65b930524e759d71.tar.gz
sqlite-e7bdb2172c717f7ba64e15fb65b930524e759d71.zip
If a table has one or more rows and it has a partial index has zero rows,
still make an entry in the sqlite_stat1 table for the partial index, so that we know that "PRAGMA optimize" does not need to redo the whole table. FossilOrigin-Name: e147b18991dd462fff367442acb0504fdf193a31843ed34ec8c1ced30747bf8a
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/sessionstat1.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/sessionstat1.test b/ext/session/sessionstat1.test
index 2757d6044..16dc4e272 100644
--- a/ext/session/sessionstat1.test
+++ b/ext/session/sessionstat1.test
@@ -92,7 +92,7 @@ do_test 2.1 {
} {}
do_execsql_test -db db2 2.2 {
- SELECT * FROM sqlite_stat1
+ SELECT * FROM sqlite_stat1 ORDER BY tbl, idx
} {
t1 sqlite_autoindex_t1_1 {32 1}
t1 t1b {32 4}
@@ -104,7 +104,7 @@ do_test 2.3 {
} {}
do_execsql_test -db db2 2.4 {
- SELECT * FROM sqlite_stat1
+ SELECT * FROM sqlite_stat1 ORDER BY tbl, idx;
} {
t1 sqlite_autoindex_t1_1 {32 1}
t1 t1b {32 4}