ignite-5196 JDBC Driver fix
@@ -106,9 +106,9 @@ public class GridCacheQueryJdbcTask extends ComputeTaskAdapter<byte[], byte[]> {
else {
String cache = (String)args.get("cache");
- Map<? extends ComputeJob, ClusterNode> node = mapToNode(subgrid, args, first, cache);
+ Map<? extends ComputeJob, ClusterNode> node = null;
- if (node == null && cache == null) {
+ if (cache == null) {
boolean start = ignite.configuration().isClientMode();
IgniteCache<?, ?> cache0 =
@@ -117,6 +117,8 @@ public class GridCacheQueryJdbcTask extends ComputeTaskAdapter<byte[], byte[]> {
if (cache0 != null)
node = mapToNode(subgrid, args, first, cache0.getName());
}
+ else
+ node = mapToNode(subgrid, args, first, cache);
if (node != null)
return node;
