]> andersk Git - moira.git/blobdiff - server/queries2.c
Fixes, including uqot, aqot, GDSS stuff, wildcards for gfsp.
[moira.git] / server / queries2.c
index e966e935d7043a2fbd6128d7fdd049f19b4b728c..8a45e7198979d5f835fc4e3da1ec2f6ad889400d 100644 (file)
@@ -26,6 +26,7 @@ int access_filesys();
 
 /* Query Setup Routines */
 int prefetch_value();
+int prefetch_filesys();
 int setup_ausr();
 int setup_dusr();
 int setup_spop();
@@ -39,6 +40,7 @@ int setup_dshi();
 int setup_afil();
 int setup_ufil();
 int setup_dfil();
+int setup_aftg();
 int setup_dnfp();
 int setup_dqot();
 int setup_sshi();
@@ -54,6 +56,8 @@ int followup_gzcl();
 int followup_gsha();
 int followup_gqot();
 int followup_gpce();
+int followup_guax();
+int followup_uuac();
 
 int set_modtime();
 int set_modtime_by_id();
@@ -75,6 +79,7 @@ int delete_member_from_list();
 int get_ace_use();
 int qualified_get_lists();
 int get_members_of_list();
+int get_end_members_of_list();
 int qualified_get_server();
 int qualified_get_serverhost();
 int trigger_dcm();
@@ -94,6 +99,7 @@ static char ACE_TYPE[] = "ace_type";
 static char CLASS[] = "class";
 static char CLU_ID[] = "clu_id";
 static char CLUSTER[] = "cluster";
+static char COMMENTS[] = "comments";
 static char DESC[] = "description";
 static char DEVICE[] = "device";
 static char DIR[] = "dir";
@@ -116,8 +122,10 @@ static char MOD3[] = "modwith";
 static char NAME[] = "name";
 static char QUOTA[] = "quota";
 static char QUOTA_TYPE[] = "quota_type";
+static char SECURE[] = "secure";
 static char SERVICE[] = "service";
 static char SHELL[] = "shell";
+static char SIGNATURE[] = "signature";
 static char STATUS[] = "status";
 static char TYPE[] = "type";
 static char USERS[] = "users";
