* http://helm.cs.unibo.it/
*)
+open Printf
+
let debug = false
let debug_prerr = if debug then prerr_endline else ignore
let buri = buri ^ "/" in
let buri = HMysql.escape buri in
let obj_tbl = MetadataTypes.obj_tbl () in
- Printf.sprintf
- "SELECT source, h_occurrence FROM %s WHERE h_occurrence LIKE '%s%%'" obj_tbl buri
+ sprintf
+ "SELECT source, h_occurrence FROM %s WHERE h_occurrence LIKE '%s%%'"
+ obj_tbl buri
in
try
let rc = HMysql.exec (MatitaDb.instance ()) query in
with
exn -> raise exn (* no errors should be accepted *)
end
-
let safe_buri_of_suri suri =
try
MetadataTypes.sort_tbl (); MetadataTypes.obj_tbl();
MetadataTypes.count_tbl()]
end
+