SQLite Forum

Module pragma_function_list registers only after first usage
Login
Hi,

If I check what modules named pragma% are available in shell, I see first only `pragma_module_list`, but after invoking the function `pragma_function_list()`, then I get two modules:

```
SQLite version 3.36.0 2021-06-18 18:36:39
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> select * from pragma_module_list() where name like 'pragma%';
pragma_module_list
sqlite> select * from pragma_function_list() where name like 'pragma%';
sqlite> select * from pragma_module_list() where name like 'pragma%';
pragma_module_list
pragma_function_list
sqlite> .quit
```

Should not the two modules be listed right away in the first invocation of `pragma_module_list()`?