fix literal bug

Co-authored-by: obdev <obdev@oceanbase.com>
This commit is contained in:
wjhh2008
2023-01-28 13:57:29 +08:00
committed by ob-robot
parent 9484175163
commit df5bfcaa49

View File

@ -210,7 +210,8 @@ public:
}
OB_INLINE bool is_column() const { return !is_literal(); }
OB_INLINE bool is_literal() const { return get_param().get_type() == get_type(); }
OB_INLINE bool is_literal() const { return get_param().get_type() == get_type()
&& get_param().get_collation_type() == get_collation_type(); }
OB_INLINE bool is_null() const { return common::ObNullType == get_type(); }
OB_INLINE bool is_mysql_question_mark_type() const
{ return is_varbinary() && 0 == get_length(); }