Skip to content

Commit

Permalink
JDBC-445 Fix test after changes to getPseudoColumns
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Sep 16, 2018
1 parent ab90b3e commit 4a2f1e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/org/firebirdsql/jdbc/TestRowIdSupport.java
Expand Up @@ -28,6 +28,7 @@
import static org.firebirdsql.common.DdlHelper.executeCreateTable;
import static org.firebirdsql.common.FBTestProperties.getConnectionViaDriverManager;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

/**
Expand Down Expand Up @@ -78,7 +79,7 @@ public void testDbMetaDataGetPseudoColumns_table() throws Exception {
assertEquals("TABLE_NAME", "TESTROWID", rs.getString("TABLE_NAME"));
assertEquals("DATA_TYPE", Types.ROWID, rs.getObject("DATA_TYPE"));
assertEquals("COLUMN_SIZE", 8, rs.getObject("COLUMN_SIZE"));
assertEquals("DECIMAL_DIGITS", 0, rs.getObject("DECIMAL_DIGITS"));
assertNull("DECIMAL_DIGITS", rs.getObject("DECIMAL_DIGITS"));
assertEquals("NUM_PREC_RADIX", 10, rs.getObject("NUM_PREC_RADIX"));
assertEquals("COLUMN_USAGE", "NO_USAGE_RESTRICTIONS", rs.getString("COLUMN_USAGE"));
assertEquals("CHAR_OCTET_LENGTH", 8, rs.getObject("CHAR_OCTET_LENGTH"));
Expand All @@ -102,7 +103,7 @@ public void testDbMetaDataGetPseudoColumns_viewTwoTableJoin() throws Exception {
assertEquals("TABLE_NAME", "TESTROWIDVIEW", rs.getString("TABLE_NAME"));
assertEquals("DATA_TYPE", Types.ROWID, rs.getObject("DATA_TYPE"));
assertEquals("COLUMN_SIZE", 16, rs.getObject("COLUMN_SIZE"));
assertEquals("DECIMAL_DIGITS", 0, rs.getObject("DECIMAL_DIGITS"));
assertNull("DECIMAL_DIGITS", rs.getObject("DECIMAL_DIGITS"));
assertEquals("NUM_PREC_RADIX", 10, rs.getObject("NUM_PREC_RADIX"));
assertEquals("COLUMN_USAGE", "NO_USAGE_RESTRICTIONS", rs.getString("COLUMN_USAGE"));
assertEquals("CHAR_OCTET_LENGTH", 16, rs.getObject("CHAR_OCTET_LENGTH"));
Expand Down

0 comments on commit 4a2f1e4

Please sign in to comment.