Skip to content

Commit

Permalink
Extend assertions in testAlterTableRenameColumnToLongName
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk committed Mar 18, 2024
1 parent e23c416 commit a1eb688
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3524,7 +3524,9 @@ public void testAlterTableRenameColumnToLongName()

String validTargetColumnName = baseColumnName + "z".repeat(maxLength - baseColumnName.length());
assertUpdate("ALTER TABLE " + tableName + " RENAME COLUMN x TO " + validTargetColumnName);
assertQuery("SELECT " + validTargetColumnName + " FROM " + tableName, "VALUES 123");
assertUpdate("INSERT INTO " + tableName + " VALUES 456", 1);
assertQuery("SELECT " + validTargetColumnName + " FROM " + tableName, "VALUES 123, 456");
assertThat(query("SHOW STATS FOR " + tableName)).succeeds();
assertUpdate("DROP TABLE " + tableName);

if (maxColumnNameLength().isEmpty()) {
Expand Down

0 comments on commit a1eb688

Please sign in to comment.