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:
@@ -431,7 +431,7 @@ int ha_example::write_row(uchar *buf)
|
||||
@see
|
||||
sql_select.cc, sql_acl.cc, sql_update.cc and sql_insert.cc
|
||||
*/
|
||||
int ha_example::update_row(const uchar *old_data, uchar *new_data)
|
||||
int ha_example::update_row(const uchar *old_data, const uchar *new_data)
|
||||
{
|
||||
|
||||
DBUG_ENTER("ha_example::update_row");
|
||||
|
Reference in New Issue
Block a user