mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
A cleanup for MDEV-19923 Add type handlers for geometry sub-types
Sources did not compile in some builds because of undeclared ER_BLOB_KEY_WITHOUT_LENGTH. Moving the implementations of Key_part_spec::check_key_length_for_blob() from sql_class.h to sql_class.cc
This commit is contained in:
@ -141,6 +141,17 @@ bool Key_part_spec::check_key_for_blob(const handler *file) const
|
||||
}
|
||||
|
||||
|
||||
bool Key_part_spec::check_key_length_for_blob() const
|
||||
{
|
||||
if (!length)
|
||||
{
|
||||
my_error(ER_BLOB_KEY_WITHOUT_LENGTH, MYF(0), field_name.str);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool Key_part_spec::init_multiple_key_for_blob(const handler *file)
|
||||
{
|
||||
if (check_key_for_blob(file))
|
||||
|
Reference in New Issue
Block a user