mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Fix boolean mapping
This commit is contained in:
parent
f89b44676f
commit
8ec8108910
@ -187,6 +187,7 @@ public class DB2Templates extends SQLTemplates {
|
||||
add(Ops.DateTimeOps.TRUNC_MINUTE, "trunc_timestamp({0}, 'minute')");
|
||||
add(Ops.DateTimeOps.TRUNC_SECOND, "trunc_timestamp({0}, 'second')");
|
||||
|
||||
addTypeNameToCode("smallint", Types.BOOLEAN, true);
|
||||
addTypeNameToCode("smallint", Types.TINYINT, true);
|
||||
addTypeNameToCode("long varchar for bit data", Types.LONGVARBINARY);
|
||||
addTypeNameToCode("varchar () for bit data", Types.VARBINARY);
|
||||
|
||||
@ -356,7 +356,7 @@ public final class Connections {
|
||||
|
||||
// numbers
|
||||
dropTable(templates, "NUMBER_TEST");
|
||||
stmt.execute("create table NUMBER_TEST(col1 int)");
|
||||
stmt.execute("create table NUMBER_TEST(col1 smallint)");
|
||||
|
||||
// xml
|
||||
dropTable(templates, "XML_TEST");
|
||||
|
||||
@ -13,6 +13,7 @@ public class DB2SuiteTest extends AbstractSuite {
|
||||
public static class BeanPopulation extends BeanPopulationBase {}
|
||||
public static class Delete extends DeleteBase {}
|
||||
public static class Insert extends InsertBase {}
|
||||
public static class KeywordQuoting extends KeywordQuotingBase {}
|
||||
public static class LikeEscape extends LikeEscapeBase {}
|
||||
public static class Merge extends MergeBase {}
|
||||
public static class Select extends SelectBase {}
|
||||
|
||||
@ -10,6 +10,7 @@ public class DerbyLiteralsSuiteTest extends AbstractSuite {
|
||||
public static class BeanPopulation extends BeanPopulationBase {}
|
||||
public static class Delete extends DeleteBase {}
|
||||
public static class Insert extends InsertBase {}
|
||||
public static class KeywordQuoting extends KeywordQuotingBase {}
|
||||
public static class LikeEscape extends LikeEscapeBase {}
|
||||
public static class Merge extends MergeBase {}
|
||||
public static class Select extends SelectBase {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user