Allow numbers, dates, times as table names
This commit is contained in:
parent
f8562f1ccb
commit
020dbbe0c2
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ import (
|
||||||
|
|
||||||
func (p *Parser) parseName() (string, error) {
|
func (p *Parser) parseName() (string, error) {
|
||||||
|
|
||||||
_, lit, err := p.shouldBe(IDENT)
|
_, lit, err := p.shouldBe(IDENT, NUMBER, DOUBLE, DATE, TIME)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return string(""), &ParseError{Found: lit, Expected: []string{"name"}}
|
return string(""), &ParseError{Found: lit, Expected: []string{"name"}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue