Skip to content

Commit 4214a29

Browse files
committed
Fix COUNT(*)
1 parent d2ddcba commit 4214a29

File tree

5 files changed

+64842
-64228
lines changed

5 files changed

+64842
-64228
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ module.exports = grammar({
10081008
'(',
10091009
seq(
10101010
optional($.keyword_distinct),
1011-
field('parameter', $._expression),
1011+
field('parameter', choice($._expression, $.all_fields)),
10121012
),
10131013
')',
10141014
),

src/grammar.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4303,8 +4303,17 @@
43034303
"type": "FIELD",
43044304
"name": "parameter",
43054305
"content": {
4306-
"type": "SYMBOL",
4307-
"name": "_expression"
4306+
"type": "CHOICE",
4307+
"members": [
4308+
{
4309+
"type": "SYMBOL",
4310+
"name": "_expression"
4311+
},
4312+
{
4313+
"type": "SYMBOL",
4314+
"name": "all_fields"
4315+
}
4316+
]
43084317
}
43094318
}
43104319
]

src/node-types.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,10 @@
13601360
"multiple": false,
13611361
"required": true,
13621362
"types": [
1363+
{
1364+
"type": "all_fields",
1365+
"named": true
1366+
},
13631367
{
13641368
"type": "binary_expression",
13651369
"named": true

0 commit comments

Comments
 (0)