mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Propagate the TRANSACTION_TIMEOUT to pgsql driver (EJAB-1266)
This commit is contained in:
parent
ac74b7dca1
commit
d6a9ef5bc1
@ -576,7 +576,8 @@ sql_query_internal(Query) ->
|
||||
to_odbc(odbc:sql_query(State#state.db_ref, [Query],
|
||||
(?TRANSACTION_TIMEOUT) - 1000));
|
||||
pgsql ->
|
||||
pgsql_to_odbc(pgsql:squery(State#state.db_ref, Query));
|
||||
pgsql_to_odbc(pgsql:squery(State#state.db_ref, Query,
|
||||
(?TRANSACTION_TIMEOUT) - 1000));
|
||||
mysql ->
|
||||
R = mysql_to_odbc(p1_mysql_conn:squery(State#state.db_ref,
|
||||
[Query], self(),
|
||||
|
Loading…
Reference in New Issue
Block a user