summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-06-23 12:56:44 +0500
committerunknown <gluh@gluh.mysql.r18.ru>2003-06-23 12:56:44 +0500
commitf8e232f95e423897fa3898a8e34bab2fefffe7f8 (patch)
tree8b4bba86daca57ef1b882e1c341e7c9747940d89 /sql/protocol.cc
parent4beedd513eecdc4f57715112c1496e976a2f079c (diff)
downloadmariadb-git-f8e232f95e423897fa3898a8e34bab2fefffe7f8.tar.gz
Internal commit
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc4
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);
}