Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sqlodbc/opensearch_communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ bool OpenSearchCommunication::IsSQLPluginEnabled(std::shared_ptr< ErrorDetails >
*/
bool OpenSearchCommunication::CheckSQLPluginAvailability() {
LogMsg(OPENSEARCH_ALL, "Checking for SQL plugin status.");
std::string test_query = "SHOW TABLES LIKE %";
std::string test_query = "SHOW TABLES LIKE '%'";
try {
std::shared_ptr< Aws::Http::HttpResponse > response =
IssueRequest(sql_endpoint,
Expand Down
4 changes: 2 additions & 2 deletions src/sqlodbc/opensearch_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ void GenerateTableQuery(std::string &tables_query, const UWORD flag,
if (table_valid && (table_name_value != "")
&& (result_type == TableResultSet::All))
tables_query +=
search_pattern ? table_name_value : "^" + table_name_value + "$";
search_pattern ? table_name_value : "'^" + table_name_value + "$'";
else
tables_query += "%";
tables_query += "'%'";
}

// In case of unique_ptr's, using push_back (over emplace_back) is preferred in
Expand Down