diff options
author | monty@narttu.mysql.fi <> | 2003-08-27 10:26:03 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-08-27 10:26:03 +0300 |
commit | fe9dc5e7117637e7929076e3a7bae5bd127810d0 (patch) | |
tree | d63c2fba98c94c1cc7e1a75b21591e555059d9a1 /client | |
parent | 165042204de5878bd9e2d2dee0d7aaf072acb419 (diff) | |
download | mariadb-git-fe9dc5e7117637e7929076e3a7bae5bd127810d0.tar.gz |
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
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index d4a06b34d32..639e5f450ad 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -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); |