fix padding bug with function-based index

This commit is contained in:
rq0
2022-03-23 22:07:54 +08:00
committed by LINxiansheng
parent 30327651c9
commit ff8bbf3ebc
16 changed files with 191 additions and 34 deletions

View File

@ -1800,7 +1800,11 @@ public:
if_not_exist_(false),
with_rowid_(false),
index_schema_(),
is_inner_(false)
is_inner_(false),
nls_date_format_(),
nls_timestamp_format_(),
nls_timestamp_tz_format_(),
sql_mode_(0)
{
index_action_type_ = ADD_INDEX;
index_using_type_ = share::schema::USING_BTREE;
@ -1824,6 +1828,10 @@ public:
with_rowid_ = false;
index_schema_.reset();
is_inner_ = false;
nls_date_format_.reset();
nls_timestamp_format_.reset();
nls_timestamp_tz_format_.reset();
sql_mode_ = 0;
}
bool is_valid() const;
int assign(const ObCreateIndexArg& other)
@ -1851,6 +1859,10 @@ public:
if_not_exist_ = other.if_not_exist_;
with_rowid_ = other.with_rowid_;
is_inner_ = other.is_inner_;
nls_date_format_ = other.nls_date_format_;
nls_timestamp_format_ = other.nls_timestamp_format_;
nls_timestamp_tz_format_ = other.nls_timestamp_tz_format_;
sql_mode_ = other.sql_mode_;
}
return ret;
}
@ -1877,6 +1889,11 @@ public:
bool with_rowid_;
share::schema::ObTableSchema index_schema_; // Index table schema
bool is_inner_;
// Nls_xx_format is required when creating a functional index
common::ObString nls_date_format_;
common::ObString nls_timestamp_format_;
common::ObString nls_timestamp_tz_format_;
ObSQLMode sql_mode_;
};
struct ObCreateForeignKeyArg : public ObIndexArg {