Updated MANIFEST. Bumped version for release.
[cocanwiki.git] / scripts / delete_contact.ml
index cfff4a2..563bc02 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: delete_contact.ml,v 1.2 2004/09/23 11:56:47 rich Exp $
+ * $Id: delete_contact.ml,v 1.3 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
@@ -45,7 +45,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
 
   (* Need to check the contact emails all belong to this host. *)
   let qs = Dbi.placeholders (List.length ids) in
-  let sth = dbh#prepare_cached ("select count(*) from contacts
+  let sth = dbh#prepare_cached ("select count(*)::int4 from contacts
                                   where hostid = ? and id in " ^ qs) in
   sth#execute (`Int hostid :: (List.map (fun id -> `Int id) ids));