aboutsummaryrefslogtreecommitdiffstats
path: root/lib/disk.ml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2025-05-04 02:19:25 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2025-05-04 02:19:25 -0300
commit431c2d9fc5efa2e4aabc1c2da8d9f50fb986f287 (patch)
tree506b1c32a09385136cab8668bbbb62ac4034cc51 /lib/disk.ml
parent8b0f8625d9d37fc0b136c8f941ee3e64e25334e7 (diff)
downloadSakura-431c2d9fc5efa2e4aabc1c2da8d9f50fb986f287.tar.gz
Sakura-431c2d9fc5efa2e4aabc1c2da8d9f50fb986f287.zip
fix attribute name on read
Diffstat (limited to '')
-rw-r--r--lib/disk.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/disk.ml b/lib/disk.ml
index c28e07f..cfa2a89 100644
--- a/lib/disk.ml
+++ b/lib/disk.ml
@@ -406,7 +406,7 @@ module Command = struct
type return =
| ComputedHash of string
- | Read of (int64 * Executor.relational_literal list) list
+ | Read of (int64 * (string*Executor.relational_literal) list) list
| Nothing
[@@deriving show]
@@ -432,7 +432,7 @@ module Command = struct
let references: Executor.references =
let relation_name::[attribute_name] =
String.split_on_char '/' command.attribute
- in
+ [@@warning "-8"] in
Executor.StringMap.update relation_name
(function
| Some entity ->
@@ -468,13 +468,13 @@ module Command = struct
| None -> Executor.IntMap.empty
in
- let content =
+ let content: (int64 * (string*Executor.relational_literal) list) list =
Executor.IntMap.fold
(fun key elems acc ->
(key,
List.map
(fun (location, type', attribute_name) ->
- Executor.read_location ~hash:location locations type')
+ (attribute_name, Executor.read_location ~hash:location locations type'))
elems)
:: acc)
entities []