Skip to content

Commit

Permalink
sub query may error schema #968 #1020
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhuqing666 committed Feb 26, 2019
1 parent 9c2fc37 commit bb2ff10
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -728,7 +728,7 @@ public static RouteResultset tryRouteForTablesComplex(Map<String, SchemaConfig>
}

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);
}

/**
Expand Down

0 comments on commit bb2ff10

Please sign in to comment.