mirror of
https://github.com/actiontech/dble.git
synced 2026-01-04 11:50:15 -06:00
fix hang inner 1981 (#3473)
This commit is contained in:
@@ -48,6 +48,7 @@ public class MySQLShardingSQLHandler {
|
||||
try {
|
||||
rrs = RouteService.getInstance().route(schemaConfig, type, sql, service);
|
||||
if (rrs == null) {
|
||||
service.writeErrMessage(ErrorCode.ER_PARSE_ERROR, "The sql cannot be parsed to the specified node");
|
||||
return;
|
||||
}
|
||||
if (rrs.getSqlType() == ServerParse.DDL && rrs.getSchema() != null) {
|
||||
|
||||
@@ -65,6 +65,8 @@ public final class RouteService {
|
||||
rrs = HintPlanHandler.route(hintInfo.getHintValue(), sqlType, hintInfo.getRealSql());
|
||||
} else if (type == DbleHintParser.DB_TYPE) {
|
||||
rrs = HintMasterDBHandler.route(schema, hintInfo.getHintValue(), sqlType, hintInfo.getRealSql(), service);
|
||||
} else {
|
||||
throw new SQLException("current hint type is not supported");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user