X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fhmysql%2FhSqlite3.ml;h=310893ac5af2d10589d86f291844d359aafbcd82;hb=a0b7db9844126ebcdf4b5dbb586514854cef5d93;hp=efec9c2b98ba4bb21ae98c95078dfa4c55c12e7e;hpb=36d84ee0f884c2a4efb77fccf052fba1d5843528;p=helm.git diff --git a/helm/software/components/hmysql/hSqlite3.ml b/helm/software/components/hmysql/hSqlite3.ml index efec9c2b9..310893ac5 100644 --- a/helm/software/components/hmysql/hSqlite3.ml +++ b/helm/software/components/hmysql/hSqlite3.ml @@ -114,11 +114,12 @@ let quick_connect | Sqlite3.Data.TEXT rex, Sqlite3.Data.TEXT s -> let r = Str.regexp rex in if Str.string_match r s 0 then - Sqlite3.Data.INT 1L + Sqlite3.Data.INT Int64.one else - Sqlite3.Data.INT 0L + Sqlite3.Data.INT Int64.zero | _ -> raise (Error "wrong types to 'REGEXP'") - with exn -> HLog.error (Printexc.to_string exn); raise exn); + with Sys.Break -> Sqlite3.Data.INT Int64.zero + | exn -> HLog.error (Printexc.to_string exn); raise exn); Some db ;;