fix information_schema.statistics nullable bug

This commit is contained in:
st0
2022-03-04 11:46:37 +08:00
committed by LINxiansheng
parent ab74cf7478
commit 0ccf105b38

View File

@ -648,9 +648,7 @@ int ObTableIndex::add_normal_index_column(const ObString& database_name, const O
} }
// null // null
case OB_APP_MIN_COLUMN_ID + 12: { case OB_APP_MIN_COLUMN_ID + 12: {
if (column_schema->is_rowkey_column()) { if (column_schema->is_nullable()) {
cells[cell_idx].set_varchar(ObString(""));
} else if (column_schema->is_nullable()) {
cells[cell_idx].set_varchar(ObString("YES")); cells[cell_idx].set_varchar(ObString("YES"));
} else { } else {
cells[cell_idx].set_varchar(ObString("")); cells[cell_idx].set_varchar(ObString(""));