summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cel/cel_sqlite3_custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cel/cel_sqlite3_custom.c b/cel/cel_sqlite3_custom.c
index 4596e770e..e0b022519 100644
--- a/cel/cel_sqlite3_custom.c
+++ b/cel/cel_sqlite3_custom.c
@@ -321,7 +321,7 @@ static int load_module(void)
}
/* is the table there? */
- sql = sqlite3_mprintf("SELECT COUNT(AcctId) FROM %q;", table);
+ sql = sqlite3_mprintf("SELECT COUNT(*) FROM %q;", table);
res = sqlite3_exec(db, sql, NULL, NULL, NULL);
sqlite3_free(sql);
if (res != SQLITE_OK) {