nesco писал(а):
Потоковая база создается каждый день в 00 часов, значит, в 00 часов будет создана в новой версии. Одна из баз данных поддержки создана в версии 3.4.2, вторая изменена в новой версии.Понятно, просто при компиляции с ключом SQLITE_DEFAULT_FILE_FORMAT=4 при при работе с базой, созданной в файловом формате = 4 нужна версия sqlite не ниже 3.6.0
![](/img/icon_plus.gif)
SQLITE_DEFAULT_FILE_FORMAT=<1 or 4>
The default schema-level file format used by SQLite when creating new database files is set by this macro. The file formats are all very similar. The difference between formats 1 and 4 is that format 4 understands descending indices and has a tighter encoding for boolean values.
SQLite (as of version 3.6.0) can read and write any file format between 1 and 4. But older versions of SQLite might not be able to read formats greater than 1. So that older versions of SQLite will be able to read and write database files created by newer versions of SQLite, the default file format is set to 1 for maximum compatibility.
The file format for a new database can be set at runtime using the PRAGMA legacy_file_format command.
The default schema-level file format used by SQLite when creating new database files is set by this macro. The file formats are all very similar. The difference between formats 1 and 4 is that format 4 understands descending indices and has a tighter encoding for boolean values.
SQLite (as of version 3.6.0) can read and write any file format between 1 and 4. But older versions of SQLite might not be able to read formats greater than 1. So that older versions of SQLite will be able to read and write database files created by newer versions of SQLite, the default file format is set to 1 for maximum compatibility.
The file format for a new database can be set at runtime using the PRAGMA legacy_file_format command.