gamenet/ejabberd — pull request #1 by vesvalo (2014-08-08 09:38:53+00:00)
Title: Fix odbc update_t and update insert case return value

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.