[CP] fix default value of trace_id in __all_ddl_error_message

This commit is contained in:
simonjoylet 2023-11-30 04:41:28 +00:00 committed by ob-robot
parent f4f2a850c7
commit e57016f91a
3 changed files with 5 additions and 13 deletions

View File

@ -2717,9 +2717,7 @@ int ObInnerTableSchema::all_virtual_ddl_error_message_schema(ObTableSchema &tabl
}
if (OB_SUCC(ret)) {
ObObj trace_id_default;
trace_id_default.set_null();
ADD_COLUMN_SCHEMA_T("trace_id", //column_name
ADD_COLUMN_SCHEMA("trace_id", //column_name
++column_id, //column_id
0, //rowkey_id
0, //index_id
@ -2730,9 +2728,7 @@ int ObInnerTableSchema::all_virtual_ddl_error_message_schema(ObTableSchema &tabl
-1, //column_precision
-1, //column_scale
true, //is_nullable
false, //is_autoincrement
trace_id_default,
trace_id_default); //default_value
false); //is_autoincrement
}
table_schema.set_index_using_type(USING_BTREE);
table_schema.set_row_store_type(ENCODING_ROW_STORE);

View File

@ -856,9 +856,7 @@ int ObInnerTableSchema::all_ddl_error_message_schema(ObTableSchema &table_schema
}
if (OB_SUCC(ret)) {
ObObj trace_id_default;
trace_id_default.set_null();
ADD_COLUMN_SCHEMA_T("trace_id", //column_name
ADD_COLUMN_SCHEMA("trace_id", //column_name
++column_id, //column_id
0, //rowkey_id
0, //index_id
@ -869,9 +867,7 @@ int ObInnerTableSchema::all_ddl_error_message_schema(ObTableSchema &table_schema
-1, //column_precision
-1, //column_scale
true, //is_nullable
false, //is_autoincrement
trace_id_default,
trace_id_default); //default_value
false); //is_autoincrement
}
table_schema.set_index_using_type(USING_BTREE);
table_schema.set_row_store_type(ENCODING_ROW_STORE);

View File

@ -2804,7 +2804,7 @@ def_table_schema(
('user_message', 'longtext', 'true'),
('dba_message', 'varchar:OB_MAX_ERROR_MSG_LEN', 'true'),
('parent_task_id', 'int', 'false', 0),
('trace_id', 'varchar:OB_MAX_TRACE_ID_BUFFER_SIZE', 'true', 'NULL')
('trace_id', 'varchar:OB_MAX_TRACE_ID_BUFFER_SIZE', 'true')
],
)