[ejabberd] ejabberd Digest, Vol 82, Issue 17

Konstantin Khomoutov flatworm at users.sourceforge.net
Thu May 20 14:00:11 MSD 2010


On Thu, 20 May 2010 17:47:47 +0800
icerain <doubaokun at gmail.com> wrote:

> Why this line error?
> 
> Q1 = qlc:q([X || X <- mnesia:table(chat), element(3,X) == Gid,
> length(element(4,X)) <= ?CHAT_LIMIT]),

Possibly because "less than or equal to" is =< in Erlang, see [1].

Also consider reading [2] before mosting as you should not make us guess
about which exactly error this line produces, and where, and in which
context etc.

1. http://www.erlang.org/doc/reference_manual/expressions.html#id2273735
2. http://catb.org/~esr/faqs/smart-questions.html


More information about the ejabberd mailing list