summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordlenev@mysql.com <>2006-07-06 14:31:32 +0400
committerdlenev@mysql.com <>2006-07-06 14:31:32 +0400
commitb429748fabb7e3fe6c3dd0271b2d0660c87120ee (patch)
tree33de88b2939e43425e24ce52c714ac5a1541824b /include
parentacf47bdc37d28897e98a92ec02b3aba6fcfc992c (diff)
parentd4450e66964e14ac85bc40c567a510dd86353f60 (diff)
downloadmariadb-git-b429748fabb7e3fe6c3dd0271b2d0660c87120ee.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
into mysql.com:/home/dlenev/mysql-5.0-bg18437-3
Diffstat (limited to 'include')
-rw-r--r--include/my_base.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/my_base.h b/include/my_base.h
index 076eed9998f..05ba38e77eb 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -152,7 +152,16 @@ enum ha_extra_function {
other fields intact. When this is off (by default) InnoDB will use memcpy
to overwrite entire row.
*/
- HA_EXTRA_KEYREAD_PRESERVE_FIELDS
+ HA_EXTRA_KEYREAD_PRESERVE_FIELDS,
+ /*
+ Informs handler that write_row() which tries to insert new row into the
+ table and encounters some already existing row with same primary/unique
+ key can replace old row with new row instead of reporting error (basically
+ it informs handler that we do REPLACE instead of simple INSERT).
+ Off by default.
+ */
+ HA_EXTRA_WRITE_CAN_REPLACE,
+ HA_EXTRA_WRITE_CANNOT_REPLACE
};
/* The following is parameter to ha_panic() */