null+****@clear*****
null+****@clear*****
2012年 2月 1日 (水) 11:47:52 JST
Kouhei Sutou 2012-02-01 11:47:52 +0900 (Wed, 01 Feb 2012) New Revision: d0818834a92c80b81d5d822dc41c41a58bfa7553 Log: [mysql56] re-support store_time(). Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+4 -4) =================================================================== --- ha_mroonga.cc 2012-02-01 11:37:09 +0900 (4710eda) +++ ha_mroonga.cc 2012-02-01 11:47:52 +0900 (0005a70) @@ -7315,11 +7315,11 @@ void ha_mroonga::storage_store_field_datetime(Field *field, mysql_date.minute = date.tm_min; mysql_date.second = date.tm_sec; mysql_date.second_part = usec; - Field_datetime *datetime_field = (Field_datetime *)field; #ifdef MRN_FIELD_STORE_TIME_NEED_TYPE + Field_datetime *datetime_field = (Field_datetime *)field; datetime_field->store_time(&mysql_date, MYSQL_TIMESTAMP_DATETIME); #else - datetime_field->store_time(&mysql_date); + field->store_time(&mysql_date); #endif } @@ -7339,11 +7339,11 @@ void ha_mroonga::storage_store_field_new_date(Field *field, mysql_date.year = date.tm_year + 1900; mysql_date.month = date.tm_mon + 1; mysql_date.day = date.tm_mday; - Field_newdate *newdate_field = (Field_newdate *)field; #ifdef MRN_FIELD_STORE_TIME_NEED_TYPE + Field_newdate *newdate_field = (Field_newdate *)field; newdate_field->store_time(&mysql_date, MYSQL_TIMESTAMP_DATE); #else - newdate_field->store_time(&mysql_date); + field->store_time(&mysql_date); #endif }