(* 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