(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: rebuild_links.ml,v 1.2 2004/09/28 11:28:39 rich Exp $
+ * $Id: rebuild_links.ml,v 1.4 2005/11/23 11:32:13 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
(* Estimate how many sections we will have to process. *)
let sth =
dbh#prepare_cached
- "select count(c.id) from contents c, pages p
+ "select count(c.id)::int4 from contents c, pages p
where c.pageid = p.id
and p.hostid = ?
and p.url is not null
(* Finish off. *)
dbh#commit ();
- print_string r template_done#to_string
+ ignore (print_string r template_done#to_string)
let () =
register_script ~restrict:[CanManageSite] run