]> matita.cs.unibo.it Git - helm.git/commitdiff
Fun patched.
authornatile <??>
Mon, 4 Nov 2002 19:05:52 +0000 (19:05 +0000)
committernatile <??>
Mon, 4 Nov 2002 19:05:52 +0000 (19:05 +0000)
helm/ocaml/mathql_interpreter/func.ml

index 26b4fa96c8fcfacd64df5a0983d5c3e4f649d6d6..8bc0c8d10d273cc8eb6d2908758406b348cd2c74 100644 (file)
@@ -38,9 +38,8 @@ let rec fun_ex tab = function
     [] -> []
   | s::tl -> let res =
              let c = pgc () in
-            let q = ("select objectName.uri from objectName where objectName.value = '" ^ s ^ "'") in
-(*          print_endline ("@@@@LA QUERY E': " ^ q); *)
-            pgresult_to_string_list (c#exec q)
+            let q = ("select " ^ tab ^ ".uri from " ^ tab ^ " where " ^ tab ^ ".value = '" ^ s ^ "'") in
+                    pgresult_to_string_list (c#exec q)
              in
              append (res,(fun_ex tab tl))
 ;;