fix check text column bug during ctas
This commit is contained in:
@ -1583,7 +1583,7 @@ int ObCreateTableResolver::resolve_table_elements_from_select(const ParseNode& p
|
||||
} else if (is_oracle_mode() && create_table_column_count > 0) {
|
||||
if (column.is_string_type()) {
|
||||
if (column.get_meta_type().is_lob()) {
|
||||
if (OB_FAIL(check_text_column_length_and_promote(column, table_id_))) {
|
||||
if (OB_FAIL(check_text_column_length_and_promote(column, table_id_, true))) {
|
||||
LOG_WARN("fail to check text or blob column length", K(ret), K(column));
|
||||
}
|
||||
} else if (OB_FAIL(check_string_column_length(column, share::is_oracle_mode()))) {
|
||||
@ -1626,7 +1626,7 @@ int ObCreateTableResolver::resolve_table_elements_from_select(const ParseNode& p
|
||||
} else {
|
||||
if (column.is_string_type()) {
|
||||
if (column.get_meta_type().is_lob()) {
|
||||
if (OB_FAIL(check_text_column_length_and_promote(column, table_id_))) {
|
||||
if (OB_FAIL(check_text_column_length_and_promote(column, table_id_, true))) {
|
||||
LOG_WARN("fail to check text or blob column length", K(ret), K(column));
|
||||
}
|
||||
} else if (OB_FAIL(check_string_column_length(column, share::is_oracle_mode()))) {
|
||||
|
||||
Reference in New Issue
Block a user