Skip to content

Commit 3aff76f

Browse files
committed
vcol flag rename VCOL_UNKNOWN -> VCOL_FIELD_REF
1 parent 159dc96 commit 3aff76f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sql/field.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ inline bool is_temporal_type_with_time(enum_field_types type)
575575
}
576576

577577
/* Bits for type of vcol expression */
578-
#define VCOL_UNKNOWN 1 /* UDF used; Need fix_fields() to know */
578+
#define VCOL_FIELD_REF 1
579579
#define VCOL_NON_DETERMINISTIC 2
580580
#define VCOL_SESSION_FUNC 4 /* uses session data, e.g. USER or DAYNAME */
581581
#define VCOL_TIME_FUNC 8

sql/item.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,8 +2516,8 @@ class Item_field :public Item_ident
25162516
bool update_table_bitmaps_processor(void *arg);
25172517
bool switch_to_nullable_fields_processor(void *arg);
25182518
bool check_vcol_func_processor(void *arg)
2519-
{ // may be, a special flag VCOL_FIELD ?
2520-
return mark_unsupported_function(field_name, arg, VCOL_UNKNOWN);
2519+
{
2520+
return mark_unsupported_function(field_name, arg, VCOL_FIELD_REF);
25212521
}
25222522
void cleanup();
25232523
Item_equal *get_item_equal() { return item_equal; }

sql/item_func.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ class Item_udf_func :public Item_func
14701470
virtual void print(String *str, enum_query_type query_type);
14711471
bool check_vcol_func_processor(void *arg)
14721472
{
1473-
return mark_unsupported_function(func_name(), "()", arg, VCOL_UNKNOWN);
1473+
return mark_unsupported_function(func_name(), "()", arg, VCOL_NON_DETERMINISTIC);
14741474
}
14751475
};
14761476

0 commit comments

Comments
 (0)