-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add integration test for issue2437
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
tests/cases/standalone/common/alter/add_incorrect_col.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE select_should_not_fail_after_incorrect_alter(i INTEGER, j TIMESTAMP TIME INDEX); | ||
|
||
Affected Rows: 0 | ||
|
||
ALTER TABLE select_should_not_fail_after_incorrect_alter ADD column k string NOT NULL; | ||
|
||
Error: 1004(InvalidArguments), Invalid alter table(select_should_not_fail_after_incorrect_alter) request: no default value for column k | ||
|
||
DROP TABLE select_should_not_fail_after_incorrect_alter; | ||
|
||
Affected Rows: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE select_should_not_fail_after_incorrect_alter(i INTEGER, j TIMESTAMP TIME INDEX); | ||
|
||
ALTER TABLE select_should_not_fail_after_incorrect_alter ADD column k string NOT NULL; | ||
|
||
DROP TABLE select_should_not_fail_after_incorrect_alter; |