[Bug 28029] New: Add ability to use OFFSET in SQL reports
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28029 Bug ID: 28029 Summary: Add ability to use OFFSET in SQL reports Change sponsored?: --- Product: Koha Version: 20.05 Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Reports Assignee: koha-bugs@lists.koha-community.org Reporter: joe@flo.org QA Contact: testopia@bugs.koha-community.org As far as I can tell, you can't use offset [# to offset] or the abbreviated limit [# to offset], [# to limit] shorthand to offset your results in Koha's SQL reports. These features are available in MySQL and Mariadb, so it would be nice if you could use one of them on the front end. Here are two simple examples that don't work: select borrowernumber from borrowers limit 10, 10 select borrowernumber from borrowers limit 10 offset 10 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28029 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wizzyrea@gmail.com --- Comment #1 from Liz Rea <wizzyrea@gmail.com> --- Noting this feature is available as of mariadb 10.6. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28029 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |trivial Version|20.05 |master --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- It looks like the MariaDB version on ktd is too old to test this: 10.5.19-MariaDB-1:10.5.19+maria~ubu2004 The error I get indicates that the SQL statement was used as I entered it, but that the DBMS doesn't support it. So I think a change in Koha might not be needed: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '10 Joe, can you verify you were testing with 10.6 or later? MariaDB: https://mariadb.com/kb/en/select-offset-fetch/ MySQL seems to have had it for a while: https://dev.mysql.com/doc/refman/8.0/en/select.html https://dev.mysql.com/doc/refman/5.7/en/select.html -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28029 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I believe this was a DBMS version related problem. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org