X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fhmysql%2FhSqlite3.ml;h=707b482bc4d3cb5f76469324a8233d2495a272e9;hb=2577baa7d96aa60bea61e6339174e8e67a1b337b;hp=c6ba66c2e3f52f217f53daf90c343edd7a93d781;hpb=eca38da92cd16d00e2e25477650c91eee6965b9f;p=helm.git diff --git a/helm/software/components/hmysql/hSqlite3.ml b/helm/software/components/hmysql/hSqlite3.ml index c6ba66c2e..707b482bc 100644 --- a/helm/software/components/hmysql/hSqlite3.ml +++ b/helm/software/components/hmysql/hSqlite3.ml @@ -103,7 +103,7 @@ let quick_connect else db_name in - HExtlib.mkdir (Filename.dirname db_open); + HExtlib.mkdir (Filename.dirname db_to_open); let db = Sqlite3.db_open db_to_open in (* attach the REGEX function *) Sqlite3.create_fun2 db "REGEXP" @@ -118,7 +118,8 @@ let quick_connect else Sqlite3.Data.INT 0L | _ -> raise (Error "wrong types to 'REGEXP'") - with exn -> HLog.error (Printexc.to_string exn); raise exn); + with Sys.Break -> Sqlite3.Data.INT 0L + | exn -> HLog.error (Printexc.to_string exn); raise exn); Some db ;;