sub query may error schema #968 #1020

This commit is contained in:
yanhuqing
2019-02-26 21:31:20 +08:00
parent 9c2fc37bd7
commit bb2ff108d2

View File

@@ -728,7 +728,7 @@ public final class RouterUtil {
}
if (tables.size() == 1) {
return RouterUtil.tryRouteForOneTable((SchemaConfig) (schemaMap.values().toArray()[0]), routeUnit, tables.get(0), rrs, isSelect, cachePool, node);
return RouterUtil.tryRouteForOneTable((schemaMap.get(tables.get(0))), routeUnit, tables.get(0), rrs, isSelect, cachePool, node);
}
/**