MCPcopy Create free account
hub / github.com/MariaDB/server / check_sys_fields

Method check_sys_fields

sql/handler.cc:9518–9536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9516
9517
9518bool Vers_type_timestamp::check_sys_fields(const LEX_CSTRING &table_name,
9519 const Column_definition *row_start,
9520 const Column_definition *row_end) const
9521{
9522 if (!is_versioning_timestamp(row_start))
9523 {
9524 require_timestamp_error(row_start->field_name.str, table_name.str);
9525 return true;
9526 }
9527
9528 if (row_end->type_handler()->vers() != this ||
9529 !is_versioning_timestamp(row_end))
9530 {
9531 require_timestamp_error(row_end->field_name.str, table_name.str);
9532 return true;
9533 }
9534
9535 return false;
9536}
9537
9538
9539bool Vers_type_trx::check_sys_fields(const LEX_CSTRING &table_name,

Callers 1

Calls 8

is_versioning_timestampFunction · 0.85
require_timestamp_errorFunction · 0.85
is_versioning_bigintFunction · 0.85
require_trx_id_errorFunction · 0.85
is_some_bigintFunction · 0.85
my_errorFunction · 0.85
versMethod · 0.45
type_handlerMethod · 0.45

Tested by

no test coverage detected