summaryrefslogtreecommitdiffstats
path: root/tests/com/iciql/test/SamplesTest.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2012-01-11 09:20:51 -0500
committerJames Moger <james.moger@gmail.com>2012-01-11 09:20:51 -0500
commit2e077918649d398dce0948cb3feeb61b925ee8a4 (patch)
tree2488329364248fb08e346314ba53399d9230bf64 /tests/com/iciql/test/SamplesTest.java
parent28d2cf5b30ba18f20db54ed9447bc19cb0e4e1b0 (diff)
downloadiciql-0.7.8.tar.gz
iciql-0.7.8.zip
Generate SELECT T0.* type statementsv0.7.8
* Fixed negative rollover bug in the AS counter. * Replaced the non-threadsafe AS counter with an AtomicInteger. * Added an optional alias parameter to Query.toSQL() and QueryWhere.toSQL() to force SELECT T0.* select lists * Fixed bug with Query.select(Z z) which assumed that z is always an anonymous inner class.
Diffstat (limited to 'tests/com/iciql/test/SamplesTest.java')
-rw-r--r--tests/com/iciql/test/SamplesTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/com/iciql/test/SamplesTest.java b/tests/com/iciql/test/SamplesTest.java
index 5179d79..49a64f5 100644
--- a/tests/com/iciql/test/SamplesTest.java
+++ b/tests/com/iciql/test/SamplesTest.java
@@ -105,8 +105,10 @@ public class SamplesTest {
Product p = new Product();
List<Product> soldOutProducts = db.from(p).where(p.unitsInStock).is(0).orderBy(p.productId).select();
+ List<Product> soldOutProducts2 = db.from(p).where(p.unitsInStock).is(0).orderBy(p.productId).select(p);
assertEquals("[Chef Anton's Gumbo Mix: 0]", soldOutProducts.toString());
+ assertEquals(soldOutProducts.toString(), soldOutProducts2.toString());
}
@Test