[CP] [to #52767397] fix mysqltest

This commit is contained in:
obdev
2024-02-27 08:45:30 +00:00
committed by ob-robot
parent 339ab51069
commit 2011ccb345
2 changed files with 4 additions and 8 deletions

View File

@ -1104,7 +1104,7 @@ int ObRawExprPrinter::print(ObAggFunRawExpr *expr)
}
}
if (OB_SUCC(ret)) {
if (!database_name.empty()) {
if (!database_name.empty() && database_name.case_compare(OB_SYS_DATABASE_NAME) != 0) {
DATA_PRINTF("%.*s.", LEN_AND_PTR(database_name));
}
if (!package_name.empty()) {
@ -3514,7 +3514,7 @@ int ObRawExprPrinter::print(ObWinFunRawExpr *expr)
}
}
if (OB_SUCC(ret)) {
if(!database.empty()){
if(!database.empty() && database.case_compare(OB_SYS_DATABASE_NAME) != 0) {
PRINT_IDENT_WITH_QUOT(database);
DATA_PRINTF(".");
}