(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: create_contact.ml,v 1.3 2005/03/31 14:24:04 rich Exp $
+ * $Id: create_contact.ml,v 1.4 2005/11/17 10:14:42 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
values (?, ?, ?)" in
sth#execute [`Int hostid; `String name; `String subject];
- let contactid = sth#serial "contacts_id_seq" in
+ let contactid = Int64.to_int (sth#serial "contacts_id_seq") in
let sth = dbh#prepare_cached "insert into contact_emails (contactid, email)
values (?, ?)" in
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_page_css.ml,v 1.16 2005/03/31 14:24:04 rich Exp $
+ * $Id: edit_page_css.ml,v 1.17 2005/11/17 10:14:42 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
sth#execute [`Int hostid; `String page; title; description;
creation_date; logged_ip; logged_user; redirect; css ];
- let pageid = sth#serial "pages_id_seq" in
+ let pageid = Int64.to_int (sth#serial "pages_id_seq") in
let sth = dbh#prepare_cached "insert into contents (pageid, ordering,
sectionname, content, divname)
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: cocanwiki_create_host.ml,v 1.1 2004/10/21 11:42:05 rich Exp $
+ * $Id: cocanwiki_create_host.ml,v 1.2 2005/11/17 10:14:43 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
values (?)" in
sth#execute [`String canonical_hostname];
- let hostid = sth#serial "hosts_id_seq" in
+ let hostid = Int64.to_int (sth#serial "hosts_id_seq") in
let sth = dbh#prepare_cached "insert into hostnames (hostid, name)
values (?, ?)" in
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: cocanwiki_pages.ml,v 1.3 2004/11/22 11:07:32 rich Exp $
+ * $Id: cocanwiki_pages.ml,v 1.4 2005/11/17 10:14:43 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
`String model.description; logged_ip; logged_user;
redirect];
- let pageid = sth#serial "pages_id_seq" in
+ let pageid = Int64.to_int (sth#serial "pages_id_seq") in
(* Create the page contents. *)
let sth = dbh#prepare_cached "insert into contents (pageid,
logged_user; redirect; css];
(* New page ID <> old page ID model.id. *)
- let pageid = sth#serial "pages_id_seq" in
+ let pageid = Int64.to_int (sth#serial "pages_id_seq") in
(* Create the page contents. *)
let sth = dbh#prepare_cached "insert into contents (pageid,
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: mail_import.ml,v 1.7 2004/12/01 13:55:55 rich Exp $
+ * $Id: mail_import.ml,v 1.8 2005/11/17 10:14:42 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
message_date) values (?, ?, ?, ?)" in
sth#execute [`Int hostid; `String subject; `String inet_message_id;
`Timestamp (date, time)];
- let msgid = sth#serial "messages_id_seq" in
+ let msgid = Int64.to_int (sth#serial "messages_id_seq") in
let sth =
dbh#prepare_cached
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: restore.ml,v 1.16 2004/11/01 12:57:53 rich Exp $
+ * $Id: restore.ml,v 1.17 2005/11/17 10:14:42 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
sth#execute [`Int hostid; `String page; title; description;
creation_date; logged_ip; logged_user; redirect; css ];
- let pageid = sth#serial "pages_id_seq" in
+ let pageid = Int64.to_int (sth#serial "pages_id_seq") in
let sth = dbh#prepare_cached "insert into contents (pageid, ordering,
sectionname, content, divname)
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: signup.ml,v 1.7 2005/03/31 14:24:04 rich Exp $
+ * $Id: signup.ml,v 1.8 2005/11/17 10:14:42 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
values (?, ?, ?, ?)" in
sth#execute [`String username; `String password; email; `Int hostid];
- let userid = sth#serial "users_id_seq" in
+ let userid = Int64.to_int (sth#serial "users_id_seq") in
(* Create a cookie. *)
let cookie = random_sessionid () in