diff options
author | Jim Winstead <jimw@mysql.com> | 2009-09-21 15:20:14 -0700 |
---|---|---|
committer | Jim Winstead <jimw@mysql.com> | 2009-09-21 15:20:14 -0700 |
commit | 8f4d1026de4fdac693da5639e5c6f3f6753075fa (patch) | |
tree | 349dbd6d8fb52bdd13c9df724c2b902367d355b8 /client | |
parent | d6ca0cbb23544e2e033f512f400a91ce6245a9a4 (diff) | |
download | mariadb-git-8f4d1026de4fdac693da5639e5c6f3f6753075fa.tar.gz |
The mysql command line client ignored the --skip-column-names option
when used in conjunction with --vertical. (Bug #47147, patch by
Harrison Fisk)
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index bafd173343e..c579d0ccaaa 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -3510,7 +3510,8 @@ print_table_data_vertically(MYSQL_RES *result) for (uint off=0; off < mysql_num_fields(result); off++) { field= mysql_fetch_field(result); - tee_fprintf(PAGER, "%*s: ",(int) max_length,field->name); + if (column_names) + tee_fprintf(PAGER, "%*s: ",(int) max_length,field->name); if (cur[off]) { unsigned int i; |