diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2003-06-23 13:02:28 +0500 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2003-06-23 13:02:28 +0500 |
commit | b68315cda61f71f3bf176e97f14f40d8c3bf528d (patch) | |
tree | c85cbf69cadd2227fc5b39798cde168c83bdf56b /sql/protocol.cc | |
parent | bd2c3ef725acf6c1e30ab5880324e5135649e98a (diff) | |
parent | f8e232f95e423897fa3898a8e34bab2fefffe7f8 (diff) | |
download | mariadb-git-b68315cda61f71f3bf176e97f14f40d8c3bf528d.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/item_create.h:
Auto merged
sql/lex.h:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/protocol.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
sql/time.cc:
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 1d730836d6e..1eae79d0d78 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); } |