module U = MQueryUtil
module I = MQueryInterpreter
module C = MQIConn
+module F = MQueryIO
let _ =
let t = U.start_time () in
end;
let rec aux () =
let t = U.start_time () in
- let r = I.execute handle (U.query_of_text ich) in
-(* U.text_of_result log r "\n";
-*) Printf.printf "mqitop: query: %s,%i\n" (U.stop_time t) (List.length r);
- flush stdout; aux()
+ let r = I.execute handle (F.query_of_text ich) in
+(* F.text_of_result log r "\n";
+*) Printf.eprintf "mqitop: query: %s,%i\n" (U.stop_time t) (List.length r);
+ flush stderr; aux()
in
begin try aux() with End_of_file -> () end;
C.close handle;
- Printf.printf "mqitop: done: %s\n" (U.stop_time t)
+ Printf.eprintf "mqitop: done: %s\n" (U.stop_time t)