set_mach_modtime_by_id,
};
+static char *gmnm_fields[] = {
+ "machine",
+ "machine", "container",
+};
+
static char *gmoc_fields[] = {
"container",
"isrecursive",
get_subcontainers_of_container,
};
+static char *gtlc_fields[] = {
+ "name",
+};
+
+
/* Generalized Query Definitions */
/* Multiple versions of the same query MUST be listed in ascending
RETRIEVE,
"mcn",
MCNTMAP_TABLE,
- "c.name FROM machine m, containers c, mcntmap mcn",
- amcn_fields,
- 1,
+ "m.name, c.name FROM machine m, containers c, mcntmap mcn",
+ gmnm_fields,
+ 2,
"m.name = UPPER('%s') AND mcn.cnt_id = c.cnt_id AND mcn.mach_id = m.mach_id",
1,
NULL,
&gsoc_validate,
},
+ {
+ /* Q_GTLC - GET_TOPLEVEL_CONTAINERS, v7 */
+ "get_toplevel_containers",
+ "gtlc",
+ 7,
+ RETRIEVE,
+ "c",
+ CONTAINERS_TABLE,
+ "name FROM containers",
+ gtlc_fields,
+ 1,
+ "name NOT LIKE '%%/%%'",
+ 0,
+ "name",
+ NULL,
+ },
+
};
int QueryCount = (sizeof(Queries) / sizeof(struct query));