25
1
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:
Jerome Sautret 2017-02-28 12:19:07 +01:00
parent ac74b7dca1
commit d6a9ef5bc1

View File

@ -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(),