let pg_query h table cols ct cfl =
let exec q =
- if C.set h C.Log then C.log h (q ^ "\n");
+ if C.set h C.Queries then C.log h (q ^ "\n");
P.exec (C.pgc h) q
in
let rec iter f sep = function
let t = P.start_time () in
let r = MQIProperty.exec h q1 subj cons_true cons_false exp in
let s = P.stop_time t in
- if C.set h C.Stat then
+ if C.set h C.Times then
C.log h (Printf.sprintf "Property: %s,%i\n" s (U.count r));
c, r
| M.Select (i, x, y) ->
in
let c = {svars = []; avars = []; groups = []} in
let t = P.start_time () in
+ if C.set h C.Source then F.text_of_query (C.log h) "\n" x;
let _, r = eval_query c x in
+ if C.set h C.Result then F.text_of_result (C.log h) "\n" r;
let s = P.stop_time t in
- if C.set h C.Stat then
+ if C.set h C.Times then
C.log h (Printf.sprintf "MQIExecute: %s,%s\n" s
(C.string_of_flags (C.flags h)));
r
let log_src e o x =
let t = P.start_time () in o.L.s_query x;
let s = P.stop_time t in
- if C.set e.L.conn C.Stat then o.L.s_out (Printf.sprintf "Log source: %s\n" s);
+ if C.set e.L.conn C.Times then o.L.s_out (Printf.sprintf "Log source: %s\n" s);
e.L.eval x
in
let log_res e o x =
let s = e.L.eval x in
let t = P.start_time () in o.L.s_result s;
let r = P.stop_time t in
- if C.set e.L.conn C.Stat then o.L.s_out (Printf.sprintf "Log: %s\n" r); s
+ if C.set e.L.conn C.Times then o.L.s_out (Printf.sprintf "Log: %s\n" r); s
in
let txt_log o =
if xml then o.L.s_out "xml ";