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

Ensure CQ ID names can't clash #7080

Merged
merged 1 commit into from
Jul 28, 2016
Merged

Ensure CQ ID names can't clash #7080

merged 1 commit into from
Jul 28, 2016

Conversation

e-dard
Copy link
Contributor

@e-dard e-dard commented Jul 27, 2016

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

I noticed this when reviewing another PR. Given database foo: and CQ bar then the ID would become "foo::bar", which would clash with the case of database foo and CQ :bar --> foo::bar.

Instead we can use the control character for a unit separator.

@e-dard e-dard force-pushed the er-cq-delimiter branch 2 times, most recently from f2f1940 to e5df971 Compare July 28, 2016 14:59

// idDelimier is used as a delimiter when creating a unique name for a
// Continuous Query.
idDelimier = string(rune(31)) // unit separator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed the t in delimiter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐼

@benbjohnson
Copy link
Contributor

:shipit:

@e-dard e-dard merged commit a1c7d9c into master Jul 28, 2016
@e-dard e-dard deleted the er-cq-delimiter branch July 28, 2016 21:00
@timhallinflux timhallinflux added this to the 1.0.0 milestone Dec 20, 2016
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

4 participants