summaryrefslogtreecommitdiff
path: root/sql/ha_heap.cc
diff options
context:
space:
mode:
authorjani@a193-229-222-105.elisa-laajakaista.fi <>2005-07-23 00:15:53 +0300
committerjani@a193-229-222-105.elisa-laajakaista.fi <>2005-07-23 00:15:53 +0300
commit8f10662eabd759379c6a7cc42acb6e646dd9ea6d (patch)
treefe24aa5f883d66e688458a0c94afba1b629eecc1 /sql/ha_heap.cc
parentffde2ff4e50d33483f951ff554d9fbbc9b4ee1eb (diff)
parent2657e48c64e62580e479f01ceda5f1b6a9fde4c3 (diff)
downloadmariadb-git-8f10662eabd759379c6a7cc42acb6e646dd9ea6d.tar.gz
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1
into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.1
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r--sql/ha_heap.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index 94ee3f8e656..01e693978db 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -629,3 +629,15 @@ ulonglong ha_heap::get_auto_increment()
ha_heap::info(HA_STATUS_AUTO);
return auto_increment_value;
}
+
+
+bool ha_heap::check_if_incompatible_data(HA_CREATE_INFO *info,
+ uint table_changes)
+{
+ /* Check that auto_increment value was not changed */
+ if ((table_changes != IS_EQUAL_YES &&
+ info->used_fields & HA_CREATE_USED_AUTO) &&
+ info->auto_increment_value != 0)
+ return COMPATIBLE_DATA_NO;
+ return COMPATIBLE_DATA_YES;
+}