summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorcmiller@zippy.cornsilk.net <>2006-09-14 09:21:09 -0400
committercmiller@zippy.cornsilk.net <>2006-09-14 09:21:09 -0400
commitebf4d199df237beca077442a5848148a86de62bd (patch)
tree1413553a55860d380b053d6126573d5136519e20 /client
parente9ff111d1ecd46202fd8c817a472db20a9e788be (diff)
parent94382c313a7dd704f13ab4f3ade34e40c48c1eb8 (diff)
downloadmariadb-git-ebf4d199df237beca077442a5848148a86de62bd.tar.gz
Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug21618/my50-bug21618
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-maint
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 2ba9e896747..5e09c309917 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2321,10 +2321,8 @@ print_table_data(MYSQL_RES *result)
MYSQL_ROW cur;
MYSQL_FIELD *field;
bool *num_flag;
- bool *not_null_flag;
num_flag=(bool*) my_alloca(sizeof(bool)*mysql_num_fields(result));
- not_null_flag=(bool*) my_alloca(sizeof(bool)*mysql_num_fields(result));
if (info_flag)
{
print_field_types(result);
@@ -2363,7 +2361,6 @@ print_table_data(MYSQL_RES *result)
MAX_COLUMN_LENGTH),
field->name);
num_flag[off]= IS_NUM(field->type);
- not_null_flag[off]= IS_NOT_NULL(field->flags);
}
(void) tee_fputs("\n", PAGER);
tee_puts((char*) separator.ptr(), PAGER);
@@ -2384,7 +2381,7 @@ print_table_data(MYSQL_RES *result)
uint extra_padding;
/* If this column may have a null value, use "NULL" for empty. */
- if (! not_null_flag[off] && (cur[off] == NULL))
+ if (cur[off] == NULL)
{
buffer= "NULL";
data_length= 4;
@@ -2424,7 +2421,6 @@ print_table_data(MYSQL_RES *result)
}
tee_puts((char*) separator.ptr(), PAGER);
my_afree((gptr) num_flag);
- my_afree((gptr) not_null_flag);
}