null+****@clear*****
null+****@clear*****
2012年 3月 12日 (月) 22:30:50 JST
Kouhei Sutou 2012-03-12 22:30:50 +0900 (Mon, 12 Mar 2012) New Revision: c1ec1fa919ce21630089a68d1eb023b0fd138aee Log: 32bit: use longlong for last_insert_grn_id() Reported by Kazuhiko. Thanks!!! Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+2 -2) =================================================================== --- ha_mroonga.cc 2012-03-10 20:43:21 +0900 (b8e9f62) +++ ha_mroonga.cc 2012-03-12 22:30:50 +0900 (b9a47a2) @@ -808,14 +808,14 @@ my_bool last_insert_grn_id_init(UDF_INIT *initid, UDF_ARGS *args, char *message) return 0; } -int last_insert_grn_id(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) +longlong last_insert_grn_id(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) { THD *thd = current_thd; st_mrn_slot_data *slot_data = mrn_get_slot_data(thd, FALSE); if (slot_data == NULL) { return 0; } - int last_insert_record_id = (int)slot_data->last_insert_record_id; + longlong last_insert_record_id = slot_data->last_insert_record_id; return last_insert_record_id; }