MySQL 8.4.2
Source Code Documentation
|
Function to compare two unsigned integers for their relative order. More...
Functions | |
bool | sql_type_prevents_inplace (const Field &from, const Create_field &to) |
Predicate to determine if a field type change prevents alter from being done inplace. More... | |
bool | length_prevents_inplace (const Field &from, const Create_field &to) |
Predicate to determine if a length change prevents alter from being done inplace. More... | |
bool | charset_prevents_inplace (const Field_str &from, const Create_field &to) |
Predicate to determine if a charset change prevents alter from being done inplace. More... | |
bool | change_prevents_inplace (const Field_str &from, const Create_field &to) |
Predicate to determine if the difference between a Field and the new Create_field prevents alter from being done inplace. More... | |
int | compare (unsigned int a, unsigned int b) |
Function to compare two unsigned integers for their relative order.
Used below. In an anonymous namespace to not clash with definitions in other files.
bool anonymous_namespace{field.cc}::change_prevents_inplace | ( | const Field_str & | from, |
const Create_field & | to | ||
) |
Predicate to determine if the difference between a Field and the new Create_field prevents alter from being done inplace.
Convenience wrapper for the preceding predicates.
from | - existing Field object. |
to | - Create_field object describing new version of field. |
bool anonymous_namespace{field.cc}::charset_prevents_inplace | ( | const Field_str & | from, |
const Create_field & | to | ||
) |
Predicate to determine if a charset change prevents alter from being done inplace.
For changes other than the following, we can immediately reject using the inplace algorithm:
from | - existing Field object. |
to | - Create_field object describing new version of field. |
int anonymous_namespace{field.cc}::compare | ( | unsigned int | a, |
unsigned int | b | ||
) |
bool anonymous_namespace{field.cc}::length_prevents_inplace | ( | const Field & | from, |
const Create_field & | to | ||
) |
Predicate to determine if a length change prevents alter from being done inplace.
Length cannot decrease and cannot cross the 256 byte row format barrier.
from | - existing Field object. |
to | - Create_field object describing new version of field. |
bool anonymous_namespace{field.cc}::sql_type_prevents_inplace | ( | const Field & | from, |
const Create_field & | to | ||
) |
Predicate to determine if a field type change prevents alter from being done inplace.
from | - existing Field object. |
to | - Create_field object describing new version of field. |