diff options
author | Monty <monty@mariadb.org> | 2021-09-13 18:51:40 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2021-09-14 20:14:04 +0300 |
commit | 689b8d060ac890dcf1071b34a68234b30005e9a1 (patch) | |
tree | d29262a99d6954ecfa78a15de391c4329b4fc35d /client/mysql.cc | |
parent | adaf0dde7fb205818f2ff51139a3f3114bacc527 (diff) | |
download | mariadb-git-689b8d060ac890dcf1071b34a68234b30005e9a1.tar.gz |
MDEV-23519 Protocol packet - "Original Name" info is showing alias name,
instead of original name of the column
When doing refactoring of temporary table field creation a mistake was
done when copying the column name when creating internal temporary tables.
For internal temporary tables we should use the original field name, not
the item name (= alias).
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index b7a2d6c5e72..7b3f34b755f 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -3503,6 +3503,7 @@ print_field_types(MYSQL_RES *result) while ((field = mysql_fetch_field(result))) { tee_fprintf(PAGER, "Field %3u: `%s`\n" + "Org_field: `%s`\n" "Catalog: `%s`\n" "Database: `%s`\n" "Table: `%s`\n" @@ -3514,8 +3515,8 @@ print_field_types(MYSQL_RES *result) "Decimals: %u\n" "Flags: %s\n\n", ++i, - field->name, field->catalog, field->db, field->table, - field->org_table, fieldtype2str(field->type), + field->name, field->org_name, field->catalog, field->db, + field->table, field->org_table, fieldtype2str(field->type), get_charset_name(field->charsetnr), field->charsetnr, field->length, field->max_length, field->decimals, fieldflags2str(field->flags)); |