1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/home/kostja/work/mysql-4.1-6049


libmysql/libmysql.c:
  Auto merged
sql/field.cc:
  Auto merged
sql/item.cc:
  Auto merged
sql/mysql_priv.h:
  Auto merged
tests/client_test.c:
  Auto merged
This commit is contained in:
unknown
2004-10-20 16:45:09 +04:00
10 changed files with 207 additions and 118 deletions

View File

@ -452,11 +452,9 @@ bool Field::get_time(TIME *ltime)
void Field::store_time(TIME *ltime,timestamp_type type)
{
char buff[MAX_DATE_REP_LENGTH];
String tmp;
tmp.set(buff, sizeof(buff), &my_charset_bin);
TIME_to_string(ltime, &tmp);
store(buff, tmp.length(), &my_charset_bin);
char buff[MAX_DATE_STRING_REP_LENGTH];
uint length= (uint) my_TIME_to_str(ltime, buff);
store(buff, length, &my_charset_bin);
}