Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,10 @@ public void testAddColumn()
assertQueryFails("ALTER TABLE " + table.getName() + " ADD COLUMN q bad_type", ".* Unknown type 'bad_type' for column 'q'");

assertUpdate("ALTER TABLE " + table.getName() + " ADD COLUMN a varchar(50)");
// Verify table state after adding a column, but before inserting anything to it
assertQuery(
"SELECT * FROM " + table.getName(),
"VALUES ('first', NULL)");
assertUpdate("INSERT INTO " + table.getName() + " SELECT 'second', 'xxx'", 1);
assertQuery(
"SELECT x, a FROM " + table.getName(),
Expand Down