diff options
| author | Sergei Petrunia <sergey@mariadb.com> | 2022-11-21 18:17:14 +0300 |
|---|---|---|
| committer | Sergei Petrunia <sergey@mariadb.com> | 2023-02-03 11:22:17 +0300 |
| commit | 6c4076fac4ade864eda7f09bd9770de3c640feb0 (patch) | |
| tree | b89d6af0ac8f26c9d96cbf14654023d9f7da7429 /sql/sql_explain.h | |
| parent | ffe0beca2557a31758f50fa53ceb9948b6cd6248 (diff) | |
| download | mariadb-git-6c4076fac4ade864eda7f09bd9770de3c640feb0.tar.gz | |
MDEV-30032: EXPLAIN FORMAT=JSON output: part #2: print 'loops'.
Diffstat (limited to 'sql/sql_explain.h')
| -rw-r--r-- | sql/sql_explain.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h index 9e560c0be23..67abfe2e9da 100644 --- a/sql/sql_explain.h +++ b/sql/sql_explain.h @@ -758,6 +758,8 @@ public: Explain_table_access(MEM_ROOT *root, bool timed) : derived_select_number(0), non_merged_sjm_number(0), + cost(0.0), + loops(0.0), extra_tags(root), range_checked_fer(NULL), full_scan_on_null_key(false), @@ -829,6 +831,7 @@ public: /* Total cost incurred during one execution of this select */ double cost; + double loops; /* Contents of the 'Extra' column. Some are converted into strings, some have parameters, values for which are stored below. |
