You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("db:" + targetedSql.getDatabaseName());
LOGGER.debug("sql:" + executableSql);
}
if (isSingleTarget(routerTarget)) {
// if has only one sql,then serial execute it
for (RouterTarget targetedSql : routerTarget.getSqls()) {
for (String executableSql : targetedSql.getSqls()) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("db:" + targetedSql.getDatabaseName());
LOGGER.debug("sql:" + executableSql);
}
Connection conn = connection.getRealConnection(targetedSql.getDatabaseName(), autoCommit);
Statement stmt = createStatement(conn);
actualStatements.add(stmt);
resultList.add(stmt.executeQuery(executableSql));
}
}
}
The text was updated successfully, but these errors were encountered:
com.dianping.zebra.shard.jdbc.ShardStatement#executeQueryByOriginal
此方法中isSingleTarget(routerTarget)情况下打印了db,sql日志;希望else情况下也将db、sql日志打印出来。谢谢!
The text was updated successfully, but these errors were encountered: