]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/relation.ml
Mathql_interpreter now using db helm_mowgli_new_schema.
[helm.git] / helm / ocaml / mathql_interpreter / relation.ml
index 54f42a7e5b3f0d9350685412249e4970817bc366..e75fdd032d5ed2254520aa6f970b5c5439ed39bb 100644 (file)
@@ -55,7 +55,8 @@ let relation_ex inv rop path rset attl =
   let rset_list =  (* lista di singoletti:resource_set di un elemento *)
   (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, context from t" ^ tv ^ " where prop_id='" ^ usek ^ "' order by uri asc" 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