Browse Source

verify Fixed grizzly-jersey's db test

Mike Smith 11 years ago
parent
commit
e85a3f5be8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      grizzly-jersey/src/main/java/hello/DbResource.java

+ 1 - 1
grizzly-jersey/src/main/java/hello/DbResource.java

@@ -39,7 +39,7 @@ public class DbResource {
     }
     }
     
     
     session.close();
     session.close();
-    return worlds;
+    return queries == 1 ? worlds[0] : worlds;
   }
   }
   
   
 }
 }