* src/ejabberd_auth_odbc.erl: Minor fix

* src/odbc/ejabberd_odbc.erl: Updated pgsql support

SVN Revision: 421
This commit is contained in:
Alexey Shchepin 2005-10-15 19:50:02 +00:00
parent f85767fae4
commit 590b2c9348
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2005-10-15 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_auth_odbc.erl: Minor fix
* src/odbc/ejabberd_odbc.erl: Updated pgsql support
* src/mod_roster_odbc.erl: Bugfix
* src/ejabberd_c2s.erl: Updated to work correctly with

View File

@ -111,7 +111,7 @@ try_register(User, Server, Password) ->
jlib:nameprep(Server),
["insert into users(username, password) "
"values ('", Username, "', '", Pass, "')"]) of
{updated, _} ->
{updated, 1} ->
{atomic, ok};
_ ->
{atomic, exists}

View File

@ -153,6 +153,8 @@ pgsql_item_to_odbc("INSERT " ++ OIDN) ->
{updated, list_to_integer(N)};
pgsql_item_to_odbc("DELETE " ++ N) ->
{updated, list_to_integer(N)};
pgsql_item_to_odbc({error, Error}) ->
{error, Error};
pgsql_item_to_odbc(_) ->
{updated,undefined}.