From 3105c9e7a5eb3706f6520e1566ed4a2add06c6a5 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sun, 2 Aug 2020 12:31:14 +0300 Subject: 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. --- plugin/func_test/plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/func_test') 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"; } -- cgit v1.2.1