1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Add column names for metadata when running mysql with -T

Change metadata info so that that MIN() and code MAX() reports that they can return NULL. Bug #324
This commit is contained in:
monty@narttu.mysql.fi
2003-08-27 10:26:03 +03:00
parent 165042204d
commit fe9dc5e711
5 changed files with 22 additions and 4 deletions

View File

@@ -1580,11 +1580,12 @@ print_field_types(MYSQL_RES *result)
MYSQL_FIELD *field;
while ((field = mysql_fetch_field(result)))
{
tee_fprintf(PAGER,"%s '%s' %d %d %d %d %d\n",
tee_fprintf(PAGER,"Name: '%s'\nTable: '%s'\nType: %d\nLength: %d\nMax length: %d\nIs_null: %d\nFlags: %d\nDecimals: %d\n\n",
field->name,
field->table ? "" : field->table,
(int) field->type,
field->length, field->max_length,
field->length, field->max_length,
!IS_NOT_NULL(field->flags),
field->flags, field->decimals);
}
tee_puts("", PAGER);