-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ALTER TABLE to operate on columns without COLUMN keyword (#145)
This PR adds support for the following valid ALTER TABLE syntax: ```sql ALTER TABLE <table-name> ADD <column-name> <data-type>; ``` and ```sql ALTER TABLE <table-name> DROP <column-name>; ``` Prior to this PR, these queries do not work and result in error conditions. For reference, here is the documented SQLite syntax for ALTER TABLE queries: https://www.sqlite.org/syntax/alter-table-stmt.html It shows that the COLUMN keyword is optional, and I've successfully tested syntax without the COLUMN keyword in both MySQL and SQLite. Reported by @JanJakes
- Loading branch information
1 parent
ac23456
commit 2561000
Showing
2 changed files
with
92 additions
and
4 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