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

Always apply double quotes to database and table name #155

Merged
merged 7 commits into from
Mar 29, 2022
Merged

Conversation

fridgepoet
Copy link
Member

Providing names via the UI (i.e. config editor page) saves the names with " double quotes.
In some recent refactoring, we no longer add double quotes when providing names directly from a provisioning file.

This PR checks if the name is already double quoted (for example provided from UI) and if not adds in the quotes (for example provided from provisioning file).

Fixes #153

@github-actions
Copy link

Code coverage report for PR #155

Go Typescript
main 64.4% 47.49%
PR 64.6% 47.49%
difference .2% 0%

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

Thanks! There is one more thing to quote

pkg/timestream/datasource.go Show resolved Hide resolved
pkg/timestream/datasource_test.go Outdated Show resolved Hide resolved
@fridgepoet fridgepoet marked this pull request as ready for review March 25, 2022 09:53
@fridgepoet fridgepoet requested a review from a team as a code owner March 25, 2022 09:53
@fridgepoet fridgepoet requested review from iwysiu and kevinwcyu and removed request for a team March 25, 2022 09:54
pkg/timestream/datasource.go Outdated Show resolved Hide resolved
pkg/timestream/datasource.go Outdated Show resolved Hide resolved
@fridgepoet fridgepoet marked this pull request as draft March 25, 2022 12:50
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

pkg/timestream/datasource_test.go Outdated Show resolved Hide resolved
@fridgepoet fridgepoet marked this pull request as ready for review March 25, 2022 16:19
@fridgepoet fridgepoet changed the title Always apply double quotes to database name Always apply double quotes to database and table name Mar 29, 2022
@fridgepoet fridgepoet merged commit 12baf3a into main Mar 29, 2022
@fridgepoet fridgepoet deleted the quotes branch March 29, 2022 09:16
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.

Issues about when to quote database/tables
2 participants