Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 602d276

Browse files
committed
Allow spaces between a function name and args.
1 parent 6e7bf32 commit 602d276

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased][unreleased]
5+
### Fixed
6+
- Allow spaces between a function name and the argument list
7+
``` sql
8+
SELECT COUNT (*)
9+
FROM hats;
10+
```
511

612
## [v0.14.3] - 2016-03-28
713
### Fixed

src/grammar.pegjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ expression_list_rest
537537
{ return e; }
538538

539539
function_call "Function Call"
540-
= n:( name_unquoted ) sym_popen a:( function_call_args )? o sym_pclose
540+
= n:( name_unquoted ) o sym_popen a:( function_call_args )? o sym_pclose
541541
{
542542
return util.extend({
543543
'type': 'function',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SELECT MYFUNC(col, 1.2, 'str') AS "Super Func"
1+
SELECT MYFUNC (col, 1.2, 'str') AS "Super Func"

0 commit comments

Comments
 (0)