1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

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
This commit is contained in:
drh
2024-02-19 16:22:58 +00:00
parent 6c6356f7f2
commit e7bdb2172c
7 changed files with 70 additions and 59 deletions

View File

@@ -2086,7 +2086,7 @@ case OP_RealAffinity: { /* in1 */
}
#endif
#ifndef SQLITE_OMIT_CAST
#if !defined(SQLITE_OMIT_CAST) && !defined(SQLITE_OMIT_ANALYZE)
/* Opcode: Cast P1 P2 * * *
** Synopsis: affinity(r[P1])
**