27 maj 2013 kl. 12:55 skrev Juha Heinanen <jh(a)tutpro.com>om>:
+ 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