Skip to content

Commit b0ded78

Browse files
authored
some tools use getColumnDisplaySize, No exceptions should be thrown. (#16430)
use getPrecision substitution Indicates the designated column's normal maximum width in characters.
1 parent b02a22f commit b0ded78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBResultMetadata.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public int getColumnCount() {
175175
}
176176

177177
@Override
178-
public int getColumnDisplaySize(int arg0) throws SQLException {
179-
throw new SQLException(Constant.METHOD_NOT_SUPPORTED);
178+
public int getColumnDisplaySize(int column) throws SQLException {
179+
return getPrecision(column);
180180
}
181181

182182
@Override

0 commit comments

Comments
 (0)