aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbhelper.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-09-26 12:07:48 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-09-26 12:07:48 +0300
commit7d0d0e5f1570f06564e07f5e55b9bef9db517f8b (patch)
treee8007bd87a3cb264346cd0da5544bd1f8f0400ac /src/dbhelper.c
parentba6ff53bebd1ea6c51f12ba5dd218dcce8348df1 (diff)
downloadck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.gz
ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.bz2
ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.zip
list can now show attributes (secret, primary)
Diffstat (limited to 'src/dbhelper.c')
-rw-r--r--src/dbhelper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dbhelper.c b/src/dbhelper.c
index d0c2795..b183770 100644
--- a/src/dbhelper.c
+++ b/src/dbhelper.c
@@ -170,9 +170,13 @@ void dbh_format_query_select_from_joined_like(char *query, const char *selection
strcpy(query, tmp);
}
-void dbh_form_query_select_paths(char *query) {
+void dbh_form_query_select_paths_with_attributes(char *query) {
char tmp[STR_L] = "SELECT ";
strcat(tmp, COL_CONFIG_PATH);
+ strcat(tmp, ",");
+ strcat(tmp, COL_CONFIG_SECRET);
+ strcat(tmp, ",");
+ strcat(tmp, COL_CONFIG_PRIMARY);
strcat(tmp, " FROM ");
strcat(tmp, TBL_CONFIG);
strcat(tmp, ";");