Renamed Type_all_attributes::set_maybe_null() to set_type_maybe_null()
This was done to have Item::set_maybe_null() as an inline function
This commit is contained in:
parent
c6bf04ab2e
commit
cd1782d26a
@ -736,7 +736,7 @@ public:
|
||||
{
|
||||
if (Inet6::fix_fields_maybe_null_on_conversion_to_inet6(items[i]))
|
||||
{
|
||||
attr->set_maybe_null(true);
|
||||
attr->set_type_maybe_null(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1158,6 +1158,11 @@ public:
|
||||
}
|
||||
const TYPELIB *get_typelib() const { return NULL; }
|
||||
void set_maybe_null(bool maybe_null_arg) { maybe_null= maybe_null_arg; }
|
||||
/* This is used when calling Type_all_attributes::set_type_maybe_null() */
|
||||
void set_type_maybe_null(bool maybe_null_arg) override
|
||||
{
|
||||
set_maybe_null(maybe_null_arg);
|
||||
}
|
||||
void set_typelib(const TYPELIB *typelib)
|
||||
{
|
||||
// Non-field Items (e.g. hybrid functions) never have ENUM/SET types yet.
|
||||
|
@ -7578,7 +7578,7 @@ public:
|
||||
m_maybe_null(false)
|
||||
{ }
|
||||
|
||||
void set_maybe_null(bool maybe_null_arg) { m_maybe_null= maybe_null_arg; }
|
||||
void set_type_maybe_null(bool maybe_null_arg) { m_maybe_null= maybe_null_arg; }
|
||||
bool get_maybe_null() const { return m_maybe_null; }
|
||||
|
||||
decimal_digits_t decimal_precision() const
|
||||
|
@ -3306,7 +3306,7 @@ public:
|
||||
:Type_std_attributes(other)
|
||||
{ }
|
||||
virtual ~Type_all_attributes() {}
|
||||
virtual void set_maybe_null(bool maybe_null_arg)= 0;
|
||||
virtual void set_type_maybe_null(bool maybe_null_arg)= 0;
|
||||
// Returns total number of decimal digits
|
||||
virtual decimal_digits_t decimal_precision() const= 0;
|
||||
virtual const TYPELIB *get_typelib() const= 0;
|
||||
|
@ -501,7 +501,7 @@ bool Type_handler_geometry::
|
||||
func->unsigned_flag= false;
|
||||
func->decimals= 0;
|
||||
func->max_length= (uint32) UINT_MAX32;
|
||||
func->set_maybe_null(true);
|
||||
func->set_type_maybe_null(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user