summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJim Winstead <jimw@mysql.com>2009-12-17 12:06:36 -0800
committerJim Winstead <jimw@mysql.com>2009-12-17 12:06:36 -0800
commita8e039a2c8abda480d92556400d2963c66c93dbe (patch)
tree99ec7662f52ac10cfc1f2c5bd9b5613be6193d0f /client
parentcb7ce79816182f324e85fe71c66d9abd418b1be5 (diff)
parentfecdb6a3848361f17b556bf222723079549b1971 (diff)
downloadmariadb-git-a8e039a2c8abda480d92556400d2963c66c93dbe.tar.gz
Merge approved bug fix
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 9d078153a33..5e5d056d6d9 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -3524,7 +3524,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;