diff options
author | Jim Winstead <jimw@mysql.com> | 2009-05-20 17:04:44 -0700 |
---|---|---|
committer | Jim Winstead <jimw@mysql.com> | 2009-05-20 17:04:44 -0700 |
commit | 66f12372c1fbd915a83f4de2dc39081d5a556c06 (patch) | |
tree | cf1a7333e44698490dec53901a753f4dbe68437b /client/mysql.cc | |
parent | 8533206280e9423a91d51ee40e5b4569620a2837 (diff) | |
download | mariadb-git-66f12372c1fbd915a83f4de2dc39081d5a556c06.tar.gz |
The mysql command-line client would include superfluous spaces at the end of
some result set lines. (Bug #29622)
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 5752017bbff..5dbcc5eabba 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -3319,6 +3319,9 @@ print_table_data(MYSQL_RES *result) uint visible_length; uint extra_padding; + if (off) + (void) tee_fputs(" ", PAGER); + if (cur[off] == NULL) { buffer= "NULL"; @@ -3353,7 +3356,7 @@ print_table_data(MYSQL_RES *result) else tee_print_sized_data(buffer, data_length, field_max_length+extra_padding, FALSE); } - tee_fputs(" | ", PAGER); + tee_fputs(" |", PAGER); } (void) tee_fputs("\n", PAGER); } |