Skip to content

Commit

Permalink
Changed digest to match_digest
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Oct 23, 2023
1 parent c28f88e commit 30f9897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tap/tests/test_warnings-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const std::vector<TestInfo> insert_test = {
const std::vector<TestInfo> query_cache_test = {
{ ConnectionType::kAdmin, {"SET mysql-query_cache_with_warnings_support=0", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"LOAD MYSQL VARIABLES TO RUNTIME", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"INSERT INTO mysql_query_rules (rule_id,active,digest,cache_ttl,apply) VALUES (500,1,'0x1559bca5d536e403',60000,1)", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"INSERT INTO mysql_query_rules (rule_id,active,match_digest,cache_ttl,apply) VALUES (500,1,'SELECT ?/?',60000,1)", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"LOAD MYSQL QUERY RULES TO RUNTIME", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"PROXYSQL FLUSH QUERY CACHE", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kMySQL, {"SELECT 1/0", true}, {WarningCheckType::kAll, 1, {1365}}, (MultiplexStatus::kMultiplexingEnabled | MultiplexStatus::kHasWarnings) },
Expand All @@ -204,7 +204,7 @@ const std::vector<TestInfo> query_cache_test = {
{ ConnectionType::kMySQL, {"SELECT 1/0", true}, {WarningCheckType::kAll, 1, {1365}}, (MultiplexStatus::kMultiplexingEnabled | MultiplexStatus::kHasWarnings) },
// resultset will be retrived from cache, with warning count zero
{ ConnectionType::kMySQL, {"SELECT 1/0", true}, {WarningCheckType::kAll, 0}, (MultiplexStatus::kMultiplexingDisabled) },
{ ConnectionType::kAdmin, {"DELETE FROM mysql_query_rules WHERE rule_id = 500 AND digest = '0x1559bca5d536e403'", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"DELETE FROM mysql_query_rules WHERE rule_id = 500 AND match_digest = 'SELECT ?/?'", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"LOAD MYSQL QUERY RULES TO RUNTIME", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) },
{ ConnectionType::kAdmin, {"PROXYSQL FLUSH QUERY CACHE", false}, {WarningCheckType::kNotApplicable}, (MultiplexStatus::kNotApplicable) }
};
Expand Down

0 comments on commit 30f9897

Please sign in to comment.