FROM users u WHERE :qual;
beforec = 9;
} else if (!strcmp(table, "machine")) {
- EXEC SQL SELECT n.name, n.type INTO :barg0, :barg1 FROM machine m
+ EXEC SQL SELECT m.name, m.type INTO :barg0, :barg1 FROM machine m
WHERE :qual;
beforec = 2;
} else if (!strcmp(table, "cluster")) {
{
char buffer[2048], *name;
EXEC SQL BEGIN DECLARE SECTION;
+ char *type;
int id, i;
EXEC SQL END DECLARE SECTION;
struct iupdate *iu;
strcpy(aarg0, "?");
strcpy(aarg1, argv[1]);
strcpy(aarg2, "?");
- sprintf(buffer, "%s and fs.filsys_id = q.filsys_id", qual);
+ if (!strcmp(argv[1], "ANY"))
+ type = "NONE";
+ else
+ type = argv[1];
+ sprintf(buffer, "%s and fs.filsys_id = q.filsys_id and q.type = '%s'",
+ qual, type);
qual = buffer;
EXEC SQL SELECT CHAR(q.quota), fs.name INTO :aarg3, :aarg4
FROM quota q, filesys fs WHERE :qual;
cache = c;
}
EXEC SQL CLOSE inc;
+ EXEC SQL COMMIT WORK;
}
while (sq_remove_data(incremental_sq, &iu)) {