You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-641 Implement int128_t versions of arithmetic operations and add unit test cases.
This commit is contained in:
committed by
Roman Nozdrin
parent
b5534eb847
commit
554c6da8e8
@ -159,6 +159,15 @@ static MYSQL_THDVAR_BOOL(
|
||||
0
|
||||
);
|
||||
|
||||
static MYSQL_THDVAR_BOOL(
|
||||
decimal_overflow_check,
|
||||
PLUGIN_VAR_NOCMDARG,
|
||||
"Enable/disable for ColumnStore to check for overflow in arithmetic operation.",
|
||||
NULL,
|
||||
NULL,
|
||||
0
|
||||
);
|
||||
|
||||
static MYSQL_THDVAR_BOOL(
|
||||
ordered_only,
|
||||
PLUGIN_VAR_NOCMDARG,
|
||||
@ -353,6 +362,7 @@ st_mysql_sys_var* mcs_system_variables[] =
|
||||
MYSQL_SYSVAR(diskjoin_bucketsize),
|
||||
MYSQL_SYSVAR(um_mem_limit),
|
||||
MYSQL_SYSVAR(double_for_decimal_math),
|
||||
MYSQL_SYSVAR(decimal_overflow_check),
|
||||
MYSQL_SYSVAR(local_query),
|
||||
MYSQL_SYSVAR(use_import_for_batchinsert),
|
||||
MYSQL_SYSVAR(import_for_batchinsert_delimiter),
|
||||
@ -557,6 +567,15 @@ void set_double_for_decimal_math(THD* thd, bool value)
|
||||
THDVAR(thd, double_for_decimal_math) = value;
|
||||
}
|
||||
|
||||
bool get_decimal_overflow_check(THD* thd)
|
||||
{
|
||||
return ( thd == NULL ) ? false : THDVAR(thd, decimal_overflow_check);
|
||||
}
|
||||
void set_decimal_overflow_check(THD* thd, bool value)
|
||||
{
|
||||
THDVAR(thd, decimal_overflow_check) = value;
|
||||
}
|
||||
|
||||
ulong get_local_query(THD* thd)
|
||||
{
|
||||
return ( thd == NULL ) ? 0 : THDVAR(thd, local_query);
|
||||
|
Reference in New Issue
Block a user