Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Use quote_ident() for database names in queries #395

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

cadnce
Copy link
Contributor

@cadnce cadnce commented Dec 6, 2016

Much like the other usages queries use the quote_ident() function for database names.

  • Added an exception when the parameters will create a malformed request.
  • Updated the tests around this to use a named database instead.

Not sure if raising an exception is the ideal thing to do here, thoughts?

* Added an exception when the paramters will create a malformed request.
* Updated the tests around this to use a named databse instead.
@aviau
Copy link
Collaborator

aviau commented Dec 7, 2016

Raising an exception is perfectly fine. This will happen only when the client is used in a way that is not meant to be used.

@aviau aviau merged commit 3e439a0 into influxdata:master Dec 7, 2016
@aviau
Copy link
Collaborator

aviau commented Dec 7, 2016

Thank you for your work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants