From 52e2a57fca36f2702713730a0ebcf4b285d3bfc3 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 17 Jul 2021 16:51:34 -0700 Subject: [PATCH] Fix fetch helper --- CHANGELOG.md | 1 + src/honey/sql/helpers.cljc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c123e15..1556eff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * 2.0.next (gold) in progress * Address #332 by improving `:cross-join` documentation. + * Fix `fetch` helper. * 2.0.0-rc4 (for testing; 2021-07-17) * Fix #338 by adding `ONLY` to `:fetch`. diff --git a/src/honey/sql/helpers.cljc b/src/honey/sql/helpers.cljc index 486e76f..db76903 100644 --- a/src/honey/sql/helpers.cljc +++ b/src/honey/sql/helpers.cljc @@ -735,9 +735,9 @@ Produces: FETCH ? ONLY Parameters: 10" - {:arglists '([offset])} + {:arglists '([limit])} [& args] - (generic-1 :offset args)) + (generic-1 :fetch args)) (defn for "Accepts a lock strength, optionally followed by one or