]> andersk Git - moira.git/commitdiff
Add gtlc query.
authorzacheiss <zacheiss>
Fri, 20 Jul 2001 22:12:25 +0000 (22:12 +0000)
committerzacheiss <zacheiss>
Fri, 20 Jul 2001 22:12:25 +0000 (22:12 +0000)
server/queries2.c

index d340da8bbb86a9e03105378b51208eac124ee5e7..8f5a801a68bdb17c46d6755c368e41797980115b 100644 (file)
@@ -3287,6 +3287,11 @@ static struct validate gsoc_validate =
   get_subcontainers_of_container,
 };
 
+static char *gtlc_fields[] = {
+  "name",
+};
+
+
 /* Generalized Query Definitions */
 
 /* Multiple versions of the same query MUST be listed in ascending
@@ -6757,6 +6762,23 @@ struct query Queries[] = {
     &gsoc_validate,
   },
 
+  {
+    /* Q_GTLC - GET_TOPLEVEL_CONTAINERS, v8 */
+    "get_toplevel_containers",
+    "gtlc",
+    8,
+    RETRIEVE,
+    "c",
+    CONTAINERS_TABLE,
+    "name FROM containers",
+    gtlc_fields,
+    1,
+    "name NOT LIKE '%%/%%'",
+    0,
+    "name",
+    NULL,
+  },
+
 };
 
 int QueryCount = (sizeof(Queries) / sizeof(struct query));
This page took 0.926171 seconds and 5 git commands to generate.