Skip to content

Commit

Permalink
fix informix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 4, 2017
1 parent a2dd802 commit 2d551c6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -189,7 +189,7 @@ public void testDisableAutoincrement() throws Exception {
Table tableFromDatabase = dropCreateAndThenReadTable(table);

table.getColumnWithName("ID").setAutoIncrement(false);
table.getColumnWithName("COL1").setSize("1000");
table.getColumnWithName("COL1").setSize("254");
table.getColumnWithName("COL1").setRequired(true);

platform.alterTables(false, table);
Expand All @@ -200,7 +200,7 @@ public void testDisableAutoincrement() throws Exception {

/* sqlite character fields do not limit based on size */
if (!platform.getName().equals(DatabaseNamesConstants.SQLITE)) {
assertEquals(1000, tableFromDatabase.getColumnWithName("COL1").getSizeAsInt());
assertEquals(254, tableFromDatabase.getColumnWithName("COL1").getSizeAsInt());
}

}
Expand Down

0 comments on commit 2d551c6

Please sign in to comment.