diff options
Diffstat (limited to 'include/ejabberd_sql_pt.hrl')
-rw-r--r-- | include/ejabberd_sql_pt.hrl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ejabberd_sql_pt.hrl b/include/ejabberd_sql_pt.hrl index ca6df9ec..f189fdcf 100644 --- a/include/ejabberd_sql_pt.hrl +++ b/include/ejabberd_sql_pt.hrl @@ -21,6 +21,12 @@ -define(SQL_MARK, sql__mark_). -define(SQL(SQL), ?SQL_MARK(SQL)). +-define(SQL_UPSERT_MARK, sql_upsert__mark_). +-define(SQL_UPSERT(Host, Table, Fields), + ejabberd_odbc:sql_query(Host, ?SQL_UPSERT_MARK(Table, Fields))). +-define(SQL_UPSERT_T(Table, Fields), + ejabberd_odbc:sql_query_t(Host, ?SQL_UPSERT_MARK(Table, Fields))). + -record(sql_query, {hash, format_query, format_res, args, loc}). -record(sql_escape, {string, integer, boolean}). |