25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Use 'any' to match any DBMS in sql_query

This commit is contained in:
Alexey Shchepin 2016-02-11 20:05:00 +03:00
parent 437e768e4a
commit ba35c1ed9d

View File

@ -563,6 +563,8 @@ select_sql_query([], _Type, _Version, undefined) ->
undefined; undefined;
select_sql_query([], _Type, _Version, Query) -> select_sql_query([], _Type, _Version, Query) ->
Query; Query;
select_sql_query([{any, Query} | _], _Type, _Version, _) ->
Query;
select_sql_query([{Type, Query} | _], Type, _Version, _) -> select_sql_query([{Type, Query} | _], Type, _Version, _) ->
Query; Query;
select_sql_query([{{Type, _Version1}, Query1} | Rest], Type, undefined, _) -> select_sql_query([{{Type, _Version1}, Query1} | Rest], Type, undefined, _) ->