new date types newdecimal and longlong handling with drizzle connector
This commit is contained in:
+8
-2
@@ -128,7 +128,8 @@ public final class ResultsetColumnHeaderData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isDecimal() {
|
private boolean isDecimal() {
|
||||||
return "decimal".equalsIgnoreCase(this.columnType);
|
return "decimal".equalsIgnoreCase(this.columnType) || "NEWDECIMAL".equalsIgnoreCase(this.columnType);
|
||||||
|
//Refer org.drizzle.jdbc.internal.mysql.MySQLType.java
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isDate() {
|
private boolean isDate() {
|
||||||
@@ -152,7 +153,7 @@ public final class ResultsetColumnHeaderData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isAnyInteger() {
|
private boolean isAnyInteger() {
|
||||||
return isInt() || isSmallInt() || isTinyInt() || isMediumInt() || isBigInt();
|
return isInt() || isSmallInt() || isTinyInt() || isMediumInt() || isBigInt() || isLong();
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isInt() {
|
private boolean isInt() {
|
||||||
@@ -174,6 +175,11 @@ public final class ResultsetColumnHeaderData {
|
|||||||
private boolean isBigInt() {
|
private boolean isBigInt() {
|
||||||
return "bigint".equalsIgnoreCase(this.columnType);
|
return "bigint".equalsIgnoreCase(this.columnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean isLong() {
|
||||||
|
return "LONG".equalsIgnoreCase(this.columnType) || "LONGLONG".equalsIgnoreCase(this.columnType);
|
||||||
|
//Refer org.drizzle.jdbc.internal.mysql.MySQLType.java
|
||||||
|
}
|
||||||
|
|
||||||
private boolean isBit() {
|
private boolean isBit() {
|
||||||
return "bit".equalsIgnoreCase(this.columnType);
|
return "bit".equalsIgnoreCase(this.columnType);
|
||||||
|
|||||||
Reference in New Issue
Block a user