]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/filter_auto.ml
Nuova implementazione di Auto "breadth-first".
[helm.git] / helm / ocaml / tactics / filter_auto.ml
index 6fae7b7377aa0c1f88794e19a75eb6b3c477be56..73eaed638c4aee767a317f4431c3bf246fefa774 100644 (file)
@@ -32,8 +32,10 @@ let main_conclusion = "'http://www.cs.unibo.it/helm/schemas/schema-helm#MainConc
 
 let in_conclusion = "'http://www.cs.unibo.it/helm/schemas/schema-helm#InConclusion'" ;;
 
+let escape = Str.global_replace (Str.regexp_string "\'") "\\'";;
 
 let hyp_const (conn:Mysql.dbd) uri =
+  let uri = escape uri in
   (*query to obtain all the constants in the hypothesis of the theorem*)
   let query =
      "select h_occurrence from refObj where source='"^uri^