| s::tl -> let result =
let c = pgc () in
let qq = "select uri from registry where uri ~ '" ^ s ^ "' order by registry.uri asc" in
- print_endline qq ; flush stderr ;
let res = c#exec (qq) in
List.map (function uri -> (uri,[])) (pgresult_to_string_list res)
in
(List.fold_left (fun acc (uri,l) ->
let tv = pgresult_to_string (c#exec ("select id from registry where uri='" ^ uri ^ "'")) in
let qq = "select uri, position from t" ^ tv ^ " where prop_id='" ^ usek ^ "' order by uri asc" in
- print_endline ("@@@@LA QUERY:" ^ qq); flush stdout;
let res = c#exec qq in
(List.map
(function