mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 80b4e8fb87 into merged_master (Bitcoin PR bitcoin/bitcoin#23112)
This commit is contained in:
commit
5fb6042e39
1 changed files with 4 additions and 0 deletions
|
|
@ -212,6 +212,10 @@ void SQLiteDatabase::Open()
|
|||
if (ret != SQLITE_OK) {
|
||||
throw std::runtime_error(strprintf("SQLiteDatabase: Failed to open database: %s\n", sqlite3_errstr(ret)));
|
||||
}
|
||||
ret = sqlite3_extended_result_codes(m_db, 1);
|
||||
if (ret != SQLITE_OK) {
|
||||
throw std::runtime_error(strprintf("SQLiteDatabase: Failed to enable extended result codes: %s\n", sqlite3_errstr(ret)));
|
||||
}
|
||||
}
|
||||
|
||||
if (sqlite3_db_readonly(m_db, "main") != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue