-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readyset: Fix quoting in create/drop cache methods (#66)
This commit fixes the identifier quoting in our Readyset.create_cache! and Readyset.drop_cache! methods. Specifically, the query name passed to `DROP CACHE` should always be quoted (since it's an identifier) and if we are passing an ID to `CREATE CACHE`, we need to quote that as well. The main idea here is that whenever we pass the a query ID or query name to `CREATE CACHE` or `DROP CACHE`, it needs to be quoted, and whenever we pass a query string to `CREATE CACHE` it should not be quoted. This PR includes a revert of #64 and some additional logic to properly handle the quoting. Fixes #63
- Loading branch information
1 parent
29671d9
commit addc481
Showing
2 changed files
with
62 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters