mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
add and amend comments for clarity
include/my_base.h: amend comment for clarity sql/ha_federated.cc: add comment
This commit is contained in:
parent
94beb7cd8d
commit
b4fe5e4408
2 changed files with 6 additions and 3 deletions
|
@ -170,9 +170,8 @@ enum ha_extra_function {
|
||||||
HA_EXTRA_DELETE_CANNOT_BATCH,
|
HA_EXTRA_DELETE_CANNOT_BATCH,
|
||||||
HA_EXTRA_UPDATE_CANNOT_BATCH,
|
HA_EXTRA_UPDATE_CANNOT_BATCH,
|
||||||
/*
|
/*
|
||||||
Inform handler that write_row() should immediately report constraint
|
Inform handler that an "INSERT...ON DUPLICATE KEY UPDATE" will be
|
||||||
violations because a INSERT...ON DUPLICATE KEY UPDATE is in being
|
executed. This condition is unset by HA_EXTRA_NO_IGNORE_DUP_KEY.
|
||||||
performed.
|
|
||||||
*/
|
*/
|
||||||
HA_EXTRA_INSERT_WITH_UPDATE
|
HA_EXTRA_INSERT_WITH_UPDATE
|
||||||
};
|
};
|
||||||
|
|
|
@ -2555,6 +2555,10 @@ int ha_federated::extra(ha_extra_function operation)
|
||||||
replace_duplicates= TRUE;
|
replace_duplicates= TRUE;
|
||||||
break;
|
break;
|
||||||
case HA_EXTRA_WRITE_CANNOT_REPLACE:
|
case HA_EXTRA_WRITE_CANNOT_REPLACE:
|
||||||
|
/*
|
||||||
|
We use this flag to ensure that we do not create an "INSERT IGNORE"
|
||||||
|
statement when inserting new rows into the remote table.
|
||||||
|
*/
|
||||||
replace_duplicates= FALSE;
|
replace_duplicates= FALSE;
|
||||||
break;
|
break;
|
||||||
case HA_EXTRA_INSERT_WITH_UPDATE:
|
case HA_EXTRA_INSERT_WITH_UPDATE:
|
||||||
|
|
Loading…
Reference in a new issue