Skip to content

Commit

Permalink
[regression-test](framework)fix master_sql action bug in framwork (#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
shuke987 authored and Your Name committed Jan 13, 2025
1 parent d36f217 commit 46472c3
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 46472c3

Please sign in to comment.