Skip to content

Commit

Permalink
Merge pull request #5186 from pires/5077-throw_parse_error
Browse files Browse the repository at this point in the history
Fixes #5077
  • Loading branch information
jsternberg committed Jan 8, 2016
2 parents 82e16a1 + 17c2a34 commit 8fc4cbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ With this release InfluxDB is moving to Go 1.5.
- [#5178](https://github.com/influxdb/influxdb/pull/5178): SHOW FIELD shouldn't consider VALUES to be valid. Thanks @pires
- [#5158](https://github.com/influxdb/influxdb/pull/5158): Fix panic when writing invalid input to the line protocol.
- [#5264](https://github.com/influxdata/influxdb/pull/5264): Fix panic: runtime error: slice bounds out of range
- [#5186](https://github.com/influxdata/influxdb/pull/5186): Fix database creation with retention statement parsing. Fixes [#5077](https://github.com/influxdb/influxdb/issues/5077). Thanks @pires

## v0.9.6 [2015-12-09]

Expand Down
4 changes: 3 additions & 1 deletion influxql/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,9 @@ func (p *Parser) parseCreateDatabaseStatement() (*CreateDatabaseStatement, error

// Look for "NAME"
var rpName string = "default" // default is default
if err := p.parseTokens([]Token{NAME}); err == nil {
if err := p.parseTokens([]Token{NAME}); err != nil {
p.unscan()
} else {
rpName, err = p.parseIdent()
if err != nil {
return nil, err
Expand Down

0 comments on commit 8fc4cbe

Please sign in to comment.