Navigation Menu

Skip to content

Commit

Permalink
32bit: use longlong for last_insert_grn_id()
Browse files Browse the repository at this point in the history
Reported by Kazuhiko. Thanks!!!
  • Loading branch information
kou committed Mar 12, 2012
1 parent a44276e commit c1ec1fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_mroonga.cc
Expand Up @@ -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;
}

Expand Down

0 comments on commit c1ec1fa

Please sign in to comment.