1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the stat2 table is not created, populated, or used.

FossilOrigin-Name: 362665e89c21fd603d9f8ad6c0ead590e885af7c
This commit is contained in:
dan
2009-08-19 08:18:32 +00:00
parent e275dc3fb8
commit 69188d9a66
9 changed files with 118 additions and 65 deletions

View File

@ -2309,6 +2309,11 @@ ifcapable compound&&subquery {
}
}
}
ifcapable stat2 {
set stat2 "sqlite_stat2 "
} else {
set stat2 ""
}
do_test auth-5.2 {
execsql {
SELECT name FROM (
@ -2316,7 +2321,7 @@ ifcapable compound&&subquery {
WHERE type='table'
ORDER BY name
}
} {sqlite_stat1 sqlite_stat2 t1 t2 t3 t4}
} "sqlite_stat1 ${stat2}t1 t2 t3 t4"
}
# Ticket #3944