mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-27 21:01:15 +08:00
Fix tests
This commit is contained in:
parent
c8a3ce78df
commit
f89b44676f
@ -354,6 +354,10 @@ public final class Connections {
|
||||
dropTable(templates, "DATE_TEST");
|
||||
stmt.execute(CREATE_TABLE_DATETEST);
|
||||
|
||||
// numbers
|
||||
dropTable(templates, "NUMBER_TEST");
|
||||
stmt.execute("create table NUMBER_TEST(col1 int)");
|
||||
|
||||
// xml
|
||||
dropTable(templates, "XML_TEST");
|
||||
stmt.execute("create table XML_TEST(COL varchar(128))");
|
||||
|
||||
@ -1,9 +1,16 @@
|
||||
package com.mysema.query;
|
||||
|
||||
import static com.mysema.query.Constants.*;
|
||||
import static com.mysema.query.Target.*;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.mysema.query.sql.Configuration;
|
||||
import com.mysema.query.sql.ForeignKey;
|
||||
@ -18,11 +25,6 @@ import com.mysema.query.types.path.NumberPath;
|
||||
import com.mysema.query.types.path.PathBuilder;
|
||||
import com.mysema.query.types.query.ListSubQuery;
|
||||
import com.mysema.testutil.ExcludeIn;
|
||||
import org.junit.Test;
|
||||
import static com.mysema.query.Constants.*;
|
||||
import static com.mysema.query.Target.*;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
|
||||
public class SubqueriesBase extends AbstractBaseTest {
|
||||
|
||||
@ -54,6 +56,7 @@ public class SubqueriesBase extends AbstractBaseTest {
|
||||
|
||||
@Test
|
||||
@SkipForQuoted
|
||||
@ExcludeIn(DB2) // ID is reserved IN DB2
|
||||
public void SubQueries() throws SQLException {
|
||||
// subquery in where block
|
||||
expectedQuery = "select e.ID from EMPLOYEE e "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user