From 010ac872160bf21af42227971c086270e3ab2dd8 Mon Sep 17 00:00:00 2001
From: natile <??>
Date: Fri, 22 Nov 2002 17:59:20 +0000
Subject: [PATCH] Mathql_interpreter now using db helm_mowgli_new_schema.

---
 helm/ocaml/mathql_interpreter/diff.ml     | 4 ++--
 helm/ocaml/mathql_interpreter/relation.ml | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/helm/ocaml/mathql_interpreter/diff.ml b/helm/ocaml/mathql_interpreter/diff.ml
index b4e09196e..5cba32345 100644
--- a/helm/ocaml/mathql_interpreter/diff.ml
+++ b/helm/ocaml/mathql_interpreter/diff.ml
@@ -81,7 +81,7 @@ let rec diff_ex rs1 rs2 =
 
 
 
-
+(*
 let diff_ex l1 l2 =
  let before = Sys.time () in
  let res = diff_ex l1 l2 in
@@ -95,4 +95,4 @@ let diff_ex l1 l2 =
   flush stdout ;
   res
 ;;
-
+*)
diff --git a/helm/ocaml/mathql_interpreter/relation.ml b/helm/ocaml/mathql_interpreter/relation.ml
index 54f42a7e5..e75fdd032 100644
--- a/helm/ocaml/mathql_interpreter/relation.ml
+++ b/helm/ocaml/mathql_interpreter/relation.ml
@@ -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 
-- 
2.39.5