diff options
author | monty@donna.mysql.com <> | 2000-09-02 07:58:42 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-09-02 07:58:42 +0300 |
commit | 4496d43faa14cc8d3f81fb861eed37c5974ed6ab (patch) | |
tree | 28fa78a52ce90f0133e1275fabcefa57cfc8fa02 /libmysql | |
parent | 7155d2a14c8a6fd1a9732bbcb5d893759584e4f5 (diff) | |
download | mariadb-git-4496d43faa14cc8d3f81fb861eed37c5974ed6ab.tar.gz |
Quoting of TIMESTAMP columns and small optimizations
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 8552d386e5e..24aae76225e 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -852,6 +852,8 @@ unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields, field->flags= (uint) (uchar) row->data[4][0]; field->decimals=(uint) (uchar) row->data[4][1]; } + if (INTERNAL_NUM_FIELD(field)) + field->flags|= NUM_FLAG; if (default_value && row->data[5]) field->def=strdup_root(alloc,(char*) row->data[5]); else |