summaryrefslogtreecommitdiff
path: root/lib/query/encoder.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/query/encoder.ml')
-rw-r--r--lib/query/encoder.ml14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/query/encoder.ml b/lib/query/encoder.ml
index 5e5f402..4c8d528 100644
--- a/lib/query/encoder.ml
+++ b/lib/query/encoder.ml
@@ -304,18 +304,18 @@ module DataToCaqtiValues = Map (struct
| Model.Data.None ->
(* The provider does not have any value for this property, use the
default value*)
- Model.Typ.default_value content_type
+ Model.Types.default_value content_type
| Model.Data.V (field_type', value) -> (
(* For the single-column fields handled here, the DB and code
representations coincide — match the field type to prove it *)
- let check (type x) (ct : (x, x, Model.target) Model.Typ.t) : x =
- match Model.Typ.eq_ocaml ct field_type' with
+ let check (type x) (ct : (x, x, Model.target) Model.Types.t) : x =
+ match Model.Types.eq_ocaml ct field_type' with
| Some Equal -> value
| None -> raise TypeMismatch
in
match content_type with
- | Model.Typ.MultiReference _ -> raise TypeMismatch
- | Model.Typ.Text as ct -> check ct
- | Model.Typ.Integer as ct -> check ct
- | Model.Typ.MonoReference _ as ct -> check ct))
+ | Model.Types.MultiReference _ -> raise TypeMismatch
+ | Model.Types.Text as ct -> check ct
+ | Model.Types.Integer as ct -> check ct
+ | Model.Types.MonoReference _ as ct -> check ct))
end)