Skip to content

Commit

Permalink
[APIS-989] Datatype information needs to be added. (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwany7seo committed Mar 15, 2024
1 parent a397bf7 commit 5789aae
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/jdbc/cubrid/jdbc/driver/CUBRIDDatabaseMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
"MULTISET",
"SET",
"LIST",
"SEQUENCE",
"JSON"
};
/* Data Type */
Expand Down Expand Up @@ -2013,6 +2014,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Short((short) java.sql.Types.ARRAY),
new Short((short) java.sql.Types.ARRAY),
new Short((short) java.sql.Types.ARRAY),
new Short((short) java.sql.Types.ARRAY),
new Short((short) java.sql.Types.VARCHAR)
};
/* Precision */
Expand Down Expand Up @@ -2048,6 +2050,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Integer(1073741823),
new Integer(1073741823),
new Integer(1073741823),
new Integer(1073741823),
new Integer(1073741823)
};
/* Literal prefix */
Expand Down Expand Up @@ -2083,18 +2086,20 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
"MULTISET",
"SET",
"LIST",
"SEQUENCE",
"'"
};
/* Literal Suffix */
Object[] column5 = {
"'", null, null, "'", "'", "'", "'", "'", null, null, null, null, null, null, null, "'",
"'", "'", "'", "'", "'", "'", "'", "'", "'", null, null, "'", null, null, null, "'"
"'", "'", "'", "'", "'", "'", "'", "'", "'", null, null, "'", null, null, null, null,
"'"
};
/* Create Params */
Object[] column6 = {
"(8)", "(3)", null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null
null, null, null, null, null
};
/* Nullable */
Object column7 = new Short((short) typeNullable);
Expand Down Expand Up @@ -2131,6 +2136,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Boolean(true),
new Boolean(true),
new Boolean(true),
new Boolean(true),
new Boolean(false)
};
/* Searchable */
Expand Down Expand Up @@ -2166,6 +2172,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Short((short) typePredBasic),
new Short((short) typePredBasic),
new Short((short) typePredBasic),
new Short((short) typePredBasic),
new Short((short) typePredBasic)
};
/* Unsigned attribute */
Expand Down Expand Up @@ -2201,6 +2208,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Boolean(true),
new Boolean(true),
new Boolean(true),
new Boolean(true),
new Boolean(true)
};
/* FIXED_PREC_SCALE */
Expand Down Expand Up @@ -2236,6 +2244,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Boolean(false),
new Boolean(false),
new Boolean(false),
new Boolean(false),
new Boolean(false)
};
/* AUTO_INCREMENT */
Expand Down Expand Up @@ -2275,6 +2284,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Integer(0),
new Integer(0),
new Integer(0),
new Integer(0),
new Integer(0)
};
/* MAXIMUM_SCALE */
Expand Down Expand Up @@ -2310,6 +2320,7 @@ public synchronized ResultSet getTypeInfo() throws SQLException {
new Integer(0),
new Integer(0),
new Integer(0),
new Integer(0),
new Integer(0)
};
/* SQL_DATA_TYPE */
Expand Down

0 comments on commit 5789aae

Please sign in to comment.