X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Focaml%2Fmathql_interpreter%2Fdbconn.ml;h=d5db3125224aa2ee5d7e2dee3a4f714619101479;hb=f5925305f248ec424a4a4acbd5339424ccd5e9cd;hp=a6b1b2cce8351f15345a5bc6f01509762e31b852;hpb=61872e154b77378c203e4a9b179b4067cfe7f23b;p=helm.git diff --git a/helm/ocaml/mathql_interpreter/dbconn.ml b/helm/ocaml/mathql_interpreter/dbconn.ml index a6b1b2cce..d5db31252 100644 --- a/helm/ocaml/mathql_interpreter/dbconn.ml +++ b/helm/ocaml/mathql_interpreter/dbconn.ml @@ -33,9 +33,9 @@ *) open MathQL;; -exception MQInvalidURI of string -exception MQConnectionFailed of string -exception MQInvalidConnection of string +exception DBInvalidURI of string +exception DBConnectionFailed of string +exception DBInvalidConnection of string @@ -58,7 +58,7 @@ let conn = ref None;; *) let pgc () = match !conn with - None -> raise (MQInvalidConnection connection_param) + None -> raise (DBInvalidConnection connection_param) | Some c -> c ;; @@ -72,7 +72,7 @@ let init () = try ( conn := Some (new Postgres.connection connection_param); ) with - _ -> raise (MQConnectionFailed ("init: " ^ connection_param)) + _ -> raise (DBConnectionFailed ("init: " ^ connection_param)) ;; (*