@@ -132,12 +140,45 @@ static char UID[] = "uid";
  */
 
 static struct valobj VOsort0[] = {
-  {V_SORT, 0, 0, 0, 0, 0},
+  {V_SORT, 0},
+};
+
+static struct valobj VOwild0[] = {
+  {V_WILD, 0},
+};
+
+static struct valobj VOupwild0[] = {
+  {V_UPWILD, 0},
 };
 
 static struct valobj VOwild0sort[] = {
   {V_WILD, 0},
-  {V_SORT, 0, 0, 0, 0, 0},
+  {V_SORT, 0},
+};
+
+static struct valobj VOupwild0sort[] = {
+  {V_UPWILD, 0},
+  {V_SORT, 0},
+};
+
+static struct valobj VOwild01sort0[] = {
+  {V_WILD, 0},
+  {V_WILD, 1},
+  {V_SORT, 0},
+};
+
+static struct valobj VOwild01sort01[] = {
+  {V_WILD, 0},
+  {V_WILD, 1},
+  {V_SORT, 0},
+  {V_SORT, 1}, 
+};
+
+static struct valobj VOwild012sort0[] = {  /* get_alias */
+  {V_WILD, 0},
+  {V_WILD, 1},
+  {V_WILD, 2},
+  {V_SORT, 0},
 };
 
 static struct valobj VOdate1[] = {
@@ -197,7 +238,11 @@ static struct valobj VOfilsys0user1[] = {
 
 static struct validate VDmach = { VOmach0, 1 };
 static struct validate VDsort0= { VOsort0, 1 };
+static struct validate VDwild0= { VOwild0, 1 };
+static struct validate VDupwild0= { VOupwild0, 1 };
 static struct validate VDsort2= { VOsort01,2 };
+static struct validate VDwild2sort2 = { VOwild01sort01,4 };
+static struct validate VDwild3sort1 = { VOwild012sort0,4 };
 static struct validate VDsortf = { 
     VOsort0,
     1,
@@ -210,6 +255,42 @@ static struct validate VDsortf = {
     followup_fix_modby,
 };
 
+static struct validate VDwildsortf = { 
+    VOwild0sort,
+    2,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    followup_fix_modby,
+};
+
+static struct validate VDwild2sortf = { 
+    VOwild01sort01,
+    4,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    followup_fix_modby,
+};
+
+static struct validate VDupwildsortf = { 
+    VOupwild0sort,
+    2,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    followup_fix_modby,
+};
+
 
 \f
 /* Query data */
@@ -218,10 +299,16 @@ static char *galo_fields[] = {
   LOGIN, UID, SHELL, LAST, FIRST, MIDDLE,
 };
 
+static char *gual_fields[] = {
+  LOGIN,
+  LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS,
+  MIT_ID, CLASS, COMMENTS, SIGNATURE, SECURE, MOD1, MOD2, MOD3,
+};
 static char *gubl_fields[] = {
   LOGIN,
   LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS, 
-  MIT_ID, CLASS, MOD1, MOD2, MOD3
+  MIT_ID, CLASS, MOD1, MOD2, MOD3,
 };
 
 static struct validate gubl_validate = 
@@ -234,13 +321,37 @@ static struct validate gubl_validate =
   0,
   access_login,
   0,
-  followup_fix_modby,
+  followup_guax,
 };
 
+static char *guau_fields[] = {
+    UID,
+    LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS,
+    MIT_ID, CLASS, COMMENTS, SIGNATURE, SECURE, MOD1, MOD2, MOD3,
+};
+static char *guan_fields[] = {
+    FIRST, LAST,
+    LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS,
+    MIT_ID, CLASS, COMMENTS, SIGNATURE, SECURE, MOD1, MOD2, MOD3,
+};
+static char *guac_fields[] = {
+    CLASS,
+    LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS,
+    MIT_ID, CLASS, COMMENTS, SIGNATURE, SECURE, MOD1, MOD2, MOD3,
+};
+static char *guam_fields[] = {
+    MIT_ID,
+    LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS,
+    MIT_ID, CLASS, COMMENTS, SIGNATURE, SECURE, MOD1, MOD2, MOD3,
+};
 static char *gubu_fields[] = {
-  UID,
-  LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS, 
-  MIT_ID, CLASS, MOD1, MOD2, MOD3,
+    UID,
+    LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS, 
+    MIT_ID, CLASS, MOD1, MOD2, MOD3,
 };
 
 static struct validate gubu_validate = 
@@ -262,6 +373,19 @@ static char *gubn_fields[] = {
   MIT_ID, CLASS, MOD1, MOD2, MOD3,
 };
 
+static struct validate gubn_validate =
+{
+    VOwild01sort0,
+    3,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    followup_fix_modby,
+};
+
 static char *gubc_fields[] = {
   CLASS,
   LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS, 
@@ -274,12 +398,12 @@ static char *gubm_fields[] = {
   MIT_ID, CLASS, MOD1, MOD2, MOD3,
 };
 
-static char *ausr_fields[] = {
+static char *auac_fields[] = {
   LOGIN, UID, SHELL, LAST, FIRST, MIDDLE, STATUS, 
-  MIT_ID, CLASS,
+  MIT_ID, CLASS, COMMENTS, SIGNATURE, SECURE,
 };
 
-static struct valobj ausr_valobj[] = {
+static struct valobj auac_valobj[] = {
   {V_LOCK, 0, USERS, 0, USERS_ID, MR_DEADLOCK},
   {V_CHAR, 0},
   {V_CHAR, 3},
@@ -287,13 +411,26 @@ static struct valobj ausr_valobj[] = {
   {V_CHAR, 5},
   {V_CHAR, 7},
   {V_TYPE, 8, CLASS, 0, 0, MR_BAD_CLASS},
+  {V_ID, 9, "strings", "string", "string_id", MR_NO_MATCH},
 };
 
+static struct validate auac_validate = {
+  auac_valobj,
+  8,
+  LOGIN,
+  "users.login = LEFT('%s',SIZE(users.login))",
+  1,
+  USERS_ID,
+  0,
+  setup_ausr,
+  followup_ausr,
+};
 static struct validate ausr_validate = {
-  ausr_valobj,
+  auac_valobj,
   7,
   LOGIN,
-  "users.login = '%s'",
+  "users.login = LEFT('%s',SIZE(users.login))",  
   1,
   USERS_ID,
   0,
@@ -324,13 +461,13 @@ static struct validate rusr_validate = {
   0,
 };
 
-static char *uusr_fields[] = {
+static char *uuac_fields[] = {
   LOGIN,
   "newlogin", UID, SHELL, LAST, FIRST, MIDDLE, STATUS, 
-  MIT_ID, CLASS,
+  MIT_ID, CLASS, COMMENTS, SIGNATURE, SECURE,
 };
 
-static struct valobj uusr_valobj[] = {
+static struct valobj uuac_valobj[] = {
     {V_LOCK, 0, USERS, 0, USERS_ID, MR_DEADLOCK},
     {V_ID, 0, USERS, LOGIN, USERS_ID, MR_USER},
     {V_RENAME, 1, USERS, LOGIN, USERS_ID, MR_NOT_UNIQUE},
@@ -339,17 +476,30 @@ static struct valobj uusr_valobj[] = {
     {V_CHAR, 6},
     {V_CHAR, 8},
     {V_TYPE, 9, CLASS, 0, 0, MR_BAD_CLASS},
+    {V_ID, 10, "strings", "string", "string_id", MR_NO_MATCH},
 };
 
+static struct validate uuac_validate = {
+    uuac_valobj,
+    9,
+    0,
+    0,
+    0,
+    USERS_ID,
+    0,
+    setup_ausr,
+    followup_uuac,
+};
 static struct validate uusr_validate = {
-  uusr_valobj,
+  uuac_valobj,
   8,
   0,
   0,
   0,
   USERS_ID,
   0,
-  0,
+  setup_ausr,
   set_modtime_by_id,
 };
 
@@ -375,6 +525,11 @@ static char *uust_fields[] = {
   STATUS,
 };
 
+static char *uuss_fields[] = {
+  LOGIN,
+  SECURE,
+};
 static struct validate uust_validate = {
   VOuser0lock,
   2,
@@ -600,7 +755,7 @@ static struct validate amac_validate = {
   amac_valobj,
   3,
   NAME,
-  "machine.name = uppercase('%s')",
+  "machine.name = UPPERCASE(LEFT('%s',SIZE(machine.name)))",
   1,
   MACH_ID,
   0,
@@ -667,12 +822,12 @@ static struct valobj aclu_valobj[] = {
   {V_CHAR, 0}
 };
 
-static struct validate aclu_validate = /* for aclu  */
+static struct validate aclu_validate = 
 {
   aclu_valobj,
   2,
   NAME,
-  "cluster.name = '%s'",
+  "cluster.name = LEFT('%s',SIZE(cluster.name))",
   1,
   CLU_ID,
   0,
@@ -724,6 +879,16 @@ static char *gmcm_fields[] = {
   MACHINE, CLUSTER,
 };
 
+static struct valobj gmcm_valobj[] =
+{
+  {V_UPWILD, 0},
+  {V_WILD, 1},
+  {V_SORT, 0},
+  {V_SORT, 1},
+};
+
+static struct validate gmcm_validate = { gmcm_valobj, 4 };
+
 static struct valobj amtc_valobj[] =   /* ADD_MACHINE_TO_CLUSTER */
 {                                      /* DELETE_MACHINE_FROM_CLUSTER */
   {V_ID, 0, MACHINE, NAME, MACH_ID, MR_MACHINE},
@@ -755,15 +920,35 @@ static char *acld_fields[] = {
 static struct valobj acld_valobj[] =
 {
   {V_ID, 0, CLUSTER, NAME, CLU_ID, MR_CLUSTER},
+  {V_CHAR, 1},
   {V_CHAR, 2},
 };
 
-static struct validate acld_validate = /* ADD_CLUSTER_DATA */
-{                                      /* DELETE_CLUSTER_DATA */
+static struct validate acld_validate = 
+{                                      
   acld_valobj,
+  3,
+  CLU_ID,
+  "svc.clu_id = %d AND svc.serv_label = '%s' AND svc.serv_cluster = LEFT('%s',SIZE(svc.serv_cluster))",
+  3,
+  0,
+  0,
+  0,
+  set_cluster_modtime_by_id,
+};
+
+static struct valobj dcld_valobj[] =
+{
+  {V_ID, 0, CLUSTER, NAME, CLU_ID, MR_CLUSTER},
+  {V_CHAR, 2},
+};
+
+static struct validate dcld_validate = 
+{                                      
+  dcld_valobj,
   2,
   CLU_ID,
-  "svc.clu_id = %d and svc.serv_label = '%s' and svc.serv_cluster = '%s'",
+  "svc.clu_id = %d AND svc.serv_label = '%s' AND svc.serv_cluster = '%s'",
   3,
   0,
   0,
@@ -778,10 +963,15 @@ static char *gsin_fields[] = {
   ACE_TYPE, ACE_NAME, MOD1, MOD2, MOD3,
 };
 
+static struct valobj gsin_valobj[] =
+{
+  { V_UPWILD, 0 },
+};
+
 static struct validate gsin_validate = 
 {
-    0,
-    0,
+    gsin_valobj,
+    1,
     0,
     0,
     0,
@@ -832,7 +1022,7 @@ static struct validate asin_validate =     /* for asin, usin */
   asin_valobj,
   5,
   NAME,
-  "services.name = uppercase('%s')",
+  "servers.name = UPPERCASE(LEFT('%s',SIZE(servers.name)))",
   1,
   0,
   0,
@@ -891,9 +1081,14 @@ static char *gshi_fields[] = {
   "value3", MOD1, MOD2, MOD3, 
 };
 
+static struct valobj gshi_valobj[] = {
+    { V_UPWILD, 0 },
+    { V_UPWILD, 1 },
+};
+
 static struct validate gshi_validate = {
-  0,
-  0,
+  gshi_valobj,
+  2,
   0,
   0,
   0,
@@ -943,7 +1138,7 @@ static struct validate ashi_validate = /* ashi & ushi */
   ashi_valobj,
   3,
   SERVICE,
-  "serverhosts.service = uppercase('%s') and serverhosts.mach_id = %d",
+  "serverhosts.service = UPPERCASE(LEFT('%s',SIZE(serverhosts.service))) and serverhosts.mach_id = %d",
   2,
   0,
   access_service,
@@ -984,12 +1179,13 @@ static char *sshi_fields[] = {
 
 static struct valobj sshi_valobj[] = {
   {V_NAME, 0, "servers", NAME, 0, MR_SERVICE},
+  {V_ID, 1, MACHINE, NAME, MACH_ID, MR_MACHINE},  /* Was this ok to add? */
 };
 
 static struct validate sshi_validate = 
 {
   sshi_valobj,
-  1,
+  2,
   0,
   0,
   0,
@@ -1023,8 +1219,8 @@ static char *gsha_fields[] = {
 
 static struct validate gsha_validate = 
 {
-  0,
-  0,
+  VOupwild0,
+  1,
   0,
   0,
   0,
@@ -1064,13 +1260,13 @@ static char *gslo_fields[] = {
 
 static char *gfsl_fields[] = {
   LABEL,
-  LABEL, TYPE, MACHINE, NAME, "mount", "access", "comments", "owner", "owners",
+  LABEL, TYPE, MACHINE, NAME, "mount", "access", COMMENTS, "owner", "owners",
   "create", "lockertype", MOD1, MOD2, MOD3,
 };
 
 static char *gfsm_fields[] = {
   MACHINE,
-  LABEL, TYPE, MACHINE, NAME, "mount", "access", "comments", "owner", "owners",
+  LABEL, TYPE, MACHINE, NAME, "mount", "access", COMMENTS, "owner", "owners",
   "create", "lockertype", MOD1, MOD2, MOD3,
 };
 
@@ -1088,13 +1284,37 @@ static struct validate gfsm_validate = {
 
 static char *gfsn_fields[] = {
   MACHINE, "parition",
-  LABEL, TYPE, MACHINE, NAME, "mount", "access", "comments", "owner", "owners",
+  LABEL, TYPE, MACHINE, NAME, "mount", "access", COMMENTS, "owner", "owners",
   "create", "lockertype", MOD1, MOD2, MOD3,
 };
 
+static struct valobj gfsn_valobj[] =
+{
+  {V_ID, 0, MACHINE, NAME, MACH_ID, MR_MACHINE},
+  {V_WILD, 1},
+};
+
+static struct validate gfsn_validate = {
+  gfsn_valobj,
+  2,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  followup_fix_modby,
+};
+
+static char *gfsp_fields[] = {
+  "path",
+  LABEL, TYPE, MACHINE, NAME, "mount", "access", COMMENTS, "owner", "owners",
+  "create", "lockertype", MOD1, MOD2, MOD3,
+};
 static char *gfsg_fields[] = {
   LIST,
-  LABEL, TYPE, MACHINE, NAME, "mount", "access", "comments", "owner", "owners",
+  LABEL, TYPE, MACHINE, NAME, "mount", "access", COMMENTS, "owner", "owners",
   "create", "lockertype", MOD1, MOD2, MOD3,
 };
 
@@ -1111,7 +1331,7 @@ static struct validate gfsg_validate = {
 };
 
 static char *afil_fields[] = {
-  LABEL, TYPE, MACHINE, NAME, "mount", "access", "comments", "owner", "owners",
+  LABEL, TYPE, MACHINE, NAME, "mount", "access", COMMENTS, "owner", "owners",
   "create", "lockertype",
 };
 
@@ -1130,7 +1350,7 @@ static struct validate afil_validate = {
   afil_valobj,
   8,
   LABEL,
-  "filesys.label = '%s'",
+  "filesys.label = LEFT('%s',SIZE(filesys.label))",
   1,
   FILSYS_ID,
   0,
@@ -1139,7 +1359,7 @@ static struct validate afil_validate = {
 };
 
 static char *ufil_fields[] = {
-  LABEL, "newlabel", TYPE, MACHINE, NAME, "mount", "access", "comments",
+  LABEL, "newlabel", TYPE, MACHINE, NAME, "mount", "access", COMMENTS,
   "owner", "owners", "create", "lockertype",
 };
 
@@ -1237,9 +1457,14 @@ static char *gnfp_fields[] = {
   MACHINE, DIR, DEVICE, STATUS, "allocated", "size", MOD1, MOD2, MOD3,
 };
 
+static struct valobj gnfp_valobj[] = {
+  {V_ID, 0, MACHINE, NAME, MACH_ID, MR_MACHINE},
+  {V_WILD, 1},
+};
+
 static struct validate gnfp_validate = {
-  VOmach0,
-  1,
+  gnfp_valobj,
+  2,
   0,
   0,
   0,
@@ -1258,7 +1483,7 @@ static struct validate anfp_validate = {
   anfp_valobj,
   2,
   DIR,
-  "nfsphys.mach_id = %d and nfsphys.dir = '%s'",
+  "nfsphys.mach_id = %d and nfsphys.dir = LEFT('%s',SIZE(nfsphys.dir))",
   2,
   "nfsphys_id",
   0,
@@ -1278,6 +1503,10 @@ static struct validate unfp_validate = {
   set_nfsphys_modtime,
 };
 
+static char *ajnf_fields[] = {
+  MACHINE, DIR, "adjustment",
+};
+
 static char *dnfp_fields[] = {
   MACHINE, DIR,
 };
@@ -1353,7 +1582,7 @@ static struct validate aqot_validate = {
   3,
   0,
   0,
-  0,
+  prefetch_filesys,
   followup_aqot,
 };
 
@@ -1387,8 +1616,8 @@ static char *gnfq_fields[] = {
 };
 
 static struct validate gnfq_validate = {
-  VOsort0,
-  1,
+  VOwild0sort,
+  2,
   0,
   0,
   0,
@@ -1403,6 +1632,13 @@ static char *gnqp_fields[] = {
   FILESYS, LOGIN, QUOTA, DIR, MACHINE, MOD1, MOD2, MOD3,
 };
 
+static struct valobj gnqp_valobj[] = {
+  {V_ID, 0, MACHINE, NAME, MACH_ID, MR_MACHINE},
+  {V_WILD, 1},
+};
+
+static struct validate gnqp_validate = { gnqp_valobj, 2, };
+
 static char *anfq_fields[] = {
   FILESYS, LOGIN, QUOTA,
 };
@@ -1415,7 +1651,7 @@ static struct validate anfq_validate = {
   2,
   0,
   0,
-  0,
+  prefetch_filesys,
   followup_aqot,
 };
 
@@ -1477,7 +1713,7 @@ static struct validate alis_validate = {
   alis_valobj,
   4,
   NAME,
-  "list.name = '%s'",
+  "list.name = LEFT('%s',SIZE(list.name))",
   1,
   LIST_ID,
   0,
@@ -1628,6 +1864,18 @@ static struct validate gmol_validate = {
   get_members_of_list,
 };
 
+static struct validate geml_validate = {
+  VOlist0,
+  1,
+  0,
+  0,
+  0,
+  0,
+  access_visible_list,
+  0,
+  get_end_members_of_list,
+};
 static char *glom_fields[] = {
   "member_type", "member_name",
   "list_name", "active", "publicflg", "hidden", "maillist", "grouplist",
@@ -1675,8 +1923,8 @@ static char *gzcl_fields[] = {
 };
 
 static struct validate gzcl_validate = {
-  VOsort0,
-  1,
+  VOwild0sort,
+  2,
   0,
   0,
   0,
@@ -1707,7 +1955,7 @@ static struct validate azcl_validate = {
   azcl_valobj,
   9,
   CLASS,
-  "zephyr.class = '%s'",
+  "zephyr.class = LEFT('%s',SIZE(zephyr.class))",
   1,
   0,
   0,
@@ -1769,7 +2017,7 @@ static struct validate asvc_validate = {
   VOchar0,
   1,
   NAME,
-  "services.name = '%s'",
+  "services.name = LEFT('%s',SIZE(services.name))",
   1,
   0,
   0,
@@ -1780,13 +2028,13 @@ static struct validate asvc_validate = {
 static char *gpce_fields[] = {
     "printer",
     "printer", "spooling_host", "spool_directory", "rprinter",
-    "quotaserver", "authenticate", "price", "comments",
+    "quotaserver", "authenticate", "price", COMMENTS,
     MOD1, MOD2, MOD3,
 };
 
 static struct validate gpce_validate = {
-  VOsort0,
-  1,
+  VOwild0sort,
+  2,
   0,
   0,
   0,
@@ -1798,7 +2046,7 @@ static struct validate gpce_validate = {
 
 static char *apce_fields[] = {
     "printer", "spooling_host", "spool_directory", "rprinter",
-    "quotaserver", "authenticate", "price", "comments",
+    "quotaserver", "authenticate", "price", COMMENTS,
     MOD1, MOD2, MOD3,
 };
 
@@ -1812,7 +2060,7 @@ static struct validate apce_validate = {
   apce_valobj,
   3,
   NAME,
-  "printcap.name = '%s'",
+  "printcap.name = LEFT('%s',SIZE(printcap.name))",
   1,
   0,
   0,
@@ -1834,7 +2082,7 @@ static struct validate dpce_validate = {
 
 static char *gpcp_fields[] = {
     "printer",
-    "printer", "spooling_host", "spool_directory", "rprinter", "comments",
+    "printer", "spooling_host", "spool_directory", "rprinter", COMMENTS,
     MOD1, MOD2, MOD3,
 };
 
@@ -1856,7 +2104,7 @@ static struct validate apdm_validate = {
   apdm_valobj,
   2,
   NAME,
-  "palladium.name = '%s'",
+  "palladium.name = LEFT('%s',SIZE(palladium.name))",
   1,
   0,
   0,
@@ -1895,7 +2143,7 @@ static struct validate aali_validate = {
   aali_valobj,
   3,
   "trans",
-  "alias.name = '%s' and alias.type = '%s' and alias.trans = '%s'",
+  "alias.name = LEFT('%s',SIZE(alias.name)) and alias.type = '%s' and alias.trans = LEFT('%s',SIZE(alias.trans))",
   3,
   0,
   0,
@@ -1945,7 +2193,7 @@ static struct validate aval_validate =    /* for aval, uval, and dval */
   VOchar0,
   1,
   NAME,
-  "numvalues.name = '%s'",
+  "numvalues.name = LEFT('%s',SIZE(numvalues.name))",  /* LEFT() only needed for aval */
   1,
   0,
   0,
@@ -2000,6 +2248,81 @@ struct query Queries2[] = {
     &VDsort0,
   },
 
+  {
+      /* Q_GUAL - GET_USER_ACCOUNT_BY_LOGIN */
+      "get_user_account_by_login",
+      "gual",
+      RETRIEVE,
+      "u",
+      USERS,
+      "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+      gual_fields,
+      15,
+      "u.login LIKE '%s' ESCAPE '*' AND u.users_id != 0 AND u.comment = strings.string_id",
+      1,
+      &gubl_validate,
+  },
+  {
+      /* Q_GUAU - GET_USER_ACCOUNT_BY_UID */
+      "get_user_account_by_uid",
+      "guau",
+      RETRIEVE,
+      "u",
+      USERS,
+      "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+      guau_fields,
+      15,
+      "u.uid = %s AND u.users_id != 0 AND u.comment = str.string_id",
+      1,
+      &gubu_validate,
+  },
+  
+  {
+      /* Q_GUAN - GET_USER_ACCOUNT_BY_NAME */
+      "get_user_account_by_name",
+      "guan",
+      RETRIEVE,
+      "u",
+      USERS,
+      "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+      guan_fields,
+      15,
+      "u.first LIKE '%s' ESCAPE '*' AND u.last LIKE '%s' ESCAPE '*' AND u.users_id != 0 and u.comment = str.string_id",
+      2,
+      &VDwild2sortf,
+  },
+  {
+      /* Q_GUAC - GET_USER_ACCOUNT_BY_CLASS */
+      "get_user_account_by_class",
+      "guac",
+      RETRIEVE,
+      "u",
+      USERS,
+      "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+      guac_fields,
+      15,
+      "u.type = UPPERCASE('%s') AND u.users_id != 0 AND u.comment = str.string_id",
+      1,
+      &VDsortf,
+  },
+  {
+      /* Q_GUAM - GET_USER_ACCOUNT_BY_MITID */
+      "get_user_account_by_id",
+      "guai",
+      RETRIEVE,
+      "u",
+      USERS,
+      "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+      guam_fields,
+      15,
+      "u.clearid LIKE '%s' ESCAPE '*' AND u.users_id != 0 AND u.comment = str.string_id",
+      1,
+      &VDwildsortf,
+  },
   {
     /* Q_GUBL - GET_USER_BY_LOGIN */
     "get_user_by_login",
@@ -2042,7 +2365,7 @@ struct query Queries2[] = {
     12,
     "first LIKE '%s' ESCAPE '*' AND last LIKE '%s' ESCAPE '*' AND users_id != 0",
     2,
-    &VDsortf,
+    &gubn_validate,
   },
 
   {
@@ -2072,10 +2395,24 @@ struct query Queries2[] = {
     12,
     "clearid LIKE '%s' ESCAPE '*' AND users_id != 0",
     1,
-    &VDsortf,
+    &VDwildsortf,
   },
 
-
+  {
+    /* Q_AUAC - ADD_USER_ACCOUNT */  /* uses prefetch_value() for users_id */
+    "add_user_account",
+    "auac",
+    APPEND,
+    "u",
+    USERS,
+    "INTO users (login, uid, shell, last, first, middle, status, clearid, type, comment, signature, secure, users_id) VALUES ('%s', %s, '%s', '%s', '%s', '%s', %s, '%s', '%s', %d, '%s', %s, %s)",
+    auac_fields,
+    12,
+    (char *)0,
+    0,
+    &auac_validate,
+  },
   {
     /* Q_AUSR - ADD_USER */  /* uses prefetch_value() for users_id */
     "add_user",
@@ -2083,8 +2420,8 @@ struct query Queries2[] = {
     APPEND,
     "u",
     USERS,
-    "INTO users (login, uid, shell, last, first, middle, status, clearid, type, users_id) VALUES ( '%s', %s, '%s', '%s',  '%s',  '%s',  %s, '%s',  '%s', %s)",
-    ausr_fields,
+    "INTO users (login, uid, shell, last, first, middle, status, clearid, type, comment, signature, secure, users_id) VALUES ('%s', %s, '%s', '%s', '%s', '%s', %s, '%s', '%s', 0, '', 0, %s)",
+    auac_fields,
     9,
     0,
     0,
@@ -2106,6 +2443,21 @@ struct query Queries2[] = {
     &rusr_validate,
   },
 
+  {
+    /* Q_UUAC - UPDATE_USER_ACCOUNT */
+    "update_user_account",
+    "uuac",
+    UPDATE,
+    "u",
+    USERS,
+    "users SET login = '%s', uid = %s, shell = '%s', last = '%s', first = '%s', middle = '%s', status = %s, clearid = '%s', type = '%s', comment = %d, signature = '%s', secure = %s",
+    uuac_fields,
+    12,
+    "users_id = %d",
+    1,
+    &uuac_validate,
+  },
   {
     /* Q_UUSR - UPDATE_USER */
     "update_user",
@@ -2114,7 +2466,7 @@ struct query Queries2[] = {
     "u",
     USERS,
     "users SET login = '%s', uid = %s, shell = '%s', last = '%s', first = '%s', middle = '%s', status = %s, clearid = '%s',  type = '%s'",
-    uusr_fields,
+    uuac_fields,
     9,
     "users_id = %d",
     1,
@@ -2151,6 +2503,21 @@ struct query Queries2[] = {
     &uust_validate,
   },
 
+  {
+    /* Q_UUSS - UPDATE_USER_SECURITY_STATUS */
+    "update_user_security_status",
+    "uuss",
+    UPDATE,
+    "u",
+    USERS,
+    "secure = %s",
+    uuss_fields,
+    1,
+    "users_id = %d",
+    1,
+    &uust_validate,
+  },
   {
     /* Q_DUSR - DELETE_USER */ 
     "delete_user",
@@ -2193,7 +2560,7 @@ struct query Queries2[] = {
     2,
     "u.login LIKE '%s' ESCAPE '*' AND s.string LIKE '%s' ESCAPE '*' AND k.users_id = u.users_id AND k.string_id = s.string_id",
     2,
-    &VDsort2,
+    &VDwild2sort2,
   },
 
   {
@@ -2203,7 +2570,7 @@ struct query Queries2[] = {
     APPEND,
     "k",
     "krbmap",
-    "INTO krbmap (users_id, string_id) VALUES (%s, %s)",
+    "INTO krbmap (users_id, string_id) VALUES (%d, %d)",
     akum_fields,
     2,
     0,
@@ -2221,7 +2588,7 @@ struct query Queries2[] = {
     0,
     akum_fields,
     0,
-    "k.users_id = %d AND k.string_id = %d",
+    "users_id = %d AND string_id = %d",
     2,
     &dkum_validate,
   },
@@ -2371,10 +2738,9 @@ struct query Queries2[] = {
     "CHAR(name), type, CHAR(modtime), CHAR(modby), modwith FROM machine",
     gmac_fields,
     5,
-    "name = uppercase('%s') AND mach_id != 0",
-/*    "name LIKE '%s' ESCAPE '*' AND mach_id != 0", */ /* Pattern matching */
+    "name LIKE '%s' ESCAPE '*' AND mach_id != 0", 
     1,
-    &VDsortf,
+    &VDupwildsortf,
   },
 
   {
@@ -2434,7 +2800,7 @@ struct query Queries2[] = {
     6,
     "name LIKE '%s' ESCAPE '*' AND clu_id != 0",
     1,
-    &VDsortf,
+    &VDwildsortf,
   },
 
   {
@@ -2492,9 +2858,9 @@ struct query Queries2[] = {
     "CHAR(m.name), CHAR(c.name) FROM machine m, cluster c, mcmap map",
     gmcm_fields,
     2,
-    "m.name = uppercase('%s') AND c.name LIKE '%s' ESCAPE '*' AND map.clu_id = c.clu_id AND map.mach_id = m.mach_id",
+    "m.name LIKE '%s' ESCAPE '*' AND c.name LIKE '%s' ESCAPE '*' AND map.clu_id = c.clu_id AND map.mach_id = m.mach_id",
     2,
-    &VDsort2,
+    &gmcm_validate, 
   },
                                            
   {
@@ -2539,7 +2905,7 @@ struct query Queries2[] = {
     3,
     "c.clu_id = s.clu_id AND c.name LIKE '%s' ESCAPE '*' AND s.serv_label LIKE '%s' ESCAPE '*'",
     2,
-    &VDsort2,
+    &VDwild2sort2,
   },
 
   {
@@ -2567,9 +2933,9 @@ struct query Queries2[] = {
     (char *)0,
     acld_fields,
     0,
-    "clu_id = %d AND serv_label LIKE '%s' ESCAPE '*' AND serv_cluster = '%s'",   /** wildcard completion for serv_cluster ??? **/
+    "clu_id = %d AND serv_label = '%s' AND serv_cluster = '%s'",   
     3,
-    &acld_validate,
+    &dcld_validate,
   },
 
   {
@@ -2582,7 +2948,7 @@ struct query Queries2[] = {
     "CHAR(name), CHAR(update_int), target_file, script, CHAR(dfgen), CHAR(dfcheck), type, CHAR(enable), CHAR(inprogress), CHAR(harderror), errmsg, acl_type, CHAR(acl_id), CHAR(modtime), CHAR(modby), modwith FROM servers",
     gsin_fields,
     16,
-    "name = uppercase('%s')",
+    "name LIKE '%s' ESCAPE '*'",
     1,
     &gsin_validate,
   },
@@ -2684,10 +3050,10 @@ struct query Queries2[] = {
     RETRIEVE,
     "sh",
     "serverhosts",
-    "CHAR(sh.service), CHAR(m.name), CHAR(sh.enable), CHAR(sh.override), CHAR(sh.success), CHAR(sh.inprogress), CHAR(sh.hosterror), sh.hosterrmsg, CHAR(sh.ltt), CHAR(sh.lts), CHAR(sh.value1), CHAR(sh.value2), sh.value, CHAR(sh.modtime), CHAR(sh.modby), sh.modwith FROM serverhosts sh, machine m",
+    "CHAR(sh.service), CHAR(m.name), CHAR(sh.enable), CHAR(sh.override), CHAR(sh.success), CHAR(sh.inprogress), CHAR(sh.hosterror), sh.hosterrmsg, CHAR(sh.ltt), CHAR(sh.lts), CHAR(sh.value1), CHAR(sh.value2), sh.value3, CHAR(sh.modtime), CHAR(sh.modby), sh.modwith FROM serverhosts sh, machine m",
     gshi_fields,
     16,
-    "sh.service = uppercase('%s') AND m.name = uppercase('%s') AND m.mach_id = sh.mach_id",
+    "sh.service LIKE '%s' ESCAPE '*' AND m.name LIKE '%s' ESCAPE '*' AND m.mach_id = sh.mach_id",
     2,
     &gshi_validate,
   },
@@ -2777,11 +3143,7 @@ struct query Queries2[] = {
     "serverhosts SET override = %s, success = %s, inprogress = %s, hosterror = %s, hosterrmsg = '%s', ltt = %s, lts = %s",
     sshi_fields,
     7,
-#ifdef NEVER
-    "s.service = uppercase('%s') AND s.mach_id = machine.mach_id AND machine.name = '%s'", /** Turn the machine name into a mach_id in the setup routine **/
-#else
     "service = uppercase('%s') AND mach_id = %d", 
-#endif
     2,
     &sshi_validate,
   },
@@ -2811,7 +3173,7 @@ struct query Queries2[] = {
     "CHAR(m.name), ha.acl_type, CHAR(ha.acl_id), CHAR(ha.modtime), CHAR(ha.modby), ha.modwith FROM hostaccess ha, machine m",
     gsha_fields,
     6,
-    "m.name = uppercase('%s') AND ha.mach_id = m.mach_id",
+    "m.name LIKE '%s' ESCAPE '*' AND ha.mach_id = m.mach_id",
     1,
     &gsha_validate,
   },
@@ -2871,9 +3233,9 @@ struct query Queries2[] = {
     "CHAR(sh.service), CHAR(m.name) FROM serverhosts sh, machine m",
     gslo_fields,
     2,
-    "sh.service = uppercase('%s') AND sh.mach_id = m.mach_id",
+    "sh.service LIKE '%s' ESCAPE '*' AND sh.mach_id = m.mach_id",
     1,
-    0,
+    &VDupwild0,
   },
 
   {
@@ -2888,7 +3250,7 @@ struct query Queries2[] = {
     14,
     "fs.label LIKE '%s' ESCAPE '*' AND fs.mach_id = m.mach_id AND fs.owner = u.users_id AND fs.owners = l.list_id",
     1,
-    &VDsortf,
+    &VDwildsortf,
   },
 
   {
@@ -2907,7 +3269,7 @@ struct query Queries2[] = {
   },
 
   {
-    /* Q_GFSN - GET_FILESYS_BY_NFSPHYS */ /** Check to make sure the stmt_buf is long enough for this query! **/ 
+    /* Q_GFSN - GET_FILESYS_BY_NFSPHYS */ 
     "get_filesys_by_nfsphys",
     "gfsn",
     RETRIEVE,
@@ -2916,9 +3278,9 @@ struct query Queries2[] = {
     "CHAR(fs.label), fs.type, CHAR(m.name), fs.name, fs.mount, fs.access, fs.comments, CHAR(u.login), CHAR(l.name), CHAR(fs.createflg), fs.lockertype, CHAR(fs.modtime), CHAR(fs.modby), fs.modwith FROM filesys fs, machine m, users u, list l, nfsphys np",
     gfsn_fields,
     14,
-    "fs.mach_id = %d AND m.mach_id = fs.mach_id AND fs.owner = u.users_id AND fs.owners = l.list_id AND np.nfsphys_id = fs.phys_id AND np.dir = '%s' AND fs.type = 'NFS'",
+    "fs.mach_id = %d AND m.mach_id = fs.mach_id AND fs.owner = u.users_id AND fs.owners = l.list_id AND np.nfsphys_id = fs.phys_id AND np.dir LIKE '%s' ESCAPE '*' AND fs.type = 'NFS'", 
     2,
-    &gfsm_validate,
+    &gfsn_validate,
   },
 
   {
@@ -2936,6 +3298,21 @@ struct query Queries2[] = {
     &gfsg_validate,
   },
 
+  {
+    /* Q_GFSP - GET_FILESYS_BY_PATH */ /** Allow wildcards??? **/
+    "get_filesys_by_path",
+    "gfsp",
+    RETRIEVE,
+    "fs",
+    FILESYS,
+    "CHAR(fs.label), fs.type, CHAR(m.name), fs.name, fs.mount, fs.access, fs.comments, CHAR(u.login), CHAR(l.name), CHAR(fs.createflg), fs.lockertype, CHAR(fs.modtime), CAHR(fs.modby), fs.modwith FROM filesys fs, machine m, users u, list l",
+    gfsp_fields,
+    14,
+    "fs.name = '%s' and m.mach_id = fs.mach_id and fs.owner = u.users_id and fs.owners = list_id",
+    1,
+    &VDsortf,
+  },
   {
     /* Q_AFIL - ADD_FILESYS */ /* uses prefetch_value() for filsys_id */
     "add_filesys",
@@ -3003,10 +3380,10 @@ struct query Queries2[] = {
     APPEND,
     "fg",
     "fsgroup",
-    "INTO fsgroup (group_id,filsys_id,key) VALUES (filesys.filsys_id, %d, '%s')",
+    "INTO fsgroup (group_id,filsys_id,key) VALUES (%d, %d, '%s')",
     gfgm_fields,
     2,
-    "filesys.filsys_id = %d AND filesys.type = 'FSGROUP'",
+    (char *)0,
     1,
     &aftg_validate,
   },
@@ -3033,7 +3410,7 @@ struct query Queries2[] = {
     RETRIEVE,
     "np",
     "nfsphys",
-    "CHAR(m.name), np.dir, np.device, CHAR(np.status), CHAR(np.allocated), CHAR(np.size), CHAR(np.modtime), CHAR(np.modby), np.modwith FROM nfsphys np, machine m",
+    "CHAR(m.name), CHAR(np.dir), np.device, CHAR(np.status), CHAR(np.allocated), CHAR(np.partsize), CHAR(np.modtime), CHAR(np.modby), np.modwith FROM nfsphys np, machine m",
     ganf_fields,
     9,
     "m.mach_id = np.mach_id",
@@ -3048,10 +3425,10 @@ struct query Queries2[] = {
     RETRIEVE,
     "np",
     "nfsphys",
-    "CHAR(m.name), np.dir, np.device, CHAR(np.status), CHAR(np.allocated), CHAR(np.size), CHAR(np.modtime), CHAR(np.modby), np.modwith FROM nfsphys np, machine m",
+    "CHAR(m.name), CHAR(np.dir), np.device, CHAR(np.status), CHAR(np.allocated), CHAR(np.partsize), CHAR(np.modtime), CHAR(np.modby), np.modwith FROM nfsphys np, machine m",
     gnfp_fields,
     9,
-    "np.mach_id = %d AND np.dir = '%s' AND m.mach_id = np.mach_id",
+    "np.mach_id = %d AND np.dir LIKE '%s' ESCAPE '*' AND m.mach_id = np.mach_id", 
     2,
     &gnfp_validate,
   },
@@ -3063,7 +3440,7 @@ struct query Queries2[] = {
     APPEND,
     "np",
     "nfsphys",
-    "INTO nfsphys (mach_id, dir, device, status, allocated, size, nfsphys_id) VALUES (%d, '%s', '%s', %s, %s, %s, %s)",
+    "INTO nfsphys (mach_id, dir, device, status, allocated, partsize, nfsphys_id) VALUES (%d, '%s', '%s', %s, %s, %s, %s)",
     ganf_fields,
     6,
     0,
@@ -3078,10 +3455,10 @@ struct query Queries2[] = {
     UPDATE,
     "np",
     "nfsphys",
-    "nfsphys SET device = '%s', status = '%s', allocated = %s, size = %s",
+    "nfsphys SET device = '%s', status = '%s', allocated = %s, partsize = %s",
     gnfp_fields,
     4,
-    "mach_id = %d AND dir = '%s'",
+    "mach_id = %d AND dir = '%s'", 
     2,
     &unfp_validate,
   },
@@ -3094,7 +3471,7 @@ struct query Queries2[] = {
     "np",
     "nfsphys",
     "nfsphys SET allocated = allocated + %s",
-    dnfp_fields,
+    ajnf_fields,
     1,
     "mach_id = %d AND dir = '%s'",
     2,
@@ -3147,16 +3524,16 @@ struct query Queries2[] = {
   },
 
   {
-    /* Q_AQOT - ADD_QUOTA */ /** Needs subselect */
+    /* Q_AQOT - ADD_QUOTA */ /* prefetch_filsys() gets last 2 values */
     "add_quota",
     "aqot",
     APPEND,
     "q",
     QUOTA,
-    "INTO quota (filsys_id, type, entity_id, quota, phys_id) VALUES (filesys.filsys_id, '%s', %d, %s, filesys.phys_id)",
+    "INTO quota (type, entity_id, quota, filsys_id, phys_id) VALUES (filesys.filsys_id, '%s', %d, %s, %s, %s)",
     aqot_fields,
     3,
-    "filesys.filsys_id = %d",
+    (char *)0,
     1,
     &aqot_validate,
   },
@@ -3201,7 +3578,7 @@ struct query Queries2[] = {
     "CHAR(fs.label), CHAR(u.login), CHAR(q.quota), CHAR(q.phys_id), CHAR(m.name), CHAR(q.modtime), CHAR(q.modby), q.modwith FROM quota q, filesys fs, users u, machine m",
     gnfq_fields,
     8,
-    "fs.label = '%s' AND q.type = 'USER' AND q.entity_id = u.users_id AND fs.filsys_id = q.filsys_id AND m.mach_id = fs.mach_id AND u.login = '%s'",
+    "fs.label LIKE '%s' ESCAPE '*' AND q.type = 'USER' AND q.entity_id = u.users_id AND fs.filsys_id = q.filsys_id AND m.mach_id = fs.mach_id AND u.login = '%s'",
     2,
     &gnfq_validate,
   },
@@ -3213,25 +3590,25 @@ struct query Queries2[] = {
     RETRIEVE,
     "q",
     QUOTA,
-    "CHAR(fs.label), CHAR(u.login), CHAR(q.quota), np.dir, CHAR(m.name) FROM quota q, filesys fs, users u, nfsphys np, machine m",
+    "CHAR(fs.label), CHAR(u.login), CHAR(q.quota), CHAR(np.dir), CHAR(m.name) FROM quota q, filesys fs, users u, nfsphys np, machine m",
     gnqp_fields,
     5,
-    "np.mach_id = %d AND np.dir = '%s' AND q.phys_id = np.nfsphys_id AND fs.filsys_id = q.filsys_id AND q.type = 'USER' AND u.users_id = q.entity_id AND m.mach_id = np.mach_id",
+    "np.mach_id = %d AND np.dir LIKE '%s' ESCAPE '*' AND q.phys_id = np.nfsphys_id AND fs.filsys_id = q.filsys_id AND q.type = 'USER' AND u.users_id = q.entity_id AND m.mach_id = np.mach_id",
     2,
-    &VDmach,
+    &gnqp_validate,
   },
 
   {
-    /* Q_ANFQ - ADD_NFS_QUOTA */ /** Needs subselect */
+    /* Q_ANFQ - ADD_NFS_QUOTA */ /* prefetch_filsys() gets last 2 values */
     "add_nfs_quota",
     "anfq",
     APPEND,
     "q",
     QUOTA,
-    "INTO quota (filsys_id, type, entity_id, quota, phys_id) VALUES (filesys.filsys_id, 'USER', %d, %s, filesys.phys_id)",
+    "INTO quota (type, entity_id, quota, filsys_id, phys_id) VALUES ('USER', %d, %s, %s, %s)",
     anfq_fields,
     2,
-    "filesys.filsys_id = %d",
+    (char *)0,
     1,
     &anfq_validate,
   },
@@ -3277,8 +3654,8 @@ struct query Queries2[] = {
     glin_fields,
     13,
     0,
-    1,
-    &glin_validate,
+    1,              
+    &glin_validate, 
   },
     
   {
@@ -3293,7 +3670,7 @@ struct query Queries2[] = {
     1,
     "name LIKE '%s' ESCAPE '*' AND list_id != 0",
     1,
-    0
+    &VDwild0,
   },
     
   {
@@ -3416,6 +3793,21 @@ struct query Queries2[] = {
     &gmol_validate,
   },
 
+  {
+    /* Q_GEML - GET_END_MEMBERS_OF_LIST */
+    "get_end_members_of_list",
+    "geml",
+    RETRIEVE,
+    (char *)0,
+    "imembers",
+    (char *)0,
+    gmol_fields,
+    0,
+    (char *)0,
+    1,
+    &geml_validate,
+  },
   {
     /* Q_GLOM - GET_LISTS_OF_MEMBER */
     "get_lists_of_member",
@@ -3486,7 +3878,7 @@ struct query Queries2[] = {
     "zephyr SET class = '%s', xmt_type = '%d', xmt_id = %d, sub_type = '%s', sub_id = %d, iws_type = '%s', iws_id = %d, iui_type = '%s', iui_id = %d",
     uzcl_fields,
     9,
-    "class LIKE '%s' ESCAPE '*'",
+    "class = '%s'",
     1,
     &uzcl_validate,
   },    
@@ -3501,7 +3893,7 @@ struct query Queries2[] = {
     0,
     uzcl_fields,
     0,
-    "class LIKE '%s' ESCAPE '*'",
+    "class = '%s'",
     1,
     &dzcl_validate,
   },    
@@ -3518,7 +3910,7 @@ struct query Queries2[] = {
     7,
     "name LIKE '%s' ESCAPE '*'",
     1,
-    &VDsortf,
+    &VDwildsortf,
   },
 
   {
@@ -3546,7 +3938,7 @@ struct query Queries2[] = {
     0,
     asvc_fields,
     0,
-    "name LIKE '%s' ESCAPE '*'",
+    "name = '%s'",
     1,
     &asvc_validate,
   },
@@ -3591,7 +3983,7 @@ struct query Queries2[] = {
     0,
     apce_fields,
     0,
-    "name LIKE '%s' ESCAPE '*'",
+    "name = '%s'",
     1,
     &dpce_validate,
   },
@@ -3608,7 +4000,7 @@ struct query Queries2[] = {
     8,
     "p.name LIKE '%s' ESCAPE '*' AND m.mach_id = p.mach_id",
     1,
-    &VDsortf,
+    &VDwildsortf,
   },
 
   {
@@ -3621,7 +4013,7 @@ struct query Queries2[] = {
     0,
     apce_fields,
     0,
-    "name LIKE '%s' ESCAPE '*'",
+    "name = '%s'",
     1,
     &dpce_validate,
   },
@@ -3638,7 +4030,7 @@ struct query Queries2[] = {
     6,
     "p.name LIKE '%s' ESCAPE '*' AND m.mach_id = p.mach_id",
     1,
-    &VDsortf,
+    &VDwildsortf,
   },
 
   {
@@ -3666,7 +4058,7 @@ struct query Queries2[] = {
     0,
     apdm_fields,
     0,
-    "name LIKE '%s' ESCAPE '*'",
+    "name = '%s'",
     1,
     &dpdm_validate,
   },
@@ -3683,7 +4075,7 @@ struct query Queries2[] = {
     3,
     "name LIKE '%s' ESCAPE '*' AND type LIKE '%s' ESCAPE '*' AND trans LIKE '%s' ESCAPE '*'",
     3,
-    0,
+    &VDwild3sort1,
   },
 
   {
@@ -3711,7 +4103,7 @@ struct query Queries2[] = {
     (char *)0,
     aali_fields,
     0,
-    "name LIKE '%s' ESCAPE '*' AND type LIKE '%s' ESCAPE '*' AND trans LIKE '%s' ESCAPE '*'", 
+    "name = '%s' AND type = '%s' AND  trans = '%s'", 
     3,
     &dali_validate,
   },
@@ -3726,7 +4118,7 @@ struct query Queries2[] = {
     "CHAR(value) FROM numvalues",
     gval_fields,
     1,
-    "name LIKE '%s' ESCAPE '*'",
+    "name = '%s'",
     1,
     &gval_validate,
   },
@@ -3756,7 +4148,7 @@ struct query Queries2[] = {
     "numvalues SET value = %s",
     aval_fields,
     1,
-    "name LIKE '%s' ESCAPE '*'",
+    "name = '%s'",
     1,
     &aval_validate,
   },
@@ -3771,7 +4163,7 @@ struct query Queries2[] = {
     (char *)0,
     dval_fields,
     0,
-    "name LIKE '%s' ESCAPE '*'",
+    "name = '%s'",
     1,
     &aval_validate,
   },
This page took 0.333006 seconds and 4 git commands to generate.