diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2003-07-08 12:57:00 +0500 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2003-07-08 12:57:00 +0500 |
commit | 01e7f418afb1ab646487e4a14179ed2d2bd8f008 (patch) | |
tree | 432f5bf0b381f3faff8963e8f850c965117dc99f /sql/protocol.cc | |
parent | 8d128eed802e47fbce895a1f7d46caf56ac4a50e (diff) | |
parent | b68315cda61f71f3bf176e97f14f40d8c3bf528d (diff) | |
download | mariadb-git-01e7f418afb1ab646487e4a14179ed2d2bd8f008.tar.gz |
Merge gluh@gw:/home/bk/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/mysql-4.1.DTFUNC
sql/field.cc:
Auto merged
sql/item_create.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/protocol.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
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 1a1d1f0a585..3d214e6f86d 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -840,6 +840,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); } @@ -876,6 +878,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); } |