mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-09 15:06:54 +02:00
* src/ejabberd_auth_odbc.erl: Minor fix
* src/odbc/ejabberd_odbc.erl: Updated pgsql support SVN Revision: 421
This commit is contained in:
parent
f85767fae4
commit
590b2c9348
@ -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
|
||||
|
@ -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}
|
||||
|
@ -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}.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user