]> andersk Git - moira.git/commitdiff
Allow wildcards in the container related get queries.
authorzacheiss <zacheiss>
Tue, 30 Apr 2002 02:18:15 +0000 (02:18 +0000)
committerzacheiss <zacheiss>
Tue, 30 Apr 2002 02:18:15 +0000 (02:18 +0000)
server/queries2.c

index 4c7d7e9712a58b3d10acab4b7d15bfb7070df4a4..0814cdcdabea0f10735a46c3faab5b053798511a 100644 (file)
@@ -6987,7 +6987,7 @@ struct query Queries[] = {
     "name, description, location, contact, acl_type, acl_id, memacl_type, memacl_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM containers",
     gcon_fields,
     11,
-    "name = '%s' AND cnt_id != 0",
+    "name LIKE '%s' AND cnt_id != 0",
     1,
     NULL,
     &gcon_validate,
@@ -7089,7 +7089,7 @@ struct query Queries[] = {
     "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",
+    "m.name LIKE UPPER('%s') AND mcn.cnt_id = c.cnt_id AND mcn.mach_id = m.mach_id",
     1,
     NULL,
     NULL,
This page took 0.092744 seconds and 5 git commands to generate.