]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/pattern.ml
MQueryInterpreter: interface updated
[helm.git] / helm / ocaml / mathql_interpreter / pattern.ml
index 9809552a034c64d55373c3dfcd771157409b5b3c..5dcb8a585dfee96099f4636396a42ce571851ee0 100644 (file)
@@ -23,7 +23,6 @@
  * http://www.cs.unibo.it/helm/.
  *)
 
-open Dbconn;;
 open Utility;;
 
 let cat l1 l2 =
@@ -33,11 +32,11 @@ let cat l1 l2 =
         l1 @ l2
 ;;
 
-let rec pattern_ex l =
+let rec pattern_ex handle l =
   match l with
      [] -> []
    | s::tl -> let result = 
-             let c = pgc () in
+             let c = MQIConn.pgc handle in
              let quoted_s =
               Str.global_substitute (Str.regexp "'")
                (function _ -> "\\'") s in
@@ -49,6 +48,6 @@ let rec pattern_ex l =
              done*)
 
             in
-            cat result (pattern_ex tl)
+            cat result (pattern_ex handle tl)
 ;;