diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2003-06-23 12:56:44 +0500 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2003-06-23 12:56:44 +0500 |
commit | 644cd153b2cabd087dff3957621773c5d0291b83 (patch) | |
tree | 8b4bba86daca57ef1b882e1c341e7c9747940d89 /sql/protocol.cc | |
parent | 1aa1d970d4d805a8029a7f197a59163145c7dc60 (diff) | |
download | mariadb-git-644cd153b2cabd087dff3957621773c5d0291b83.tar.gz |
Internal commit
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 7abbf3ce85b..b214b5627d5 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -862,6 +862,8 @@ bool Protocol_simple::store(TIME *tm) (int) tm->hour, (int) tm->minute, (int) tm->second)); + if (tm->second_part) + length+= my_sprintf(buff+length,(buff+length, ".%06d", (int)tm->second_part)); return net_store_data((char*) buff, length); } @@ -898,6 +900,8 @@ bool Protocol_simple::store_time(TIME *tm) (long) day*24L+(long) tm->hour, (int) tm->minute, (int) tm->second)); + if (tm->second_part) + length+= my_sprintf(buff+length,(buff+length, ".%06d", (int)tm->second_part)); return net_store_data((char*) buff, length); } |