Skip to content

Commit 3152230

Browse files
Merge pull request #294 from data-integrations/CDAP-19532
CDAP-19532 | allow precision 0 for Oracle Number data type in generic database plugin - Fix tests
2 parents d03cd2d + 2012c0f commit 3152230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database-commons/src/test/java/io/cdap/plugin/db/CommonSchemaReaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void testGetSchemaHandlesBytes() throws SQLException {
154154
Assert.assertEquals(Schema.of(Schema.Type.BYTES), reader.getSchema(metadata, 4));
155155
}
156156

157-
@Test(expected = SQLException.class)
157+
@Test(expected = IllegalArgumentException.class)
158158
public void testGetSchemaThrowsExceptionOnNumericWithZeroPrecision() throws SQLException {
159159
when(metadata.getColumnType(eq(1))).thenReturn(Types.NUMERIC);
160160
when(metadata.getPrecision(eq(1))).thenReturn(0);

0 commit comments

Comments
 (0)