From c457958bb4b9877bcff764785dab00d69f1c1456 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sun, 19 Aug 2012 13:30:13 +0200 Subject: [PATCH] [#430] Add support for the Firebird database - Fixed more data types --- .../jooq/util/firebird/FirebirdDataType.java | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/util/firebird/FirebirdDataType.java b/jOOQ/src/main/java/org/jooq/util/firebird/FirebirdDataType.java index bd7d984960..0a6f5214b6 100644 --- a/jOOQ/src/main/java/org/jooq/util/firebird/FirebirdDataType.java +++ b/jOOQ/src/main/java/org/jooq/util/firebird/FirebirdDataType.java @@ -43,8 +43,6 @@ import java.sql.Time; import java.sql.Timestamp; import org.jooq.DataType; -import org.jooq.Record; -import org.jooq.Result; import org.jooq.SQLDialect; import org.jooq.impl.AbstractDataType; import org.jooq.impl.SQLDataType; @@ -98,11 +96,16 @@ public class FirebirdDataType extends AbstractDataType { // Compatibility types for supported SQLDataTypes // ------------------------------------------------------------------------- - protected static final FirebirdDataType __TINYINT = new FirebirdDataType(SQLDataType.TINYINT, "smallint"); - protected static final FirebirdDataType __NCHAR = new FirebirdDataType(SQLDataType.NCHAR, "char"); - protected static final FirebirdDataType __NCLOB = new FirebirdDataType(SQLDataType.NCLOB, "clob"); - protected static final FirebirdDataType __LONGNVARCHAR = new FirebirdDataType(SQLDataType.LONGNVARCHAR, "longvarchar"); - protected static final FirebirdDataType __NVARCHAR = new FirebirdDataType(SQLDataType.NVARCHAR, "varchar", "varchar(32672)"); + protected static final FirebirdDataType __BINARY = new FirebirdDataType(SQLDataType.BINARY, "blob"); + protected static final FirebirdDataType __FLOAT = new FirebirdDataType(SQLDataType.FLOAT, "double precision"); + protected static final FirebirdDataType __LONGNVARCHAR = new FirebirdDataType(SQLDataType.LONGNVARCHAR, "blob sub_type text"); + protected static final FirebirdDataType __LONGVARBINARY = new FirebirdDataType(SQLDataType.LONGVARBINARY, "blob"); + protected static final FirebirdDataType __LONGVARCHAR = new FirebirdDataType(SQLDataType.LONGVARCHAR, "varchar", "varchar(32672)"); + protected static final FirebirdDataType __NCHAR = new FirebirdDataType(SQLDataType.NCHAR, "char"); + protected static final FirebirdDataType __NCLOB = new FirebirdDataType(SQLDataType.NCLOB, "clob"); + protected static final FirebirdDataType __NVARCHAR = new FirebirdDataType(SQLDataType.NVARCHAR, "varchar", "varchar(32672)"); + protected static final FirebirdDataType __TINYINT = new FirebirdDataType(SQLDataType.TINYINT, "smallint"); + protected static final FirebirdDataType __VARBINARY = new FirebirdDataType(SQLDataType.VARBINARY, "blob"); // ------------------------------------------------------------------------- // Compatibility types for supported Java types @@ -114,11 +117,6 @@ public class FirebirdDataType extends AbstractDataType { // Dialect-specific data types and synonyms thereof // ------------------------------------------------------------------------- - public static final FirebirdDataType VARCHARIGNORECASE = new FirebirdDataType(SQLDataType.VARCHAR, "varchar_ignorecase", "varchar_ignorecase(32672)"); - public static final FirebirdDataType OBJECT = new FirebirdDataType(SQLDataType.OTHER, "object"); - public static final FirebirdDataType> ROW = new FirebirdDataType>(SQLDataType.RESULT, "row"); - - private FirebirdDataType(SQLDataType sqlDataType, String typeName) { super(SQLDialect.FIREBIRD, sqlDataType, sqlDataType.getType(), typeName); }