Commit 3aff76f3 authored by Sergei Golubchik's avatar Sergei Golubchik

vcol flag rename VCOL_UNKNOWN -> VCOL_FIELD_REF

parent 159dc969
...@@ -575,7 +575,7 @@ inline bool is_temporal_type_with_time(enum_field_types type) ...@@ -575,7 +575,7 @@ inline bool is_temporal_type_with_time(enum_field_types type)
} }
/* Bits for type of vcol expression */ /* Bits for type of vcol expression */
#define VCOL_UNKNOWN 1 /* UDF used; Need fix_fields() to know */ #define VCOL_FIELD_REF 1
#define VCOL_NON_DETERMINISTIC 2 #define VCOL_NON_DETERMINISTIC 2
#define VCOL_SESSION_FUNC 4 /* uses session data, e.g. USER or DAYNAME */ #define VCOL_SESSION_FUNC 4 /* uses session data, e.g. USER or DAYNAME */
#define VCOL_TIME_FUNC 8 #define VCOL_TIME_FUNC 8
......
...@@ -2516,8 +2516,8 @@ class Item_field :public Item_ident ...@@ -2516,8 +2516,8 @@ class Item_field :public Item_ident
bool update_table_bitmaps_processor(void *arg); bool update_table_bitmaps_processor(void *arg);
bool switch_to_nullable_fields_processor(void *arg); bool switch_to_nullable_fields_processor(void *arg);
bool check_vcol_func_processor(void *arg) bool check_vcol_func_processor(void *arg)
{ // may be, a special flag VCOL_FIELD ? {
return mark_unsupported_function(field_name, arg, VCOL_UNKNOWN); return mark_unsupported_function(field_name, arg, VCOL_FIELD_REF);
} }
void cleanup(); void cleanup();
Item_equal *get_item_equal() { return item_equal; } Item_equal *get_item_equal() { return item_equal; }
......
...@@ -1470,7 +1470,7 @@ class Item_udf_func :public Item_func ...@@ -1470,7 +1470,7 @@ class Item_udf_func :public Item_func
virtual void print(String *str, enum_query_type query_type); virtual void print(String *str, enum_query_type query_type);
bool check_vcol_func_processor(void *arg) bool check_vcol_func_processor(void *arg)
{ {
return mark_unsupported_function(func_name(), "()", arg, VCOL_UNKNOWN); return mark_unsupported_function(func_name(), "()", arg, VCOL_NON_DETERMINISTIC);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment