]> andersk Git - moira.git/commitdiff
Implement glic query for returning the container associated with a given
authorzacheiss <zacheiss>
Mon, 20 Oct 2003 19:42:10 +0000 (19:42 +0000)
committerzacheiss <zacheiss>
Mon, 20 Oct 2003 19:42:10 +0000 (19:42 +0000)
list.

server/queries2.c

index f3331872669080b2a714bf45f11997efb3f594e8..e29cc732084770c726916ee444612490c3fffea8 100644 (file)
@@ -3834,6 +3834,24 @@ static char *gcli_fields[] = {
   "containername", "listname",
 };
 
+static struct validate glic_validate = 
+{
+  VOlist0,
+  1,
+  NULL,
+  NULL,
+  0,
+  0,
+  0,
+  0,
+  0,
+};
+
+static char *glic_fields[] = {
+  "listname",
+  "containername", "listname",
+};
+
 /* Generalized Query Definitions */
 
 /* Multiple versions of the same query MUST be listed in ascending
@@ -7750,6 +7768,23 @@ struct query Queries[] = {
     NULL,
   },
 
+  {
+    /* G_GLIC - GET_LIST_CONTAINER, v9 */
+    "get_list_container",
+    "glic",
+    9,
+    RETRIEVE,
+    "c",
+    CONTAINERS_TABLE,
+    "c.name, l.name FROM containers c, list l",
+    glic_fields,
+    2,
+    "l.list_id = %d AND l.list_id = c.list_id and c.list_id != 0",
+    1,
+    NULL,
+    &glic_validate,
+  },
+
 };
 
 int QueryCount = (sizeof(Queries) / sizeof(struct query));
This page took 0.055822 seconds and 5 git commands to generate.