mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Added "const" to new data for handler::update_row()
This was done to make it clear that a update_row() should not change the row. This was not done for handler::write_row() as this function still needs to update auto_increment values in the row. This should at some point be moved to handler::ha_write_row() after which write_row can also have const arguments.
This commit is contained in:
@@ -275,7 +275,7 @@ extern int mi_rsame(struct st_myisam_info *file,uchar *record,int inx);
|
||||
extern int mi_rsame_with_pos(struct st_myisam_info *file,uchar *record,
|
||||
int inx, my_off_t pos);
|
||||
extern int mi_update(struct st_myisam_info *file,const uchar *old,
|
||||
uchar *new_record);
|
||||
const uchar *new_record);
|
||||
extern int mi_write(struct st_myisam_info *file,uchar *buff);
|
||||
extern my_off_t mi_position(struct st_myisam_info *file);
|
||||
extern int mi_status(struct st_myisam_info *info, MI_ISAMINFO *x, uint flag);
|
||||
|
Reference in New Issue
Block a user