Ejemplo n.º 1
0
 public void testLstmtMultilineArgs() throws ZException, ZQLException {
   ZQL zql = new ZQL("test hello\nworld");
   List<Z> zList = zql.compile();
   assertEquals(1, zList.size());
   Z q = zList.get(0);
   assertEquals("select *\nfrom () a\nlimit hello\nworld;", q.getQuery());
   q.release();
 }
Ejemplo n.º 2
0
 public void testLstmtSimple() throws ZException, ZQLException {
   ZQL zql = new ZQL("test");
   List<Z> zList = zql.compile();
   assertEquals(1, zList.size());
   Z q = zList.get(0);
   assertEquals("select *\nfrom () a\nlimit ;", q.getQuery());
   q.release();
 }