|
1 | 1 | /* |
2 | | - Copyright (c) 2015, 2021, Oracle and/or its affiliates. |
| 2 | + Copyright (c) 2015, 2022, Oracle and/or its affiliates. |
3 | 3 |
|
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License, version 2.0, |
@@ -113,7 +113,7 @@ void Mysql_crawler::enumerate_objects() { |
113 | 113 |
|
114 | 114 | std::optional<std::string> stmt = this->get_create_statement( |
115 | 115 | runner, "", db_name, "DATABASE IF NOT EXISTS"); |
116 | | - if (!stmt.has_value()) continue; // some error ocurred |
| 116 | + if (!stmt.has_value()) continue; // some error occurred |
117 | 117 |
|
118 | 118 | Database *database = |
119 | 119 | new Database(this->generate_new_object_id(), db_name, stmt.value()); |
@@ -275,7 +275,7 @@ void Mysql_crawler::enumerate_tables(const Database &db) { |
275 | 275 | bool isInnoDB = table_data[1] == "InnoDB"; // "Engine" |
276 | 276 | std::optional<std::string> stmt = |
277 | 277 | this->get_create_statement(runner, db.get_name(), table_name, "TABLE"); |
278 | | - if (!stmt.has_value()) continue; // some error ocurred |
| 278 | + if (!stmt.has_value()) continue; // some error occurred |
279 | 279 | Table *table = new Table(this->generate_new_object_id(), table_name, |
280 | 280 | db.get_name(), stmt.value(), fields, table_data[1], |
281 | 281 | rows, (uint64)(rows * (isInnoDB ? 1.5 : 1)), |
@@ -390,7 +390,7 @@ void Mysql_crawler::enumerate_functions(const Database &db, std::string type) { |
390 | 390 |
|
391 | 391 | std::optional<std::string> stmt = this->get_create_statement( |
392 | 392 | runner, db.get_name(), function_row[1], type, 2); |
393 | | - if (!stmt.has_value()) // some error ocurred |
| 393 | + if (!stmt.has_value()) // some error occurred |
394 | 394 | break; |
395 | 395 |
|
396 | 396 | TObject *function = new TObject( |
@@ -431,7 +431,7 @@ void Mysql_crawler::enumerate_event_scheduler_events(const Database &db) { |
431 | 431 | std::optional<std::string> stmt = this->get_create_statement( |
432 | 432 | runner, db.get_name(), event_row[1], "EVENT", 3); |
433 | 433 |
|
434 | | - if (!stmt.has_value()) // some error ocurred |
| 434 | + if (!stmt.has_value()) // some error occurred |
435 | 435 | break; |
436 | 436 |
|
437 | 437 | Event_scheduler_event *event = new Event_scheduler_event( |
@@ -523,7 +523,7 @@ void Mysql_crawler::enumerate_table_triggers(const Table &table, |
523 | 523 | const Mysql::Tools::Base::Mysql_query_runner::Row &trigger_row = **it; |
524 | 524 | std::optional<std::string> stmt = this->get_create_statement( |
525 | 525 | runner, table.get_schema(), trigger_row[0], "TRIGGER", 2); |
526 | | - if (!stmt.has_value()) // some error occured |
| 526 | + if (!stmt.has_value()) // some error occurred |
527 | 527 | break; |
528 | 528 | Trigger *trigger = new Trigger( |
529 | 529 | this->generate_new_object_id(), trigger_row[0], table.get_schema(), |
|
0 commit comments