| head :: tail -> f head ^ sep ^ iter f sep tail
in
let pg_cols = iter (fun x -> x) ", " cols in
- let pg_msval v = iter P.quote ", " v in
+ let pg_msval v = iter (fun s, _ -> P.quote s) ", " v in
let pg_con (pat, col, v) =
if col <> "" then
- let f s = col ^ " ~ " ^ P.quote ("^" ^ s ^ "$") in
+ let f (s, _) = col ^ " ~ " ^ P.quote ("^" ^ s ^ "$") in
if pat then "(" ^ iter f " or " v ^ ")"
else match v with
- | [s] -> col ^ " = " ^ (P.quote s)
+ | [(s,_)] -> col ^ " = " ^ (P.quote s)
| v -> col ^ " in (" ^ pg_msval v ^ ")"
else "true"
in