ausr_valobj,
7,
LOGIN,
- "u.login = \"%s\"",
+ "users.login = \"%s\"",
1,
USERS_ID,
0,
akum_valobj,
1,
USERS_ID,
- "k.users_id = %d or k.string_id = %d",
+ "kerberos.users_id = %d or kerberos.string_id = %d",
2,
USERS_ID,
access_user,
akum_valobj,
2,
USERS_ID,
- "k.users_id = %d and k.string_id = %d",
+ "kerberos.users_id = %d and kerberos.string_id = %d",
2,
USERS_ID,
access_user,
VOuser0,
1,
"potype",
- "u.potype != \"NONE\" and u.users_id=%d",
+ "users.potype != \"NONE\" and users.users_id=%d",
1,
0,
access_user,
amac_valobj,
3,
NAME,
- "m.name = uppercase(\"%s\")",
+ "imembers.name = uppercase(\"%s\")",
1,
MACH_ID,
0,
aclu_valobj,
2,
NAME,
- "c.name = \"%s\"",
+ "clusters.name = \"%s\"",
1,
"clu_id",
0,
amtc_valobj,
2,
MACH_ID,
- "m.mach_id = %d and m.clu_id = %d",
+ "imembers.mach_id = %d and imembers.clu_id = %d",
2,
0,
0,
acld_valobj,
2,
CLU_ID,
- "s.clu_id = %d and s.serv_label = \"%s\" and s.serv_cluster = \"%s\"",
+ "svc.clu_id = %d and svc.serv_label = \"%s\" and svc.serv_cluster = \"%s\"",
3,
0,
0,
asin_valobj,
5,
NAME,
- "s.name = uppercase(\"%s\")",
+ "services.name = uppercase(\"%s\")",
1,
0,
0,
asin_valobj,
1,
NAME,
- "s.name = uppercase(\"%s\")",
+ "services.name = uppercase(\"%s\")",
1,
0,
access_service,
asin_valobj,
1,
NAME,
- "s.name = uppercase(\"%s\")",
+ "services.name = uppercase(\"%s\")",
1,
0,
0,
asin_valobj,
1,
NAME,
- "s.name = uppercase(\"%s\")",
+ "services.name = uppercase(\"%s\")",
1,
0,
0,
ashi_valobj,
3,
SERVICE,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "serverhosts.service = uppercase(\"%s\") and serverhosts.mach_id = %d",
2,
0,
access_service,
ashi_valobj,
3,
SERVICE,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "serverhosts.service = uppercase(\"%s\") and serverhosts.mach_id = %d",
2,
0,
access_service,
ashi_valobj,
3,
SERVICE,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "serverhosts.service = uppercase(\"%s\") and serverhosts.mach_id = %d",
2,
0,
access_service,
ashi_valobj,
3,
SERVICE,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "serverhosts.service = uppercase(\"%s\") and serverhosts.mach_id = %d",
2,
0,
access_service,
asha_valobj,
3,
MACH_ID,
- "ha.mach_id = %d",
+ "hostaccess.mach_id = %d",
1,
MACH_ID,
0,
afil_valobj,
8,
LABEL,
- "fs.label = \"%s\"",
+ "filesys.label = \"%s\"",
1,
FILSYS_ID,
0,
ufil_valobj,
9,
LABEL,
- "fs.filsys_id = %d",
+ "filesys.filsys_id = %d",
1,
FILSYS_ID,
0,
dfil_valobj,
2,
"label",
- "fs.filsys_id = %d",
+ "filesys.filsys_id = %d",
1,
0,
0,
aftg_valobj,
3,
"group_id",
- "fg.group_id = %d and fg.filsys_id = %d",
+ "fsgroup.group_id = %d and fsgroup.filsys_id = %d",
2,
0,
0,
anfp_valobj,
2,
DIR,
- "np.mach_id = %d and np.dir = \"%s\"",
+ "nfsphys.mach_id = %d and nfsphys.dir = \"%s\"",
2,
"nfsphys_id",
0,
VOmach0,
1,
DIR,
- "np.mach_id = %d and np.dir = \"%s\"",
+ "nfsphys.mach_id = %d and nfsphys.dir = \"%s\"",
2,
"nfsphys_id",
0,
aqot_valobj,
4,
FILSYS_ID,
- "q.filsys_id = %d and q.type = \"%s\" and q.entity_id = %d",
+ "quota.filsys_id = %d and quota.type = \"%s\" and quota.entity_id = %d",
3,
0,
0,
aqot_valobj,
4,
FILSYS_ID,
- "q.filsys_id = %d and q.type = \"%s\" and q.entity_id = %d",
+ "quota.filsys_id = %d and quota.type = \"%s\" and quota.entity_id = %d",
3,
0,
0,
aqot_valobj,
4,
FILSYS_ID,
- "q.filsys_id = %d and q.type = \"%s\" and q.entity_id = %d",
+ "quota.filsys_id = %d and quota.type = \"%s\" and quota.entity_id = %d",
3,
0,
0,
VOfilsys0user1,
3,
FILSYS_ID,
- "q.filsys_id = %d and q.type = \"USER\" and q.entity_id = %d",
+ "quota.filsys_id = %d and quota.type = \"USER\" and quota.entity_id = %d",
2,
0,
0,
VOfilsys0user1,
3,
FILSYS_ID,
- "q.filsys_id = %d and q.type = \"USER\" and q.entity_id = %d",
+ "quota.filsys_id = %d and quota.type = \"USER\" and quota.entity_id = %d",
2,
0,
0,
VOfilsys0user1,
3,
FILSYS_ID,
- "q.filsys_id = %d and q.entity_id = %d",
+ "quota.filsys_id = %d and quota.entity_id = %d",
2,
0,
0,
static char *glin_fields[] = {
NAME,
- NAME, "active", "public", "hidden", "maillist", "group", "gid",
+ NAME, "active", "public", "hidden", "maillist", "isgroup", "gid",
ACE_TYPE, ACE_NAME, DESC, MOD1, MOD2, MOD3,
};
};
static char *alis_fields[] = {
- NAME, "active", "public", "hidden", "maillist", "group", "gid",
+ NAME, "active", "public", "hidden", "maillist", "isgroup", "gid",
ACE_TYPE, ACE_NAME, DESC,
};
alis_valobj,
4,
NAME,
- "l.name = \"%s\"",
+ "list.name = \"%s\"",
1,
LIST_ID,
0,
static char *ulis_fields[] = {
NAME,
- "newname", "active", "public", "hidden", "maillist", "group", "gid",
+ "newname", "active", "public", "hidden", "maillist", "isgroup", "gid",
ACE_TYPE, ACE_NAME, DESC,
};
ulis_valobj,
5,
NAME,
- "l.list_id = %d",
+ "list.list_id = %d",
1,
LIST_ID,
access_list,
VOlist0,
1,
NAME,
- "l.list_id = %d",
+ "list.list_id = %d",
1,
0,
access_list,
};
static char *qgli_fields[] = {
- "active", "public", "hidden", "maillist", "group",
+ "active", "public", "hidden", "maillist", "isgroup",
"list",
};
static char *glom_fields[] = {
"member_type", "member_name",
- "list_name", "active", "public", "hidden", "maillist", "group",
+ "list_name", "active", "public", "hidden", "maillist", "isgroup",
};
static struct valobj glom_valobj[] = {
static struct validate azcl_validate = {
azcl_valobj,
- 8,
+ 9,
CLASS,
- "z.class = \"%s\"",
+ "zephyr.class = \"%s\"",
1,
0,
0,
uzcl_valobj,
9,
CLASS,
- "z.class = \"%s\"",
+ "zephyr.class = \"%s\"",
1,
0,
0,
0,
0,
CLASS,
- "z.class = \"%s\"",
+ "zephyr.class = \"%s\"",
1,
0,
0,
VOchar0,
1,
NAME,
- "s.name = \"%s\"",
+ "services.name = \"%s\"",
1,
0,
0,
apce_valobj,
3,
NAME,
- "p.name = \"%s\"",
+ "printcap.name = \"%s\"",
1,
0,
0,
0,
0,
NAME,
- "p.name = \"%s\"",
+ "printcap.name = \"%s\"",
1,
0,
0,
apdm_valobj,
2,
NAME,
- "p.name = \"%s\"",
+ "palladium.name = \"%s\"",
1,
0,
0,
0,
0,
NAME,
- "p.name = \"%s\"",
+ "palladium.name = \"%s\"",
1,
0,
0,
aali_valobj,
3,
"trans",
- "a.name = \"%s\" and a.type = \"%s\" and a.trans = \"%s\"",
+ "alias.name = \"%s\" and alias.type = \"%s\" and alias.trans = \"%s\"",
3,
0,
0,
0,
0,
"trans",
- "a.name = \"%s\" and a.type = \"%s\" and a.trans = \"%s\"",
+ "alias.name = \"%s\" and alias.type = \"%s\" and alias.trans = \"%s\"",
3,
0,
0,
};
static struct valobj gval_valobj[] = {
- {V_NAME, 0, "values", NAME, 0, MR_NO_MATCH},
+ {V_NAME, 0, "values_tbl", NAME, 0, MR_NO_MATCH},
};
static struct validate gval_validate = {
VOchar0,
1,
NAME,
- "v.name = \"%s\"",
+ "values_tbl.name = \"%s\"",
1,
0,
0,
};
static char *gats_fields[] = {
- "table", "retrieves", "appends", "updates", "deletes", MOD1, MOD2, MOD3,
+ "tbl", "retrieves", "appends", "updates", "deletes", MOD1, MOD2, MOD3,
};
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = text(u.uid), %c = u.shell, %c = u.last, %c = u.first, %c = u.middle",
+ "u.login, text(u.uid), u.shell, u.last, u.first, u.middle",
galo_fields,
6,
"u.users_id != 0",
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = text(u.uid), %c = u.shell, %c = u.last, %c = u.first, %c = u.middle",
+ "u.login, text(u.uid), u.shell, u.last, u.first, u.middle",
galo_fields,
6,
"u.status = 1",
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = text(u.uid), %c = u.shell, %c = u.last, %c = u.first, %c = u.middle, %c = text(u.status), %c = u.mit_id, %c = u.mit_year, %c = u.modtime, %c = text(u.modby), %c = u.modwith",
+ "u.login, text(u.uid), u.shell, u.last, u.first, u.middle, text(u.status), u.mit_id, u.mit_year, u.modtime, text(u.modby), u.modwith",
gubl_fields,
12,
- "u.login = \"%s\" and u.users_id != 0",
+ "u.login = '%s' and u.users_id != 0",
1,
&gubx_validate,
},
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = text(u.uid), %c = u.shell, %c = u.last, %c = u.first, %c = u.middle, %c = text(u.status), %c = u.mit_id, %c = u.mit_year, %c = u.modtime, %c = text(u.modby), %c = u.modwith",
+ "u.login, text(u.uid), u.shell, u.last, u.first, u.middle, text(u.status), u.mit_id, u.mit_year, u.modtime, text(u.modby), u.modwith",
gubu_fields,
12,
"u.uid = %s and u.users_id != 0",
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = text(u.uid), %c = u.shell, %c = u.last, %c = u.first, %c = u.middle, %c = text(u.status), %c = u.mit_id, %c = u.mit_year, %c = u.modtime, %c = text(u.modby), %c = u.modwith",
+ "u.login, text(u.uid), u.shell, u.last, u.first, u.middle, text(u.status), u.mit_id, u.mit_year, u.modtime, text(u.modby), u.modwith",
gubn_fields,
12,
- "u.first = \"%s\" and u.last = \"%s\" and u.users_id != 0",
+ "u.first = '%s' and u.last = '%s' and u.users_id != 0",
2,
&VDsortf,
},
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = text(u.uid), %c = u.shell, %c = u.last, %c = u.first, %c = u.middle, %c = text(u.status), %c = u.mit_id, %c = u.mit_year, %c = u.modtime, %c = text(u.modby), %c = u.modwith",
+ "u.login, text(u.uid), u.shell, u.last, u.first, u.middle, text(u.status), u.mit_id, u.mit_year, u.modtime, text(u.modby), u.modwith",
gubc_fields,
12,
- "u.mit_year = uppercase(\"%s\") and u.users_id != 0",
+ "u.mit_year = uppercase('%s') and u.users_id != 0",
1,
&VDsortf,
},
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = text(u.uid), %c = u.shell, %c = u.last, %c = u.first, %c = u.middle, %c = text(u.status), %c = u.mit_id, %c = u.mit_year, %c = u.modtime, %c = text(u.modby), %c = u.modwith",
+ "u.login, text(u.uid), u.shell, u.last, u.first, u.middle, text(u.status), u.mit_id, u.mit_year, u.modtime, text(u.modby), u.modwith",
gubm_fields,
12,
- "u.mit_id = \"%s\" and u.users_id != 0",
+ "u.mit_id = '%s' and u.users_id != 0",
1,
&VDsortf,
},
{
- /* Q_AUSR - ADD_USER */
+ /* Q_AUSR - ADD_USER */ /** Problems with two refs to values_tbl */
"add_user",
"ausr",
APPEND,
"u",
USERS,
- "login = %c, users_id = values.value, uid = int4(%c), shell = %c, last = %c, first = %c, middle = %c, status = int4(%c), mit_id = %c, mit_year = %c",
+ "(login, users_id, uid, shell, last, first, middle, status, mit_id, mit_year) VALUES ( '%s', values_tbl.value, %s, '%s', '%s', '%s', '%s', %s, '%s', '%s')",
ausr_fields,
9,
- "values.name = \"users_id\"",
+ "values_tbl.name = \"users_id\"",
0,
&ausr_validate,
},
UPDATE,
"u",
USERS,
- "login = %c, uid = int4(%c), shell = %c, last = %c, first = %c, middle = %c, status = int4(%c), mit_id = %c, mit_year = %c",
+ "SET login = '%s', uid = %s, shell = '%s', last = '%s', first = '%s', middle = '%s', status = %s, mit_id = '%s', mit_year = '%s'",
uusr_fields,
9,
"u.users_id = %d",
UPDATE,
"u",
USERS,
- "shell = %c",
+ "SET shell = '%s'",
uush_fields,
1,
"u.users_id = %d",
UPDATE,
"u",
USERS,
- "status = int4(%c)",
+ "status = %s",
uust_fields,
1,
"u.users_id = %d",
RETRIEVE,
"k",
"krbmap",
- "%c = users.login, %c = strings.string",
+ "users.login, strings.string",
gkum_fields,
2,
- "users.login = \"%s\" and strings.string = \"%s\" and k.users_id = users.users_id and k.string_id = strings.string_id",
+ "users.login = '%s' and strings.string = '%s' and k.users_id = users.users_id and k.string_id = strings.string_id",
2,
&VDsort2,
},
APPEND,
"k",
"krbmap",
- "users_id = %i4, string_id = %i4",
+ "(users_id, string_id) VALUES (%s, %s)",
akum_fields,
2,
0,
RETRIEVE,
"u",
USERS,
- "%c = u.login,%c=u.fullname,%c=u.nickname,%c=u.home_addr,%c=u.home_phone,%c=u.office_addr,%c=u.office_phone,%c=u.mit_dept,%c=u.mit_affil,%c=u.fmodtime,%c=text(u.fmodby),%c=u.fmodwith",
+ "u.login, u.fullname, u.nickname, u.home_addr, u.home_phone, u.office_addr, u.office_phone, u.mit_dept, u.mit_affil, u.fmodtime, text(u.fmodby), u.fmodwith",
gfbl_fields,
12,
"u.users_id = %d",
UPDATE,
"u",
USERS,
- "fullname=%c,nickname=%c,home_addr=%c,home_phone=%c,office_addr=%c,office_phone=%c,mit_dept=%c,mit_affil=%c",
+ "SET fullname= '%s',nickname= '%s',home_addr= '%s',home_phone= '%s',office_addr= '%s',office_phone= '%s',mit_dept= '%s',mit_affil= '%s'",
ufbl_fields,
8,
"u.users_id = %d",
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = u.potype, %c = text(u.pop_id) + \":\" + text(u.box_id), %c = u.pmodtime, %c = text(u.pmodby), %c = u.pmodwith",
+ "u.login, u.potype, text(u.pop_id) + \":\" + text(u.box_id), u.pmodtime, text(u.pmodby), u.pmodwith",
gpob_fields,
6,
"u.users_id = %d",
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = u.potype, %c = text(u.pop_id) + \":\" + text(u.box_id)",
+ "u.login, u.potype, text(u.pop_id) + \":\" + text(u.box_id)",
gpox_fields,
3,
- "u.potype != \"NONE\"",
+ "u.potype != 'NONE'",
0,
&gpox_validate,
},
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = u.potype, %c = text(u.pop_id) + \":\" + text(u.box_id)",
+ "u.login, u.potype, text(u.pop_id) + \":\" + text(u.box_id)",
gpox_fields,
3,
- "u.potype = \"POP\"",
+ "u.potype = 'POP'",
0,
&gpox_validate
},
RETRIEVE,
"u",
USERS,
- "%c = u.login, %c = u.potype, %c = text(u.pop_id) + \":\" + text(u.box_id)",
+ "u.login, u.potype, text(u.pop_id) + \":\" + text(u.box_id)",
gpox_fields,
3,
- "u.potype = \"SMTP\"",
+ "u.potype = 'SMTP'",
0,
&gpox_validate
},
UPDATE,
"u",
USERS,
- "potype = \"POP\"",
+ "SET potype = 'POP'",
spob_fields,
0,
"u.users_id = %d",
UPDATE,
"u",
USERS,
- "potype = \"NONE\"",
+ "SET potype = 'NONE'",
spob_fields,
0,
"u.users_id = %d",
RETRIEVE,
"m",
MACHINE,
- "%c = m.name, %c = m.type, %c = m.modtime, %c = text(m.modby), %c =m.modwith",
+ "m.name, m.type, m.modtime, text(m.modby), m.modwith",
gmac_fields,
5,
- "m.name = uppercase(\"%s\") and m.mach_id != 0",
+ "m.name = uppercase('%s') and m.mach_id != 0",
1,
&VDsortf,
},
APPEND,
"m",
MACHINE,
- "name = uppercase(%c), mach_id = values.value, type = %c",
+ "(name, mach_id, type) VALUES (uppercase('%s'),values_tbl.value,'%s')",
amac_fields,
2,
- "values.name = \"mach_id\"",
+ "values_tbl.name = 'mach_id'",
0,
&amac_validate,
},
UPDATE,
"m",
MACHINE,
- "name = uppercase(%c), type = %c",
+ "SET name = uppercase('%s'), type = '%s'",
umac_fields,
2,
"m.mach_id = %d",
RETRIEVE,
"c",
CLUSTER,
- "%c = c.name, %c = c.desc, %c = c.location, %c = c.modtime, %c = text(c.modby), %c = c.modwith",
+ "c.name, c.desc, c.location, c.modtime, text(c.modby), c.modwith",
gclu_fields,
6,
- "c.name = \"%s\" and c.clu_id != 0",
+ "c.name = '%s' and c.clu_id != 0",
1,
&VDsortf,
},
APPEND,
"c",
CLUSTER,
- "name = %c, clu_id = values.value, desc = %c, location = %c",
+ "(name, clu_id, desc, location) VALUES ('%s',values_tbl.value,'%s','%s')",
aclu_fields,
3,
- "values.name = \"clu_id\"",
+ "values_tbl.name = 'clu_id'",
0,
&aclu_validate,
},
UPDATE,
"c",
CLUSTER,
- "name = %c, desc = %c, location = %c",
+ "SET name = '%s', desc = '%s', location = '%s'",
uclu_fields,
3,
"c.clu_id = %d",
RETRIEVE,
"m",
"mcmap",
- "%c = machine.name, %c = cluster.name",
+ "machine.name, cluster.name",
gmcm_fields,
2,
- "machine.name = uppercase(\"%s\") and cluster.name = \"%s\" and m.clu_id = cluster.clu_id and m.mach_id = machine.mach_id",
+ "machine.name = uppercase('%s') and cluster.name = '%s' and m.clu_id = cluster.clu_id and m.mach_id = machine.mach_id",
2,
&VDsort2,
},
APPEND,
"m",
"mcmap",
- "mach_id = %i4, clu_id = %i4",
+ "(mach_id, clu_id) VALUES (%d, %d)",
gmcm_fields,
2,
0,
RETRIEVE,
"s",
"svc",
- "%c = cluster.name, %c = s.serv_label, %c = s.serv_cluster",
+ "cluster.name, s.serv_label, s.serv_cluster",
gcld_fields,
3,
- "cluster.clu_id = s.clu_id and cluster.name = \"%s\" and s.serv_label = \"%s\"",
+ "cluster.clu_id = s.clu_id and cluster.name = '%s' and s.serv_label = '%s'",
2,
&VDsort2,
},
APPEND,
"s",
"svc",
- "clu_id = %i4, serv_label = %c, serv_cluster = %c",
+ "(clu_id, serv_label, serv_cluster) VALUES (%d,'%s','%s')",
acld_fields,
3,
(char *)0,
(char *)0,
acld_fields,
0,
- "s.clu_id = %d and s.serv_label = \"%s\" and s.serv_cluster = \"%s\"",
+ "s.clu_id = %d and s.serv_label = '%s' and s.serv_cluster = '%s'",
3,
&acld_validate,
},
RETRIEVE,
"s",
"servers",
- "%c = s.name, %c = text(s.update_int), %c = s.target_file, %c = s.script, %c = text(s.dfgen), %c = text(s.dfcheck), %c = s.type, %c = text(s.enable), %c = text(s.inprogress), %c = text(s.harderror), %c = s.errmsg, %c = s.acl_type, %c = text(s.acl_id), %c = s.modtime, %c = text(s.modby), %c = s.modwith",
+ "s.name, text(s.update_int), s.target_file, s.script, text(s.dfgen), text(s.dfcheck), s.type, text(s.enable), text(s.inprogress), text(s.harderror), s.errmsg, s.acl_type, text(s.acl_id), s.modtime, text(s.modby), s.modwith",
gsin_fields,
16,
- "s.name = uppercase(\"%s\")",
+ "s.name = uppercase('%s')",
1,
&gsin_validate,
},
APPEND,
"s",
"servers",
- "name = uppercase(%c), update_int = int4(%c), target_file = %c, script = %c, type = %c, enable = int1(%c), acl_type = %c, acl_id = %i4",
+ "(name, update_int, target_file, script, type, enable, acl_type, acl_id) VALUES (uppercase('%s'),%s,'%s','%s','%s',%s,'%s',%d)",
asin_fields,
8,
(char *)0,
UPDATE,
"s",
"servers",
- "update_int = int4(%c), target_file = %c, script = %c, type = %c, enable = int1(%c), acl_type = %c, acl_id = %i4",
+ "SET update_int = %s, target_file = '%s', script = '%s', type = '%s', enable = %s, acl_type = '%s', acl_id = %d",
asin_fields,
7,
- "s.name = uppercase(\"%s\")",
+ "s.name = uppercase('%s')",
1,
&asin_validate,
},
UPDATE,
"s",
"servers",
- "harderror = 0, dfcheck = s.dfgen",
+ "SET harderror = 0, dfcheck = s.dfgen",
dsin_fields,
0,
- "s.name = uppercase(\"%s\")",
+ "s.name = uppercase('%s')",
1,
&rsve_validate,
},
UPDATE,
"s",
"servers",
- "dfgen = int4(%c), dfcheck = int4(%c), inprogress = int1(%c), harderror = int1(%c), errmsg = %c",
+ "SET dfgen = %s, dfcheck = %s, inprogress = %s, harderror = %s, errmsg = '%s'",
ssif_fields,
5,
- "s.name = uppercase(\"%s\")",
+ "s.name = uppercase('%s')",
1,
&ssif_validate,
},
(char *)0,
dsin_fields,
0,
- "s.name = uppercase(\"%s\")",
+ "s.name = uppercase('%s')",
1,
&dsin_validate,
},
RETRIEVE,
"sh",
"serverhosts",
- "%c = sh.service, %c = machine.name, %c = text(sh.enable), %c = text(sh.override), %c = text(sh.success), %c = text(sh.inprogress), %c = text(sh.hosterror), %c = sh.hosterrmsg, %c = text(sh.ltt), %c = text(sh.lts), %c = text(sh.value1), %c = text(sh.value2), %c = sh.value3, %c = sh.modtime, %c = text(sh.modby), %c = sh.modwith",
+ "sh.service, machine.name, text(sh.enable), text(sh.override), text(sh.success), text(sh.inprogress), text(sh.hosterror), sh.hosterrmsg, text(sh.ltt), text(sh.lts), text(sh.value1), text(sh.value2), sh.value3, sh.modtime, text(sh.modby), sh.modwith",
gshi_fields,
16,
- "sh.service = uppercase(\"%s\") and machine.name = uppercase(\"%s\") and machine.mach_id = sh.mach_id",
+ "sh.service = uppercase('%s') and machine.name = uppercase('%s') and machine.mach_id = sh.mach_id",
2,
&gshi_validate,
},
APPEND,
"sh",
"serverhosts",
- "service = uppercase(%c), mach_id = %i4, enable = int1(%c), value1 = int4(%c), value2 = int4(%c), value3 = %c",
+ "(service, mach_id, enable, value1, value2, value3) VALUES (uppercase('%s'), %d, %s, %s, %s, '%s')",
ashi_fields,
6,
(char *)0,
UPDATE,
"sh",
"serverhosts",
- "enable = int1(%c), value1 = int4(%c), value2 = int4(%c), value3 = %c",
+ "SET enable = %s, value1 = %s, value2 = %s, value3 = '%s'",
ashi_fields,
4,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "sh.service = uppercase('%s') and sh.mach_id = %d",
2,
&ashi_validate,
},
UPDATE,
"sh",
"serverhosts",
- "hosterror = 0",
+ "SET hosterror = 0",
dshi_fields,
0,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "sh.service = uppercase('%s') and sh.mach_id = %d",
2,
&rshe_validate,
},
UPDATE,
"sh",
"serverhosts",
- "override = 1",
+ "SET override = 1",
dshi_fields,
0,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "sh.service = uppercase('%s') and sh.mach_id = %d",
2,
&ssho_validate,
},
UPDATE,
"s",
"serverhosts",
- "override = int1(%c), success = int1(%c), inprogress = int1(%c), hosterror = int1(%c), hosterrmsg = %c, ltt = int4(%c), lts = int4(%c)",
+ "SET override = %s, success = %s, inprogress = %s, hosterror = %s, hosterrmsg = '%s', ltt = %s, lts = %s",
sshi_fields,
7,
- "s.service = uppercase(\"%s\") and s.mach_id = machine.mach_id and machine.name = \"%s\"",
+ "s.service = uppercase('%s') and s.mach_id = machine.mach_id and machine.name = '%s'",
2,
&sshi_validate,
},
(char *)0,
dshi_fields,
0,
- "sh.service = uppercase(\"%s\") and sh.mach_id = %d",
+ "sh.service = uppercase('%s') and sh.mach_id = %d",
2,
&dshi_validate,
},
RETRIEVE,
"ha",
"hostaccess",
- "%c = machine.name, %c = ha.acl_type, %c = text(ha.acl_id), %c = ha.modtime, %c = text(ha.modby), %c = ha.modwith",
+ "machine.name, ha.acl_type, text(ha.acl_id), ha.modtime, text(ha.modby), ha.modwith",
gsha_fields,
6,
- "machine.name = uppercase(\"%s\") and ha.mach_id = machine.mach_id",
+ "machine.name = uppercase('%s') and ha.mach_id = machine.mach_id",
1,
&gsha_validate,
},
APPEND,
"ha",
"hostaccess",
- "mach_id = %i4, acl_type = %c, acl_id = %i4",
+ "(mach_id,acl_type,acl_id) VALUES (%d,'%s',%d)",
asha_fields,
3,
0,
UPDATE,
"ha",
"hostaccess",
- "acl_type = %c, acl_id = %i4",
+ "SET acl_type = '%s', acl_id = %d",
asha_fields,
2,
"ha.mach_id = %d",
RETRIEVE,
"sh",
"serverhosts",
- "%c = sh.service, %c = machine.name",
+ "sh.service, machine.name",
gslo_fields,
2,
- "sh.service = uppercase(\"%s\") and sh.mach_id = machine.mach_id",
+ "sh.service = uppercase('%s') and sh.mach_id = machine.mach_id",
1,
0,
},
RETRIEVE,
"fs",
FILESYS,
- "%c = fs.label, %c = fs.type, %c = machine.name, %c = fs.name, %c = fs.mount, %c = fs.access, %c = fs.comments, %c = users.login, %c = list.name, %c = text(fs.createflg), %c = fs.lockertype, %c = fs.modtime, %c = text(fs.modby), %c = fs.modwith",
+ "fs.label, fs.type, machine.name, fs.name, fs.mount, fs.access, fs.comments, users.login, list.name, text(fs.createflg), fs.lockertype, fs.modtime, text(fs.modby), fs.modwith",
gfsl_fields,
14,
- "fs.label = \"%s\" and fs.mach_id = machine.mach_id and fs.owner = users.users_id and fs.owners = list.list_id",
+ "fs.label = '%s' and fs.mach_id = machine.mach_id and fs.owner = users.users_id and fs.owners = list.list_id",
1,
&VDsortf,
},
RETRIEVE,
"fs",
FILESYS,
- "%c = fs.label, %c = fs.type, %c = machine.name, %c = fs.name, %c = fs.mount, %c = fs.access, %c = fs.comments, %c = users.login, %c = list.name, %c = text(fs.createflg), %c = fs.lockertype, %c = fs.modtime, %c = text(fs.modby), %c = fs.modwith",
+ "fs.label, fs.type, machine.name, fs.name, fs.mount, fs.access, fs.comments, users.login, list.name, text(fs.createflg), fs.lockertype, fs.modtime, text(fs.modby), fs.modwith",
gfsm_fields,
14,
"fs.mach_id = %d and machine.mach_id = fs.mach_id and fs.owner = users.users_id and fs.owners = list.list_id",
RETRIEVE,
"fs",
FILESYS,
- "%c = fs.label, %c = fs.type, %c = machine.name, %c = fs.name, %c = fs.mount, %c = fs.access, %c = fs.comments, %c = users.login, %c = list.name, %c = text(fs.createflg), %c = fs.lockertype, %c = fs.modtime, %c = text(fs.modby), %c = fs.modwith",
+ "fs.label, fs.type, machine.name, fs.name, fs.mount, fs.access, fs.comments, users.login, list.name, text(fs.createflg), fs.lockertype, fs.modtime, text(fs.modby), fs.modwith",
gfsn_fields,
14,
- "fs.mach_id = %d and machine.mach_id = fs.mach_id and fs.owner = users.users_id and fs.owners = list.list_id and nfsphys.nfsphys_id = fs.phys_id and nfsphys.dir = \"%s\" and fs.type = \"NFS\"",
+ "fs.mach_id = %d and machine.mach_id = fs.mach_id and fs.owner = users.users_id and fs.owners = list.list_id and nfsphys.nfsphys_id = fs.phys_id and nfsphys.dir = '%s' and fs.type = 'NFS'",
2,
&gfsm_validate,
},
RETRIEVE,
"fs",
FILESYS,
- "%c = fs.label, %c = fs.type, %c = machine.name, %c = fs.name, %c = fs.mount, %c = fs.access, %c = fs.comments, %c = users.login, %c = list.name, %c = text(fs.createflg), %c = fs.lockertype, %c = fs.modtime, %c = text(fs.modby), %c = fs.modwith",
+ "fs.label, fs.type, machine.name, fs.name, fs.mount, fs.access, fs.comments, users.login, list.name, text(fs.createflg), fs.lockertype, fs.modtime, text(fs.modby), fs.modwith",
gfsg_fields,
14,
"fs.owners = %d and machine.mach_id = fs.mach_id and fs.owner = users.users_id and fs.owners = list.list_id",
APPEND,
"fs",
FILESYS,
- "filsys_id = values.value, label = %c, type = %c, mach_id = %i4, name = %c, mount = %c, access = %c, comments = %c, owner = %i4, owners = %i4, createflg = int1(%c), lockertype = %c",
+ "(filsys_id, label, type, mach_id, name, mount, access, comments, owner, owners, createflg, lockertype) VALUES (values_tbl.value,'%s','%s',%d,'%s','%s','%s','%s',%d,%d,%s,'%s')",
afil_fields,
11,
- "values.name = \"filsys_id\"",
+ "values_tbl.name = 'filsys_id'",
0,
&afil_validate,
},
UPDATE,
"fs",
FILESYS,
- "label = %c, type = %c, mach_id = %i4, name = %c, mount = %c, access = %c, comments = %c, owner = %i4, owners = %i4, createflg = int1(%c), lockertype = %c",
+ "SET label = '%s', type = '%s', mach_id = %d, name = '%s', mount = '%s', access = '%s', comments = '%s', owner = %d, owners = %d, createflg = %s, lockertype = '%s'",
ufil_fields,
11,
"fs.filsys_id = %d",
1,
- &ufil_validate,
+ &ufil_validate,
},
{
RETRIEVE,
"fg",
"fsgroup",
- "%c = filesys.label, %c = fg.key",
+ "filesys.label, fg.key",
gfgm_fields,
2,
"fg.group_id = %d and filesys.filsys_id = fg.filsys_id",
APPEND,
"fg",
"fsgroup",
- "group_id = filesys.filsys_id, filsys_id = %i4, key = %c",
+ "(group_id,filsys_id,key) VALUES (filesys.filsys_id, %d, '%s')",
gfgm_fields,
2,
- "filesys.filsys_id = %d and filesys.type = \"FSGROUP\"",
+ "filesys.filsys_id = %d and filesys.type = 'FSGROUP'",
1,
&aftg_validate,
},
RETRIEVE,
"np",
"nfsphys",
- "%c = machine.name, %c = np.dir, %c = np.device, %c = text(np.status), %c = text(np.allocated), %c = text(np.size), %c = np.modtime, %c = text(np.modby), %c = np.modwith",
+ "machine.name, np.dir, np.device, text(np.status), text(np.allocated), text(np.size), np.modtime, text(np.modby), np.modwith",
ganf_fields,
9,
"machine.mach_id = np.mach_id",
RETRIEVE,
"np",
"nfsphys",
- "%c = machine.name, %c = np.dir, %c = np.device, %c = text(np.status), %c = text(np.allocated), %c = text(np.size), %c = np.modtime, %c = text(np.modby), %c = np.modwith",
+ "machine.name, np.dir, np.device, text(np.status), text(np.allocated), text(np.size), np.modtime, text(np.modby), np.modwith",
gnfp_fields,
9,
- "np.mach_id = %d and np.dir = \"%s\" and machine.mach_id = np.mach_id",
+ "np.mach_id = %d and np.dir = '%s' and machine.mach_id = np.mach_id",
2,
&gnfp_validate,
},
APPEND,
"np",
"nfsphys",
- "nfsphys_id = values.value, mach_id = %i4, dir = %c, device = %c, status = int4(%c), allocated = int4(%c), size = int4(%c)",
+ "(nfsphys_id, mach_id, dir, device, status, allocated, size) VALUES (values_tbl.value, %d, '%s', '%s', %s, %s, %s)",
ganf_fields,
6,
- "values.name = \"nfsphys_id\"",
+ "values_tbl.name = 'nfsphys_id'",
0,
&anfp_validate,
},
UPDATE,
"np",
"nfsphys",
- "device = %c, status = int4(%c), allocated = int4(%c), size = int4(%c)",
+ "SET device = '%s', status = '%s', allocated = %s, size = %s",
gnfp_fields,
4,
- "np.mach_id = %d and np.dir = \"%s\"",
+ "np.mach_id = %d and np.dir = '%s'",
2,
&anfp_validate,
},
UPDATE,
"np",
"nfsphys",
- "allocated = np.allocated + int4(%c)",
+ "SET np.allocated = np.allocated + %s",
dnfp_fields,
1,
- "np.mach_id = %d and np.dir = \"%s\"",
+ "np.mach_id = %d and np.dir = '%s'",
2,
&anfp_validate,
},
(char *)0,
dnfp_fields,
0,
- "np.mach_id = %d and np.dir = \"%s\"",
+ "np.mach_id = %d and np.dir = '%s'",
2,
&dnfp_validate,
},
RETRIEVE,
"q",
QUOTA,
- "%c = filesys.label, %c = q.type, %c = text(q.entity_id), %c = text(q.quota), %c = text(q.phys_id), %c = machine.name, %c = q.modtime, %c = text(q.modby), %c = q.modwith",
+ "filesys.label, q.type, text(q.entity_id), text(q.quota), text(q.phys_id), machine.name, q.modtime, text(q.modby), q.modwith",
gqot_fields,
9,
- "filesys.label = \"%s\" and q.type = \"%s\" and q.entity_id = %d and filesys.filsys_id = q.filsys_id and machine.mach_id = filesys.mach_id",
+ "filesys.label = '%s' and q.type = '%s' and q.entity_id = %d and filesys.filsys_id = q.filsys_id and machine.mach_id = filesys.mach_id",
3,
&gqot_validate,
},
RETRIEVE,
"q",
QUOTA,
- "%c = filesys.label, %c = q.type, %c = text(q.entity_id), %c = text(q.quota), %c = text(q.phys_id), %c = machine.name, %c = q.modtime, %c = text(q.modby), %c = q.modwith",
+ "filesys.label, q.type, text(q.entity_id), text(q.quota), text(q.phys_id), machine.name, q.modtime, text(q.modby), q.modwith",
gqbf_fields,
9,
- "filesys.label = \"%s\" and filesys.filsys_id = q.filsys_id and machine.mach_id = filesys.mach_id",
+ "filesys.label = '%s' and filesys.filsys_id = q.filsys_id and machine.mach_id = filesys.mach_id",
1,
&gqbf_validate,
},
APPEND,
"q",
QUOTA,
- "filsys_id = filesys.filsys_id, type = %c, entity_id = %i4, quota = int4(%c), phys_id = filesys.phys_id",
+ "(filsys_id, type, entity_id, quota, phys_id) VALUES (filesys.filsys_id, '%s', %d, %s, filesys.phys_id)",
aqot_fields,
3,
"filesys.filsys_id = %d",
UPDATE,
"q",
QUOTA,
- "quota = int4(%c)",
+ "SET quota = %s",
aqot_fields,
1,
- "q.filsys_id = %d and q.type = \"%s\" and q.entity_id = %d",
+ "q.filsys_id = %d and q.type = '%s' and q.entity_id = %d",
3,
&uqot_validate,
},
(char *)0,
aqot_fields,
0,
- "q.filsys_id = %d and q.type = \"%s\" and q.entity_id = %d",
+ "q.filsys_id = %d and q.type = '%s' and q.entity_id = %d",
3,
&dqot_validate,
},
RETRIEVE,
"q",
QUOTA,
- "%c = filesys.label, %c = users.login, %c = text(q.quota), %c = text(q.phys_id), %c = machine.name, %c = q.modtime, %c = text(q.modby), %c = q.modwith",
+ "filesys.label, users.login, text(q.quota), text(q.phys_id), machine.name, q.modtime, text(q.modby), q.modwith",
gnfq_fields,
8,
- "filesys.label = \"%s\" and q.type = \"USER\" and q.entity_id = users.users_id and filesys.filsys_id = q.filsys_id and machine.mach_id = filesys.mach_id and users.login = \"%s\"",
+ "filesys.label = '%s' and q.type = 'USER' and q.entity_id = users.users_id and filesys.filsys_id = q.filsys_id and machine.mach_id = filesys.mach_id and users.login = '%s'",
2,
&gnfq_validate,
},
RETRIEVE,
"q",
QUOTA,
- "%c = filesys.label, %c = users.login, %c = text(q.quota), %c = nfsphys.dir, %c = machine.name",
+ "filesys.label, users.login, text(q.quota), nfsphys.dir, machine.name",
gnqp_fields,
5,
- "nfsphys.mach_id = %d and nfsphys.dir = \"%s\" and q.phys_id = nfsphys.nfsphys_id and filesys.filsys_id = q.filsys_id and q.type = \"USER\" and users.users_id = q.entity_id and machine.mach_id = nfsphys.mach_id",
+ "nfsphys.mach_id = %d and nfsphys.dir = '%s' and q.phys_id = nfsphys.nfsphys_id and filesys.filsys_id = q.filsys_id and q.type = 'USER' and users.users_id = q.entity_id and machine.mach_id = nfsphys.mach_id",
2,
&VDmach,
},
APPEND,
"q",
QUOTA,
- "filsys_id = filesys.filsys_id, type = \"USER\", entity_id = %i4, quota = int4(%c), phys_id = filesys.phys_id",
+ "(filsys_id, type, entity_id, quota, phys_id) VALUES (filesys.filsys_id, 'USER', %d, %s, filesys.phys_id)",
anfq_fields,
2,
"filesys.filsys_id = %d",
UPDATE,
"q",
QUOTA,
- "quota = int4(%c)",
+ "SET quota = %s",
anfq_fields,
1,
- "q.filsys_id = %d and q.type = \"USER\" and q.entity_id = %d",
+ "q.filsys_id = %d and q.type = 'USER' and q.entity_id = %d",
2,
&unfq_validate,
},
(char *)0,
anfq_fields,
0,
- "q.filsys_id = %d and q.type = \"USER\" and q.entity_id = %d",
+ "q.filsys_id = %d and q.type = 'USER' and q.entity_id = %d",
2,
&dnfq_validate,
},
RETRIEVE,
"l",
LIST,
- "%c = l.name",
+ "list.name",
glin_fields,
1,
- "l.name = \"%s\" and l.list_id != 0",
+ "list.name = '%s' and list.list_id != 0",
1,
0
},
"alis",
APPEND,
"l",
- LIST,
- "list_id=values.value, name=%c, active=int1(%c), public=int1(%c), hidden=int1(%c), maillist=int1(%c), group=int1(%c), gid=int2(%c), acl_type=%c, acl_id=%i4, desc=%c",
+ LIST,
+ "(list_id, name, active, public, hidden, maillist, isgroup, gid, acl_type, acl_id, desc) VALUES (values_tbl.value,'%s',%s,%s,%s,%s,%s,%s,'%s',%d,'%s')",
alis_fields,
10,
- "values.name = \"list_id\"",
+ "values_tbl.name = 'list_id'",
0,
&alis_validate,
},
UPDATE,
"l",
LIST,
- "name=%c, active=int1(%c), public=int1(%c), hidden=int1(%c), maillist=int1(%c), group=int1(%c), gid=int2(%c), acl_type=%c, acl_id=%i4, desc=%c",
+ "SET name='%s', active=%s, public=%s, hidden=%s, maillist=%s, isgroup=%s, gid=%s, acl_type='%s', acl_id=%d, desc='%s'",
ulis_fields,
10,
- "l.list_id = %d",
+ "list.list_id = %d",
1,
&ulis_validate,
},
(char *)0,
dlis_fields,
0,
- "l.list_id = %d",
+ "list.list_id = %d",
1,
&dlis_validate,
},
RETRIEVE,
"z",
"zephyr",
- "%c = z.class, %c = z.xmt_type, %c = text(z.xmt_id),%c = z.sub_type, %c = text(z.sub_id),%c = z.iws_type, %c = text(z.iws_id),%c = z.iui_type, %c = text(z.iui_id), %c=z.modtime, %c = text(z.modby), %c = z.modwith",
+ "z.class, z.xmt_type, text(z.xmt_id),z.sub_type, text(z.sub_id),z.iws_type, text(z.iws_id),z.iui_type, text(z.iui_id), z.modtime, text(z.modby), z.modwith",
gzcl_fields,
12,
- "z.class = \"%s\"",
+ "z.class = '%s'",
1,
&gzcl_validate,
},
APPEND,
"z",
"zephyr",
- "class = %c, xmt_type = %c, xmt_id = %i4, sub_type = %c, sub_id = %i4, iws_type = %c, iws_id = %i4, iui_type = %c, iui_id = %i4",
+ "(class, xmt_type, xmt_id, sub_type, sub_id, iws_type, iws_id, iui_type, iui_id) VALUES ('%s','%s',%d,'%s',%d,'%s',%d,'%s',%d)",
azcl_fields,
9,
0,
UPDATE,
"z",
"zephyr",
- "class = %c, xmt_type = %c, xmt_id = %i4, sub_type = %c, sub_id = %i4, iws_type = %c, iws_id = %i4, iui_type = %c, iui_id = %i4",
+ "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,
- "z.class = \"%s\"",
+ "z.class = '%s'",
1,
&uzcl_validate,
},
0,
uzcl_fields,
0,
- "z.class = \"%s\"",
+ "z.class = '%s'",
1,
&dzcl_validate,
},
RETRIEVE,
"s",
"services",
- "%c = s.name, %c = s.protocol, %c = text(s.port), %c = s.desc, %c = s.modtime, %c = text(s.modby), %c = s.modwith",
+ "s.name, s.protocol, text(s.port), s.desc, s.modtime, text(s.modby), s.modwith",
gsvc_fields,
7,
- "s.name = \"%s\"",
+ "s.name = '%s'",
1,
&VDsortf,
},
APPEND,
"s",
"services",
- "name = %c, protocol = %c, port = int2(%c), desc = %c",
+ "(name, protocol, port, desc) VALUES ('%s','%s',%s,'%s')",
asvc_fields,
4,
(char *)0,
0,
asvc_fields,
0,
- "s.name = \"%s\"",
+ "s.name = '%s'",
1,
&asvc_validate,
},
RETRIEVE,
"p",
"printcap",
- "%c = p.name, %c = machine.name, %c = p.dir, %c = p.rp, %c = text(p.quotaserver), %c = text(p.auth), %c = text(p.price), %c = p.comments, %c = p.modtime, %c = text(p.modby), %c = p.modwith",
+ "p.name, machine.name, p.dir, p.rp, text(p.quotaserver), text(p.auth), text(p.price), p.comments, p.modtime, text(p.modby), p.modwith",
gpce_fields,
11,
- "p.name = \"%s\" and machine.mach_id = p.mach_id",
+ "p.name = '%s' and machine.mach_id = p.mach_id",
1,
&gpce_validate,
},
APPEND,
"p",
"printcap",
- "name = %c, mach_id = %i4, dir = %c, rp = %c, quotaserver = %i4, auth = int1(%c), price = int2(%c), comments = %c",
+ "(name, mach_id, dir, rp, quotaserver, auth, price, comments) VALUES ('%s',%d,'%s','%s',%d,%s,%s,'%s')",
apce_fields,
8,
0,
0,
apce_fields,
0,
- "p.name = \"%s\"",
+ "p.name = '%s'",
1,
&dpce_validate,
},
RETRIEVE,
"p",
"printcap",
- "%c = p.name, %c = machine.name, %c = p.dir, %c = p.rp, %c = p.comments, %c = p.modtime, %c = text(p.modby), %c = p.modwith",
+ "p.name, machine.name, p.dir, p.rp, p.comments, p.modtime, text(p.modby), p.modwith",
gpcp_fields,
8,
- "p.name = \"%s\" and machine.mach_id = p.mach_id",
+ "p.name = '%s' and machine.mach_id = p.mach_id",
1,
&VDsortf,
},
0,
apce_fields,
0,
- "p.name = \"%s\"",
+ "p.name = '%s'",
1,
&dpce_validate,
},
RETRIEVE,
"p",
"palladium",
- "%c = p.name, %c = text(p.ident), %c = machine.name, %c = p.modtime, %c = text(p.modby), %c = p.modwith",
+ "p.name, text(p.ident), machine.name, p.modtime, text(p.modby), p.modwith",
gpdm_fields,
6,
- "p.name = \"%s\" and machine.mach_id = p.mach_id",
+ "p.name = '%s' and machine.mach_id = p.mach_id",
1,
&VDsortf,
},
APPEND,
"p",
"palladium",
- "name = %c, ident = int4(%c), mach_id = %i4",
+ "(name, ident, mach_id) VALUES ('%s',%s,%d)",
apdm_fields,
3,
0,
0,
apdm_fields,
0,
- "p.name = \"%s\"",
+ "p.name = '%s'",
1,
&dpdm_validate,
},
RETRIEVE,
"a",
"alias",
- "%c = a.name, %c = a.type, %c = a.trans",
+ "a.name, a.type, a.trans",
gali_fields,
3,
- "a.name = \"%s\" and a.type = \"%s\" and a.trans = \"%s\"",
+ "a.name = '%s' and a.type = '%s' and a.trans = '%s'",
3,
0,
},
APPEND,
"a",
"alias",
- "name = %c, type = %c, trans = %c",
+ "(name, type, trans) VALUES ('%s', '%s', '%s')",
aali_fields,
3,
(char *)0,
(char *)0,
aali_fields,
0,
- "a.name = \"%s\" and a.type = \"%s\" and a.trans = \"%s\"",
+ "a.name = '%s' and a.type = '%s' and a.trans = '%s'",
3,
&dali_validate,
},
RETRIEVE,
"v",
"values",
- "%c = text(v.value)",
+ "text(v.value)",
gval_fields,
1,
- "v.name = \"%s\"",
+ "v.name = '%s'",
1,
&gval_validate,
},
"aval",
APPEND,
"v",
- "values",
- "name = %c, value = int4(%c)",
+ "values_tbl",
+ "(name, value) VALUES ('%s', %s)",
aval_fields,
2,
(char *)0,
"uval",
UPDATE,
"v",
- "values",
- "value = int4(%c)",
+ "values_tbl",
+ "SET value = %s",
aval_fields,
1,
- "v.name = \"%s\"",
+ "v.name = '%s'",
1,
&aval_validate,
},
"dval",
DELETE,
"v",
- "values",
+ "values_tbl",
(char *)0,
dval_fields,
0,
- "v.name = \"%s\"",
+ "v.name = '%s'",
1,
&aval_validate,
},
RETRIEVE,
"tbs",
"tblstats",
- "%c = tbs.table, %c = text(tbs.retrieves), %c = text(tbs.appends), %c = text(tbs.updates), %c = text(tbs.deletes), %c = tbs.modtime",
+ "tbs.table, text(tbs.retrieves), text(tbs.appends), text(tbs.updates), text(tbs.deletes), tbs.modtime",
gats_fields,
6,
(char *)0,