summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-10-19 13:06:21 +0200
committerMikael Ronstrom <mikael@mysql.com>2009-10-19 13:06:21 +0200
commitf42cc4a67f9e6fe4aaf1cc9eff197b4a0b4c415e (patch)
tree71e8cd0221dbb24603f190acc4035a75282c4d33 /sql/partition_info.cc
parent1f38322dc44245e64307070ec281c2ea44291ed7 (diff)
parent8cf025ec3fc27f912df7390e57e93d1f06aa3daa (diff)
downloadmariadb-git-f42cc4a67f9e6fe4aaf1cc9eff197b4a0b4c415e.tar.gz
Merged in latest wl3352 tree, fixed some non-partition build issues
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc41
1 files changed, 40 insertions, 1 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index c2b33c336d4..857ae765135 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -1513,7 +1513,6 @@ id_err:
return 1;
}
-
/*
Create a new column value in current list with maxvalue
Called from parser
@@ -2017,4 +2016,44 @@ void partition_info::print_debug(const char *str, uint *value)
DBUG_PRINT("info", ("parser: %s", str));
DBUG_VOID_RETURN;
}
+#else /* WITH_PARTITION_STORAGE_ENGINE */
+ /*
+ For builds without partitioning we need to define these functions
+ since we they are called from the parser. The parser cannot
+ remove code parts using ifdef, but the code parts cannot be called
+ so we simply need to add empty functions to make the linker happy.
+ */
+part_column_list_val *partition_info::add_column_value()
+{
+ return NULL;
+}
+
+bool partition_info::set_part_expr(char *start_token, Item *item_ptr,
+ char *end_token, bool is_subpart)
+{
+ (void)start_token;
+ (void)item_ptr;
+ (void)end_token;
+ (void)is_subpart;
+ return FALSE;
+}
+
+int partition_info::reorganize_into_single_field_col_val()
+{
+ return 0;
+}
+
+bool partition_info::init_column_part()
+{
+ return FALSE;
+}
+
+bool partition_info::add_column_list_value(Item *item)
+{
+ return FALSE;
+}
+int partition_info::add_max_value()
+{
+ return 0;
+}
#endif /* WITH_PARTITION_STORAGE_ENGINE */