From: natile Date: Mon, 4 Nov 2002 19:05:52 +0000 (+0000) Subject: Fun patched. X-Git-Tag: V_0_0_3~24 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=659c4859b3410653422e116c9baa940c99157660;p=helm.git Fun patched. --- diff --git a/helm/ocaml/mathql_interpreter/func.ml b/helm/ocaml/mathql_interpreter/func.ml index 26b4fa96c..8bc0c8d10 100644 --- a/helm/ocaml/mathql_interpreter/func.ml +++ b/helm/ocaml/mathql_interpreter/func.ml @@ -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)) ;;