mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -284,7 +284,7 @@ int PFS_engine_table::read_row(TABLE *table,
|
||||
*/
|
||||
int PFS_engine_table::update_row(TABLE *table,
|
||||
const unsigned char *old_buf,
|
||||
unsigned char *new_buf,
|
||||
const unsigned char *new_buf,
|
||||
Field **fields)
|
||||
{
|
||||
my_bitmap_map *org_bitmap;
|
||||
@@ -428,7 +428,7 @@ PFS_engine_table::get_field_varchar_utf8(Field *f, String *val)
|
||||
|
||||
int PFS_engine_table::update_row_values(TABLE *,
|
||||
const unsigned char *,
|
||||
unsigned char *,
|
||||
const unsigned char *,
|
||||
Field **)
|
||||
{
|
||||
return HA_ERR_WRONG_COMMAND;
|
||||
|
Reference in New Issue
Block a user