processone/ejabberd — pull request #273 by vesvalo (2014-08-08 09:44:02+00:00)
Title: odb_queries patch return value of functions update and update_t in case of sql insert

Module odbc_queries uses update and update_t functions for writing changes to sql database.
These functions logic is to make sql update first and if no records where affected then make sql insert.
In case of succesfull sql update these functions returns atom ok.
But in case of succesfull sql insert they always return tuple {updated, 1} which is unexpected for other modules using odbc.
One of such modules is the mod_admin_extra.
For example, if you try to create shared roster group using mod_admi_extra, you'll get unexpected result.