-
Notifications
You must be signed in to change notification settings - Fork 292
CPP-747 Fix case sensitive keyspaces #467
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
Conversation
|
|
||
| private: | ||
| size_t index_mask_; | ||
| size_t count_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable. Unrelated.
| return true; | ||
| } | ||
|
|
||
| bool is_valid_lower_cql_id(const String& str) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was implemented incorrectly.
|
|
||
| String& escape_id(String& str) { return is_valid_lower_cql_id(str) ? str : quote_id(str); } | ||
|
|
||
| String& to_cql_id(String& str) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to_cql_id() was dead code.
mikefero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
| virtual std::string default_keyspace() { | ||
| std::string temp(Integration::default_keyspace()); | ||
| temp[0] = std::toupper(temp[0]); | ||
| return "\"" + temp + "\""; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smart!
No description provided.