diff options
author | kostja@bodhi.local <> | 2006-07-13 22:09:36 +0400 |
---|---|---|
committer | kostja@bodhi.local <> | 2006-07-13 22:09:36 +0400 |
commit | d7845b74db59efb3bc8ffc74cbe3a3d7c5607196 (patch) | |
tree | 42abdb25b1b2f8d856888f75545406d835075a65 /libmysql | |
parent | f6303a8cfb6aead0681ce33eac303eed454c659d (diff) | |
parent | f62829636b5bdec183610acfba53ca18e0dd2f98 (diff) | |
download | mariadb-git-d7845b74db59efb3bc8ffc74cbe3a3d7c5607196.tar.gz |
Merge bodhi.local:/opt/local/work/tmp_merge
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge-5.0
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 225b3926aa7..2a7850afe95 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -2385,10 +2385,9 @@ static void net_store_datetime(NET *net, MYSQL_TIME *tm) static void store_param_date(NET *net, MYSQL_BIND *param) { - MYSQL_TIME *tm= (MYSQL_TIME *) param->buffer; - tm->hour= tm->minute= tm->second= 0; - tm->second_part= 0; - net_store_datetime(net, tm); + MYSQL_TIME tm= *((MYSQL_TIME *) param->buffer); + tm.hour= tm.minute= tm.second= tm.second_part= 0; + net_store_datetime(net, &tm); } static void store_param_datetime(NET *net, MYSQL_BIND *param) |