Skip to content

Commit

Permalink
branch-2.1: [regression-test](framework)fix master_sql action bug in …
Browse files Browse the repository at this point in the history
…framwork #46874 (#46877)

Cherry-picked from #46874

Co-authored-by: shuke <[email protected]>
  • Loading branch information
github-actions[bot] and shuke987 authored Jan 13, 2025
1 parent d36f217 commit 2ac0f14
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,8 @@ class Suite implements GroovyInterceptable {
tupleResult = JdbcUtils.executeToStringList(context.getArrowFlightSqlConnection(), (PreparedStatement) arg)
} else if (tag.contains("target_sql")) {
tupleResult = JdbcUtils.executeToStringList(context.getTargetConnection(this), (PreparedStatement) arg)
} else if (tag.contains("master_sql")) {
tupleResult = JdbcUtils.executeToStringList(context.getMasterConnection(), (PreparedStatement) arg)
} else {
tupleResult = JdbcUtils.executeToStringList(context.getConnection(), (PreparedStatement) arg)
}
Expand All @@ -1151,6 +1153,8 @@ class Suite implements GroovyInterceptable {
(String) ("USE ${context.dbName};" + (String) arg))
} else if (tag.contains("target_sql")) {
tupleResult = JdbcUtils.executeToStringList(context.getTargetConnection(this), (String) arg)
} else if (tag.contains("master_sql")) {
tupleResult = JdbcUtils.executeToStringList(context.getMasterConnection(), (String) arg)
} else {
tupleResult = JdbcUtils.executeToStringList(context.getConnection(), (String) arg)
}
Expand Down

0 comments on commit 2ac0f14

Please sign in to comment.