mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +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>
|
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/mod_roster_odbc.erl: Bugfix
|
||||||
|
|
||||||
* src/ejabberd_c2s.erl: Updated to work correctly with
|
* src/ejabberd_c2s.erl: Updated to work correctly with
|
||||||
|
@ -111,7 +111,7 @@ try_register(User, Server, Password) ->
|
|||||||
jlib:nameprep(Server),
|
jlib:nameprep(Server),
|
||||||
["insert into users(username, password) "
|
["insert into users(username, password) "
|
||||||
"values ('", Username, "', '", Pass, "')"]) of
|
"values ('", Username, "', '", Pass, "')"]) of
|
||||||
{updated, _} ->
|
{updated, 1} ->
|
||||||
{atomic, ok};
|
{atomic, ok};
|
||||||
_ ->
|
_ ->
|
||||||
{atomic, exists}
|
{atomic, exists}
|
||||||
|
@ -153,6 +153,8 @@ pgsql_item_to_odbc("INSERT " ++ OIDN) ->
|
|||||||
{updated, list_to_integer(N)};
|
{updated, list_to_integer(N)};
|
||||||
pgsql_item_to_odbc("DELETE " ++ N) ->
|
pgsql_item_to_odbc("DELETE " ++ N) ->
|
||||||
{updated, list_to_integer(N)};
|
{updated, list_to_integer(N)};
|
||||||
|
pgsql_item_to_odbc({error, Error}) ->
|
||||||
|
{error, Error};
|
||||||
pgsql_item_to_odbc(_) ->
|
pgsql_item_to_odbc(_) ->
|
||||||
{updated,undefined}.
|
{updated,undefined}.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user