diff options
author | monty@mysql.com <> | 2006-06-30 19:15:18 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2006-06-30 19:15:18 +0300 |
commit | 2f86009c9e8d7a59385981f311286e616a4b41aa (patch) | |
tree | 15c1c844006e3cdc77167f5ef3986b9d40c16104 /libmysql/libmysql.c | |
parent | a5f362cb9417697ffbd41adaad2a840a97e9d27a (diff) | |
parent | 445dfdc3a7bd1fa69cda8eeffce588cad8213fde (diff) | |
download | mariadb-git-2f86009c9e8d7a59385981f311286e616a4b41aa.tar.gz |
Merge mysql.com:/home/my/mysql-4.1
into mysql.com:/home/my/mysql-5.0
Diffstat (limited to 'libmysql/libmysql.c')
-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 c1e0703af10..a851d62b108 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -2391,10 +2391,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) |