[#3249] Fixed broken unit tests

This commit is contained in:
Lukas Eder 2014-05-07 18:43:05 +02:00
parent 19478a5890
commit 068cd10c98
2 changed files with 4 additions and 4 deletions

View File

@ -1566,7 +1566,7 @@ public class BasicTest extends AbstractTest {
assertEquals("insert into `TABLE1` (`ID1`, `NAME1`, `DATE1`) select 1 from dual", r_ref().render(q));
// [#1069] Allow for specifying custom fields
q = create.insertInto(TABLE1, FIELD_ID1).select(selectOne());
q = create.insertInto(TABLE1, FIELD_ID1).select(select(one()));
assertEquals("insert into `TABLE1` (`ID1`) select 1 from dual", r_refI().render(q));
assertEquals("insert into `TABLE1` (`ID1`) select 1 from dual", r_ref().render(q));

View File

@ -124,9 +124,9 @@ import static org.jooq.SQLDialect.MYSQL;
import static org.jooq.SQLDialect.POSTGRES;
import static org.jooq.impl.DSL.exists;
import static org.jooq.impl.DSL.notExists;
import static org.jooq.impl.DSL.one;
import static org.jooq.impl.DSL.row;
import static org.jooq.impl.DSL.select;
import static org.jooq.impl.DSL.selectOne;
import static org.jooq.impl.DSL.val;
import static org.jooq.impl.DSL.values;
import static org.jooq.impl.DefaultVisitListenerProvider.providers;
@ -961,7 +961,7 @@ public class VisitContextTest extends AbstractTest {
asList(CONDITION, CONDITION_EXISTS, SELECT, SELECT_WINDOW),
asList(CONDITION, CONDITION_EXISTS, SELECT, SELECT_ORDER_BY)
),
exists(selectOne()));
exists(select(one())));
}
@Test
@ -985,7 +985,7 @@ public class VisitContextTest extends AbstractTest {
asList(CONDITION, CONDITION_NOT_EXISTS, SELECT, SELECT_WINDOW),
asList(CONDITION, CONDITION_NOT_EXISTS, SELECT, SELECT_ORDER_BY)
),
notExists(selectOne()));
notExists(select(one())));
}
@Test