Le Friday 22 Oct 2010 à 08:31:01 (+0200), Fabian Groffen a écrit :
On 22-10-2010 02:26:32 +0200, Guillaume Yziquel wrote:
Le Friday 22 Oct 2010 à 01:57:01 (+0200), Guillaume Yziquel a écrit :
values ('1920-12-01', 104.20, 104.20, 104.20, 104.20, 1049, 0); Asking: insert into indu (Date, Open, High, Low, Close, Volume, OI) values ('1920-13-01', 104.50, 104.50, 104.50, 104.50, 908, 0);
Stupid me: There's no such thing as a 13th month... Sorry for the bother.
I would have expected the server just to tell you this in the first case. Did the error not come up somehow, or does the OCaml binding currently not support the string exceptions from the server?
Well, it should: exception Error of (msg * string option) option let check_no_error ?null (dbh : mapi) x = let nn = match null with | None -> (dbh :> pointer) | Some n -> n in match error dbh nn with | Some MOK -> x | z -> raise (Error (match z with | None -> None | Some y -> Some (y, (error_str dbh)))) in the file: http://yziquel.homelinux.org/gitweb/?p=ocaml-monetdb5.git;a=blob;f=mapi.ml;h... However, I'm rereading that code, which I've been leaving aside for quite a few months. Will come back to that. Thanks. -- Guillaume Yziquel http://yziquel.homelinux.org