diff --git a/ChangeLog b/ChangeLog index e27e4055a..3e3b9feb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-10-03 Jerome Sautret + + * src/odbc/odbc_queries.erl: Fix empty query that fails on MySQL (merged from trunk). + 2008-10-01 Mickael Remond * src/mod_shared_roster.erl: Correct roster push when changing @@ -8,7 +12,7 @@ * src/*/Makefile.win32: Provide explicit beam filenames because nmake does not accept wildcards (thanks to Attila Vangel)(EJAB-543) - + 2008-09-29 Badlop * contrib/ejabberd-modules.repo: Include 2.0.x branches @@ -190,7 +194,7 @@ * src/mod_register.erl: When a registration is blocked due to IP limitation, return description in error stanza (EJAB-692) - + 2008-07-24 Christophe Romain * src/mod_pubsub/mod_pubsub.erl: Allow owner to subscribe/get its own @@ -228,7 +232,7 @@ subscribing to a node sends only last items (EJAB-700) * src/mod_pubsub/node_pep.erl: added acl and jid match on node creation permission (EJAB-663) - * src/mod_pubsub/node_default.erl: fix node creation permission + * src/mod_pubsub/node_default.erl: fix node creation permission issue for service 2008-07-22 Badlop @@ -247,7 +251,7 @@ 2008-07-17 Christophe Romain - * src/web/Makefile.in: use -DSSL39 if compiling with R12 + * src/web/Makefile.in: use -DSSL39 if compiling with R12 2008-07-16 Badlop @@ -255,7 +259,7 @@ 2008-07-16 Alexey Shchepin - * src/web/ejabberd_http_poll.erl: Report connection's IP address + * src/web/ejabberd_http_poll.erl: Report connection's IP address * src/ejabberd_c2s.erl: Rolled back the previous IP getting patch * src/ejabberd_sm.erl: Likewise diff --git a/src/odbc/odbc_queries.erl b/src/odbc/odbc_queries.erl index 77d7527e4..b2bf06efb 100644 --- a/src/odbc/odbc_queries.erl +++ b/src/odbc/odbc_queries.erl @@ -327,11 +327,11 @@ update_roster_sql(Username, SJID, ItemVals, ItemGroups) -> " values (", ItemVals, ");"], ["delete from rostergroups " " where username='", Username, "' " - " and jid='", SJID, "';"], + " and jid='", SJID, "';"]] ++ [["insert into rostergroups(" " username, jid, grp) " " values (", ItemGroup, ");"] || - ItemGroup <- ItemGroups]]. + ItemGroup <- ItemGroups]. roster_subscribe(_LServer, Username, SJID, ItemVals) -> ejabberd_odbc:sql_query_t(