-
Notifications
You must be signed in to change notification settings - Fork 665
Redshift alter column type no set #1912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1060,6 +1060,22 @@ pub trait Dialect: Debug + Any { | |||||||||||||
| fn supports_space_separated_column_options(&self) -> bool { | ||||||||||||||
| false | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| /// Returns true if the dialect supports `ALTER TABLE tbl ALTER COLUMN col TYPE <type>` | ||||||||||||||
| /// without specifying `SET DATA` before `TYPE`. | ||||||||||||||
| /// | ||||||||||||||
| /// - [Redshift](https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE.html#r_ALTER_TABLE-synopsis) | ||||||||||||||
| /// - [PostgreSQL](https://www.postgresql.org/docs/current/sql-altertable.html) | ||||||||||||||
| fn supports_alter_column_type_without_set(&self) -> bool { | ||||||||||||||
|
||||||||||||||
| false | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| /// Returns true if the dialect supports `ALTER TABLE tbl ALTER COLUMN col SET DATA TYPE <type> USING <exp>` | ||||||||||||||
|
||||||||||||||
| /// Returns true if the dialect supports `ALTER TABLE tbl ALTER COLUMN col SET DATA TYPE <type> USING <exp>` | |
| /// Returns true if the dialect supports the `USING` clause in an `ALTER COLUMN` statement. | |
| /// Example: | |
| /// ```sql | |
| /// ALTER TABLE tbl ALTER COLUMN col SET DATA TYPE <type> USING <exp>` | |
| /// ``` |
thinking something like this so that its a bit clearer which part of the statement the flag refers to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.