fix check text column bug during ctas

This commit is contained in:
yb0
2021-12-20 20:04:06 +08:00
committed by LINxiansheng
parent 9802ffae64
commit ea5bd71d32
3 changed files with 13 additions and 14 deletions

View File

@ -142,13 +142,8 @@ public:
static const int64_t DEFAULT_TABLE_DOP = 1;
explicit ObDDLResolver(ObResolverParams& params);
virtual ~ObDDLResolver();
static int check_text_length(ObCharsetType cs_type,
ObCollationType co_type,
const char* name,
ObObjType& type,
int32_t& length,
bool need_rewrite_length);
static int check_text_length(ObCharsetType cs_type, ObCollationType co_type, const char *name, ObObjType &type,
int32_t &length, bool need_rewrite_length, const bool is_byte_length = false);
static int rewrite_text_length_mysql(ObObjType &type, int32_t &length);
static int check_uniq_allow(
share::schema::ObTableSchema& table_schema, obrpc::ObCreateIndexArg& index_arg, bool& allow);
@ -187,7 +182,8 @@ public:
static int cast_enum_or_set_default_value(
const share::schema::ObColumnSchemaV2& column, common::ObObjCastParams& params, common::ObObj& def_val);
int check_partition_name_duplicate(ParseNode* node, bool is_oracle_modle = false);
static int check_text_column_length_and_promote(share::schema::ObColumnSchemaV2& column, int64_t table_id);
static int check_text_column_length_and_promote(
share::schema::ObColumnSchemaV2& column, int64_t table_id, const bool is_byte_length = false);
static int get_enable_split_partition(const int64_t tenant_id, bool& enable_split_partition);
typedef common::hash::ObPlacementHashSet<share::schema::ObIndexNameHashWrapper, common::OB_MAX_COLUMN_NUMBER>
IndexNameSet;