#[repr(C)]pub struct Type_handler_hybrid_field_type {
pub m_type_handler: *const Type_handler,
}
Expand description
A handler for hybrid type functions, e.g. COALESCE(), IF(), IFNULL(), NULLIF(), CASE, numeric operators, UNIX_TIMESTAMP(), TIME_TO_SEC().
Makes sure that field_type(), cmp_type() and result_type() are always in sync to each other for hybrid functions.
Fields§
§m_type_handler: *const Type_handler
Implementations§
source§impl Type_handler_hybrid_field_type
impl Type_handler_hybrid_field_type
pub unsafe fn aggregate_for_comparison( &mut self, other: *const Type_handler ) -> bool
pub unsafe fn aggregate_for_comparison1( &mut self, funcname: *const LEX_CSTRING, items: *mut *mut Item, nitems: uint, treat_int_to_uint_as_decimal: bool ) -> bool
pub unsafe fn aggregate_for_result( &mut self, other: *const Type_handler ) -> bool
pub unsafe fn aggregate_for_result1( &mut self, funcname: *const LEX_CSTRING, item: *mut *mut Item, nitems: uint, treat_bit_as_number: bool ) -> bool
pub unsafe fn aggregate_for_min_max( &mut self, funcname: *const LEX_CSTRING, item: *mut *mut Item, nitems: uint ) -> bool
pub unsafe fn aggregate_for_num_op( &mut self, aggregator: *const Type_aggregator, h0: *const Type_handler, h1: *const Type_handler ) -> bool
pub unsafe fn new() -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Type_handler_hybrid_field_type
impl !Send for Type_handler_hybrid_field_type
impl !Sync for Type_handler_hybrid_field_type
impl Unpin for Type_handler_hybrid_field_type
impl UnwindSafe for Type_handler_hybrid_field_type
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more