1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Update lengths for fields in MYSQL_FIELD

client/mysql.cc:
  Use field->name_length
sql/lex.h:
  fix after merge
This commit is contained in:
unknown
2003-02-08 01:00:35 +02:00
parent e751d29836
commit 5dd528a2fd
3 changed files with 51 additions and 30 deletions

View File

@@ -1786,7 +1786,7 @@ print_table_data(MYSQL_RES *result)
separator.copy("+",1,system_charset_info);
while ((field = mysql_fetch_field(result)))
{
uint length= column_names ? (uint) strlen(field->name) : 0;
uint length= column_names ? field->name_length : 0;
if (quick)
length=max(length,field->length);
else
@@ -1928,7 +1928,7 @@ print_table_data_vertically(MYSQL_RES *result)
while ((field = mysql_fetch_field(result)))
{
uint length=(uint) strlen(field->name);
uint length= field->name_length;
if (length > max_length)
max_length= length;
field->max_length=length;