summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-11-09 12:27:54 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-11-09 12:27:54 +0200
commit27eaa963ff18d12939f798a78720d73cf6ce0b5d (patch)
tree0bca93e0e81c308a3497b7ff59b97d03202cb863 /sql/ha_partition.cc
parent320de65135c6dd1af7c2f34ac0469b80aaf3ddb6 (diff)
parente56c12b3cdf57ad29cee0ffe33bd6bc44c963789 (diff)
downloadmariadb-git-27eaa963ff18d12939f798a78720d73cf6ce0b5d.tar.gz
Merge 10.6 into 10.7
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc29
1 files changed, 3 insertions, 26 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index a8eebe54868..34cbf8f018a 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -12125,35 +12125,12 @@ int ha_partition::info_push(uint info_type, void *info)
bool
-ha_partition::can_convert_string(const Field_string* field,
- const Column_definition& new_type) const
+ha_partition::can_convert_nocopy(const Field &field,
+ const Column_definition &new_type) const
{
for (uint index= 0; index < m_tot_parts; index++)
{
- if (!m_file[index]->can_convert_string(field, new_type))
- return false;
- }
- return true;
-}
-
-bool
-ha_partition::can_convert_varstring(const Field_varstring* field,
- const Column_definition& new_type) const{
- for (uint index= 0; index < m_tot_parts; index++)
- {
- if (!m_file[index]->can_convert_varstring(field, new_type))
- return false;
- }
- return true;
-}
-
-bool
-ha_partition::can_convert_blob(const Field_blob* field,
- const Column_definition& new_type) const
-{
- for (uint index= 0; index < m_tot_parts; index++)
- {
- if (!m_file[index]->can_convert_blob(field, new_type))
+ if (!m_file[index]->can_convert_nocopy(field, new_type))
return false;
}
return true;