← Back to team overview

maria-developers team mailing list archive

Re: alternative for Field_timestamp::get_timestamp etc. ?

 

Hi, Kazuhiko!

On Jan 30, Kazuhiko wrote:
> 
> (you can see the code at
> https://github.com/mroonga/mroonga/blob/master/ha_mroonga.cc )
> 
> At a glance, sql/field.h seems much different from MySQL-5.1's one. What
> can be the alternative for the followings ?
> 
> * Field_timestamp::get_timestamp(my_bool*)

Field_timestamp::get_timestamp(ulong*) const

> * Field_datetime::store_time(MYSQL_TIME*, enum_mysql_timestamp_type)

Field_datetime::store_time(MYSQL_TIME*)

> * Field_newdate::store_time(MYSQL_TIME*, enum_mysql_timestamp_type)

Field_newdate::store_time(MYSQL_TIME*)

Looking at ha_mroonga.cc, you only need to remove the second argument in
your calls to store_time() and change the type of the second argument in
your call to get_timestamp(). No complex changes are needed.

Regards,
Sergei


Follow ups

References