Updated MANIFEST. Bumped version for release.
[cocanwiki.git] / scripts / lib / cocanwiki_create_host.ml
index cfc1819..b72b543 100644 (file)
@@ -1,7 +1,7 @@
 (* 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
@@ -33,7 +33,7 @@ let create_host dbh canonical_hostname hostnames template
                                   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