Disable awkward trap_exit flag
This commit is contained in:
@@ -498,7 +498,6 @@ odbc_connect(SQLServer) ->
|
||||
%% Open a database connection to SQLite
|
||||
|
||||
sqlite_connect(DB) ->
|
||||
process_flag(trap_exit, true),
|
||||
case sqlite3:open(?SQLITE_DB, [{file, binary_to_list(DB)}]) of
|
||||
{ok, Ref} ->
|
||||
sqlite3:sql_exec(?SQLITE_DB, "pragma foreign_keys = on"),
|
||||
|
||||
@@ -135,7 +135,6 @@ transform_options(Opt, Opts) ->
|
||||
[Opt|Opts].
|
||||
|
||||
check_sqlite_db(DB) ->
|
||||
process_flag(trap_exit, true),
|
||||
Ret = case sqlite3:open(?SQLITE_DB, [{file, binary_to_list(DB)}]) of
|
||||
{ok, _Ref} -> ok;
|
||||
{error, {already_started, _Ref}} -> ok;
|
||||
|
||||
Reference in New Issue
Block a user