show table tbname; does not show the "timestamp" type description
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stado |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I have a table, with the column t of time type.
create table test2(id int, d date, t time);
In psql client, "\d" command shows the type description, while "show table " command shows that the "TYPE_NAME" is an empty string.
xtest=> \d test2
Table "public.test2"
Column | Type | Modifiers
-------
id | integer |
d | date |
t | time without time zone |
xtest=> show table test2;
COLUMN_NAME | SQL_DATA_TYPE | TYPE_NAME | IS_NULLABLE | KEY | DEFAULT
-------
id | 4 | INTEGER | YES | NO |
d | 91 | DATE | YES | NO |
t | 92 | | YES | NO |
(3 rows)
======
In DataTypes.java:
public static String getJavaTypeDesc(int sqlType, int length, int precision, int scale, boolean withTimeZone) {
String typeString = "";
switch (sqlType) {
case Types.TIME:
case Types.TIMESTAMP:
}
}
Why the types "TIME" and "TIMESTAMP" do not get java type desc?
It is unclear, the reference to FB# 7753 is not longer available.
So always call getJavaTypeDesc to get type description.