mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-24 23:27:39 -05:00
Merge Noah Noerr's 'readonly-skip-dbi-library-test' into stable.
This commit is contained in:
commit
13d8da3116
1 file changed
+2
-2
@@ -425,7 +425,7 @@ GncDbiBackend<DbType::DBI_SQLITE>::session_begin(QofSession* session,
|
||||
return;
|
||||
}
|
||||
|
||||
if (!conn_test_dbi_library(conn))
|
||||
if (mode != SESSION_READ_ONLY && !conn_test_dbi_library(conn))
|
||||
{
|
||||
if (create && !file_exists)
|
||||
{
|
||||
@@ -677,7 +677,7 @@ GncDbiBackend<Type>::session_begin (QofSession* session, const char* new_uri,
|
||||
{
|
||||
if (Type == DbType::DBI_MYSQL)
|
||||
adjust_sql_options (conn);
|
||||
if(!conn_test_dbi_library(conn))
|
||||
if (mode != SESSION_READ_ONLY && !conn_test_dbi_library(conn))
|
||||
{
|
||||
dbi_conn_close(conn);
|
||||
LEAVE("Error");
|
||||
|
||||
Reference in new issue
Block a user