diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-04-27 23:29:57 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-04-27 23:29:57 -0300 |
| commit | 4fdf3392868c72ff4c33b70d165a177e97f2fece (patch) | |
| tree | 4eebfc260c890ea56d59f874cdfa0c9b1f55cd98 /lib/session.ml | |
| parent | 97960adb8426e5270fe16b027e82a2c61674f821 (diff) | |
| download | Sakura-4fdf3392868c72ff4c33b70d165a177e97f2fece.tar.gz Sakura-4fdf3392868c72ff4c33b70d165a177e97f2fece.zip | |
Format
Diffstat (limited to 'lib/session.ml')
| -rw-r--r-- | lib/session.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/session.ml b/lib/session.ml index a58d00b..a4aef9d 100644 --- a/lib/session.ml +++ b/lib/session.ml @@ -54,11 +54,11 @@ let fetch (reg : t) ~(id : string) ~(limit : int) : abnormally. When fetch gains a richer return type this arm should surface the error message instead. *) | Generator.Error _ -> (List.rev acc, gen, pos, false) - | Generator.Value (t, next) -> begin - match t with + | Generator.Value (t, next) -> + begin match t with | Tuple.Materialized m -> go next (pos + 1) (m :: acc) (count + 1) | Tuple.NonMaterialized _ -> go next (pos + 1) acc count - end + end in let rows, gen', pos', has_more = go cur.generator cur.position [] 0 in cur.generator <- gen'; |
