-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: more failed cases for
modify_col.sql
- Loading branch information
Showing
4 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
CREATE TABLE test(i INTEGER, j TIMESTAMP TIME INDEX); | ||
CREATE TABLE test(id INTEGER PRIMARY KEY, i INTEGER, j TIMESTAMP TIME INDEX, k BOOLEAN); | ||
|
||
INSERT INTO test VALUES (1, 1), (2, 2); | ||
INSERT INTO test VALUES (1, 1, 1, false), (2, 2, 2, true); | ||
|
||
ALTER TABLE test ALTER COLUMN "I" TYPE STRING; | ||
|
||
ALTER TABLE test ALTER COLUMN I TYPE STRING; | ||
ALTER TABLE test ALTER COLUMN k TYPE DATE; | ||
|
||
SELECT * FROM test; | ||
ALTER TABLE test ALTER COLUMN id TYPE STRING; | ||
|
||
ALTER TABLE test ALTER COLUMN j TYPE STRING; | ||
|
||
ALTER TABLE test ALTER COLUMN I TYPE STRING; | ||
|
||
SELECT * FROM test; | ||
|
||
DESCRIBE test; | ||
|
||
DROP TABLE test; | ||
DROP TABLE test; |
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ SELECT * FROM test; | |
|
||
DESCRIBE test; | ||
|
||
DROP TABLE test; | ||
DROP TABLE test; |