summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-06-23 13:02:28 +0500
committerunknown <gluh@gluh.mysql.r18.ru>2003-06-23 13:02:28 +0500
commitb68315cda61f71f3bf176e97f14f40d8c3bf528d (patch)
treec85cbf69cadd2227fc5b39798cde168c83bdf56b /sql/protocol.cc
parentbd2c3ef725acf6c1e30ab5880324e5135649e98a (diff)
parentf8e232f95e423897fa3898a8e34bab2fefffe7f8 (diff)
downloadmariadb-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.cc4
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);
}