]> matita.cs.unibo.it Git - helm.git/commitdiff
fix_escaping
authorEnrico Tassi <enrico.tassi@inria.fr>
Wed, 1 Jun 2005 14:40:03 +0000 (14:40 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Wed, 1 Jun 2005 14:40:03 +0000 (14:40 +0000)
helm/matita/matitaDb.ml

index aef37a2d0bee52f43f54c0374361073cdceb4f36..d4f5d01b1979246528a51eee128d46e4e175d214 100644 (file)
@@ -138,7 +138,8 @@ let remove_uri uri =
   [obj_tbl;sort_tbl;rel_tbl;name_tbl;(*conclno_tbl;conclno_hyp_tbl*)count_tbl];
   (* and now the debug job *)  
   let dbg_q = 
-    sprintf "SELECT source FROM %s WHERE h_occurrence LIKE '%s%%'" obj_tbl suri
+    sprintf "SELECT source FROM %s WHERE h_occurrence LIKE '%s%%'" obj_tbl
+    (Mysql.escape suri)
   in
   try 
     let rc = Mysql.exec dbd dbg_q in