Skip to content

Commit

Permalink
feat: mariadb supports limit in group_concat
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-Q committed Jun 23, 2023
1 parent 9b161c9 commit bb372ec
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1937,17 +1937,15 @@ module.exports = grammar({
$.object_reference,
choice(
// default invocation
seq(
paren_list(
seq(
optional($.keyword_distinct),
field(
'parameter',
$.term,
),
optional($.order_by)
)
),
paren_list(
seq(
optional($.keyword_distinct),
field(
'parameter',
$.term,
),
optional($.order_by)
)
),
// _aggregate_function, e.g. group_concat
seq(
Expand All @@ -1959,6 +1957,7 @@ module.exports = grammar({
choice($.keyword_separator, ','),
alias($._literal_string, $.literal)
)),
optional($.limit),
')',
),
),
Expand Down

0 comments on commit bb372ec

Please sign in to comment.