Skip to content

Commit 14a90c2

Browse files
Merge pull request #1689 from cdapio/CDAP-19532
CDAP-19532 | Allow precision 0 for Oracle Number data type in generic database plugin
2 parents 4cb2b1c + 2aca20e commit 14a90c2

File tree

1 file changed

+0
-5
lines changed
  • hydrator-common/src/main/java/io/cdap/plugin/common/db

1 file changed

+0
-5
lines changed

hydrator-common/src/main/java/io/cdap/plugin/common/db/DBUtils.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,6 @@ public static Schema getSchema(String typeName, int sqlType, int precision, int
322322

323323
case Types.NUMERIC:
324324
case Types.DECIMAL:
325-
// decimal type with precision 0 is not supported
326-
if (precision == 0) {
327-
throw new SQLException(new UnsupportedTypeException(
328-
String.format("Column %s has unsupported SQL Type: %s with precision 0.", columnName, typeName)));
329-
}
330325
if (handleAsDecimal) {
331326
return Schema.decimalOf(precision, scale);
332327
} else {

0 commit comments

Comments
 (0)