SQL Syntax error #26
MathiasWeisheit
started this conversation in
General
Replies: 2 comments 5 replies
-
According to our tests, the package should work. Maybe you're using another flavour or version of MySQL version that us. We'd accept a PR that fixes it for you if the code is not too complicated. |
Beta Was this translation helpful? Give feedback.
5 replies
-
can be closed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
$stats = SearchStartStats::query()->get();
Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(PARTITION BY yearweek(created_at, 3) ORDER BY
id
DESC) AS rn,stats_events
.' at line 1 (SQL: select ROW_NUMBER() OVER (PARTITION BY yearweek(created_at, 3) ORDER BYid
DESC) AS rn,stats_events
.*, yearweek(created_at, 3) as period fromstats_events
where (name
= SearchStartStats) andtype
= set andcreated_at
>= 2022-05-23 08:21:26 andcreated_at
< 2022-06-23 08:21:26)",Beta Was this translation helpful? Give feedback.
All reactions