[sr-dev] git:master: modules/usrloc: added two new rpc commands ul.users and ul. contacts

Olle E. Johansson oej at edvina.net
Mon May 27 13:18:46 CEST 2013


27 maj 2013 kl. 12:55 skrev Juha Heinanen <jh at tutpro.com>:

> +    query_str.len = snprintf(query, QUERY_LEN,
> +			     "SELECT COUNT(DISTINCT %.*s, %.*s) FROM %.*s",
> +			     user_col.len, user_col.s,
> +			     domain_col.len, domain_col.s,
> +			     table.len, table.s);

While this work in the short run, we might want to improve the db API to
include a request for number of entries in order to support data storage
that doesn't support raw SQL statements.

/O



More information about the sr-dev mailing list