Skip to content

Commit

Permalink
chore: add integration test for issue2437
Browse files Browse the repository at this point in the history
  • Loading branch information
NiwakaDev committed Sep 24, 2023
1 parent 00272d5 commit 2780ff5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/cases/standalone/common/alter/add_incorrect_col.result
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

5 changes: 5 additions & 0 deletions tests/cases/standalone/common/alter/add_incorrect_col.sql
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;

0 comments on commit 2780ff5

Please sign in to comment.