Skip to content
Snippets Groups Projects
Commit b0764ea0 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

get number of variables in stats API

parent a9b12aed
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,9 @@ public class StatsApi {
private Long countVariables()
{
LOGGER.warn("TEST DB : " + jdbcTemplate.queryForObject("select count(*) from information_schema.tables", Long.class)); // This is a test
Long count = jdbcTemplate.queryForObject("select count(*) from adni_merge", Long.class); // TODO: compute from adni_merge DB
Long count = jdbcTemplate.queryForObject(
"SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS " +
"WHERE table_schema = 'public' AND table_name = 'adni_merge'", Long.class); // TODO: compute from adni_merge DB
return count;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment