Allow numbers, dates, times as table names

This commit is contained in:
Tobie Morgan Hitchcock 2016-09-07 16:58:25 +01:00
parent f8562f1ccb
commit 020dbbe0c2

View file

@ -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"}}
} }