27 maj 2013 kl. 12:55 skrev Juha Heinanen <[email protected]>:

> +    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

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to