summaryrefslogtreecommitdiff
path: root/plugin/func_test
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2020-08-02 12:31:14 +0300
committerSergei Golubchik <serg@mariadb.org>2021-05-19 22:27:28 +0200
commit3105c9e7a5eb3706f6520e1566ed4a2add06c6a5 (patch)
tree628f083d286f970ac8358f882195ea834c16131e /plugin/func_test
parent451c4ae548fd4b0dda93ac499682e95b249bfcf4 (diff)
downloadmariadb-git-3105c9e7a5eb3706f6520e1566ed4a2add06c6a5.tar.gz
Change bitfields in Item to an uint16
The reason for the change is that neither clang or gcc can do efficient code when several bit fields are change at the same time or when copying one or more bits between identical bit fields. Updated bits explicitely with & and | is MUCH more efficient than what current compilers can do.
Diffstat (limited to 'plugin/func_test')
-rw-r--r--plugin/func_test/plugin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/func_test/plugin.cc b/plugin/func_test/plugin.cc
index 811189773f1..827c627dece 100644
--- a/plugin/func_test/plugin.cc
+++ b/plugin/func_test/plugin.cc
@@ -32,7 +32,7 @@ public:
bool fix_length_and_dec()
{
max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen;
- maybe_null= true;
+ flags|= ITEM_FLAG_MAYBE_NULL;
return false;
}
const char *func_name() const { return "sysconst_test"; }