Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow semicolons to trail database names in "use" #3356

Closed
wants to merge 2 commits into from

Conversation

timraymond
Copy link
Contributor

Prior to this commit, the "use" command treated trailing semicolons as
significant parts of the database name. This lead to a confusing user
experience since other parts of influxql treat the trailing semicolon as
a statement separator, or appear to ignore it. A typical use case looks
something like:

> show databases;
-- snip --
> use foo;

This commit trims off trailing semicolons from database names in "use"
commands if present to match user expectations.

Fixes #2258, where this appears to have been an underlying issue.

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

@timraymond
Copy link
Contributor Author

First time contributor here! I read the contribution guidelines, but it wasn't apparent if you folks wanted me to update the CHANGELOG or if that was something that you all handled. Also, the guidelines said to drop in the checkboxes, but I'm not sure if I should check off the relevant ones (I've signed the CLA).

@beckettsean
Copy link
Contributor

@timraymond thanks for the PR! Please do update the CHANGELOG, I'll ask a core member to review the PR

@beckettsean
Copy link
Contributor

@dgnorton can you validate this parser PR?

Prior to this commit, the "use" command treated trailing semicolons as
significant parts of the database name. This lead to a confusing user
experience since other parts of influxql treat the trailing semicolon as
a statement separator, or appear to ignore it. A typical use case looks
something like:

> show databases;
-- snip --
> use foo;

This commit trims off trailing semicolons from database names in "use"
commands if present to match user expectations.

Fixes influxdata#2258
@otoolep
Copy link
Contributor

otoolep commented Jul 17, 2015

+1 from me and @toddboom. Confirmed CLA has been signed.

@otoolep
Copy link
Contributor

otoolep commented Jul 17, 2015

Rebased here: #3364

@otoolep otoolep closed this Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants