199 lines
3.4 KiB
Markdown
199 lines
3.4 KiB
Markdown
## Summary
|
|
<!--Explain briefly what goes wrong and explain why you believe this is a bug and not the intended behavior of SQLite (if it is not a crash).-->**No review yet**
|
|
|
|
## Minimized query
|
|
|
|
```sql
|
|
PRAGMA pragma_list;
|
|
PRAGMA automatic_index = TRUE;
|
|
PRAGMA short_column_names = TRUE;
|
|
.limit
|
|
CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT, c VARCHAR(1000));
|
|
CREATE INDEX t1b ON t1(b);
|
|
INSERT INTO t1(a,b,c) values(1,2,'count.test cases for NOT INDEXED');
|
|
ANALYZE;
|
|
UPDATE sqlite_stat1 SET stat='1000000 10' WHERE idx='t1b';
|
|
ANALYZE sqlite_master;
|
|
SELECT count(1) FROM t1;
|
|
CREATE TABLE t7(a INT,b TEXT,c BLOB,d REAL);
|
|
CREATE TABLE t8(a INT,b TEXT,c BLOB,d REAL);
|
|
CREATE INDEX t8a ON t8(a);
|
|
|
|
CREATE UNIQUE INDEX IF NOT EXISTS idx_t8_9566 ON t8(d) WHERE d IS NOT NULL;
|
|
```
|
|
|
|
## Actual output
|
|
|
|
```sql
|
|
analysis_limit
|
|
application_id
|
|
auto_vacuum
|
|
automatic_index
|
|
busy_timeout
|
|
cache_size
|
|
cache_spill
|
|
case_sensitive_like
|
|
cell_size_check
|
|
checkpoint_fullfsync
|
|
collation_list
|
|
compile_options
|
|
count_changes
|
|
data_version
|
|
database_list
|
|
default_cache_size
|
|
defer_foreign_keys
|
|
empty_result_callbacks
|
|
encoding
|
|
foreign_key_check
|
|
foreign_key_list
|
|
foreign_keys
|
|
freelist_count
|
|
full_column_names
|
|
fullfsync
|
|
function_list
|
|
hard_heap_limit
|
|
ignore_check_constraints
|
|
incremental_vacuum
|
|
index_info
|
|
index_list
|
|
index_xinfo
|
|
integrity_check
|
|
journal_mode
|
|
journal_size_limit
|
|
legacy_alter_table
|
|
locking_mode
|
|
max_page_count
|
|
mmap_size
|
|
module_list
|
|
optimize
|
|
page_count
|
|
page_size
|
|
pragma_list
|
|
query_only
|
|
quick_check
|
|
read_uncommitted
|
|
recursive_triggers
|
|
reverse_unordered_selects
|
|
schema_version
|
|
secure_delete
|
|
short_column_names
|
|
shrink_memory
|
|
soft_heap_limit
|
|
synchronous
|
|
table_info
|
|
table_list
|
|
table_xinfo
|
|
temp_store
|
|
temp_store_directory
|
|
threads
|
|
trusted_schema
|
|
user_version
|
|
wal_autocheckpoint
|
|
wal_checkpoint
|
|
writable_schema
|
|
length 1000000000
|
|
sql_length 1000000000
|
|
column 2000
|
|
expr_depth 1000
|
|
compound_select 500
|
|
vdbe_op 250000000
|
|
function_arg 127
|
|
attached 10
|
|
like_pattern_length 50000
|
|
variable_number 32766
|
|
trigger_depth 1000
|
|
worker_threads 0
|
|
1
|
|
```
|
|
|
|
## Expectation
|
|
|
|
```sql
|
|
analysis_limit
|
|
application_id
|
|
auto_vacuum
|
|
automatic_index
|
|
busy_timeout
|
|
cache_size
|
|
cache_spill
|
|
case_sensitive_like
|
|
cell_size_check
|
|
checkpoint_fullfsync
|
|
collation_list
|
|
compile_options
|
|
count_changes
|
|
data_version
|
|
database_list
|
|
default_cache_size
|
|
defer_foreign_keys
|
|
empty_result_callbacks
|
|
encoding
|
|
foreign_key_check
|
|
foreign_key_list
|
|
foreign_keys
|
|
freelist_count
|
|
full_column_names
|
|
fullfsync
|
|
function_list
|
|
hard_heap_limit
|
|
ignore_check_constraints
|
|
incremental_vacuum
|
|
index_info
|
|
index_list
|
|
index_xinfo
|
|
integrity_check
|
|
journal_mode
|
|
journal_size_limit
|
|
legacy_alter_table
|
|
locking_mode
|
|
max_page_count
|
|
mmap_size
|
|
module_list
|
|
optimize
|
|
page_count
|
|
page_size
|
|
pragma_list
|
|
query_only
|
|
quick_check
|
|
read_uncommitted
|
|
recursive_triggers
|
|
reverse_unordered_selects
|
|
schema_version
|
|
secure_delete
|
|
short_column_names
|
|
shrink_memory
|
|
soft_heap_limit
|
|
synchronous
|
|
table_info
|
|
table_list
|
|
table_xinfo
|
|
temp_store
|
|
temp_store_directory
|
|
threads
|
|
trusted_schema
|
|
user_version
|
|
wal_autocheckpoint
|
|
wal_checkpoint
|
|
writable_schema
|
|
length 1000000000
|
|
sql_length 1000000000
|
|
column 2000
|
|
expr_depth 1000
|
|
compound_select 500
|
|
vdbe_op 250000000
|
|
function_arg 1000
|
|
attached 10
|
|
like_pattern_length 50000
|
|
variable_number 32766
|
|
trigger_depth 1000
|
|
worker_threads 0
|
|
1
|
|
```
|
|
|
|
## Flag
|
|
|
|
```
|
|
|
|
```
|
|
|