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