diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-18 20:24:52 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-18 21:57:48 +0100 |
| commit | 62123e577ee5d4066d53f8ad7e5ac3d2eb190430 (patch) | |
| tree | f569686630681a9eceb2685f69b55fe5a2bac17c /test/parent.ml | |
| parent | 7087a0c2c84e796e474784cbd28d4a4e574cf2c0 (diff) | |
Securized the queries in the database with a dedicated type for the Identifiers
Diffstat (limited to 'test/parent.ml')
| -rw-r--r-- | test/parent.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parent.ml b/test/parent.ml index 232de34..6e07c90 100644 --- a/test/parent.ml +++ b/test/parent.ml @@ -33,10 +33,11 @@ let exec : string list -> t = function let+ configuration = Configuration.Read_conf.read_string_conf stdin in let ( let+ ) opt cont = Option.map cont opt in let+ subcontent = - Configuration.Ast.get_content configuration subcontent_id + Configuration.Ast.get_content configuration + (Model.Identifier.of_string subcontent_id) in let+ v = !parent subcontent in - Model.Content.id v + Model.Identifier.to_string (Model.Content.id v) in parent_id | _ -> failwith "Invalid arguments" |
