[BUGFIX]fix show create tablegroup's sharding result cannot execute in terminal

This commit is contained in:
obdev
2024-02-07 08:23:08 +00:00
committed by ob-robot
parent c1685148ea
commit 46299d3b1d
2 changed files with 31 additions and 33 deletions

View File

@ -2841,9 +2841,7 @@ int ObSchemaPrinter::print_tablegroup_definition_tablegroup_options(
} else if (compat_version >= DATA_VERSION_4_2_0_0) {
const ObString sharding = tablegroup_schema.get_sharding();
if (OB_FAIL(databuff_printf(buf, buf_len, pos,
is_oracle_mode
? " SHARDING = \"%.*s\""
: " SHARDING = %.*s",
" SHARDING = \'%.*s\'",
sharding.length(), sharding.ptr()))) {
SHARE_SCHEMA_LOG(WARN, "fail to print tablegroup sharding", K(ret), K(tablegroup_schema.get_sharding()));
}