Skip to content

Commit

Permalink
Drop created test table
Browse files Browse the repository at this point in the history
Drop created test table that in the tests: testAlterTableRenameColumnToLongName and testAlterTableAddLongColumnName.
  • Loading branch information
chenjian2664 authored and ebyhr committed Mar 25, 2024
1 parent 5a5a096 commit d11ce0f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3507,6 +3507,8 @@ public void testAlterTableAddLongColumnName()
assertThatThrownBy(() -> assertUpdate("ALTER TABLE " + tableName + " ADD COLUMN " + invalidTargetColumnName + " int"))
.satisfies(this::verifyColumnNameLengthFailurePermissible);
assertQuery("SELECT x FROM " + tableName, "VALUES 123");

assertUpdate("DROP TABLE " + tableName);
}

@Test
Expand Down Expand Up @@ -3538,6 +3540,8 @@ public void testAlterTableRenameColumnToLongName()
assertThatThrownBy(() -> assertUpdate("ALTER TABLE " + tableName + " RENAME COLUMN x TO " + invalidTargetTableName))
.satisfies(this::verifyColumnNameLengthFailurePermissible);
assertQuery("SELECT x FROM " + tableName, "VALUES 123");

assertUpdate("DROP TABLE " + tableName);
}

protected boolean columnExists(String tableName, String columnName)
Expand Down

0 comments on commit d11ce0f

Please sign in to comment.