Issue in sync({alter: true}) with snowflake dialect #15525
Labels
dialect: snowflake
For issues and PRs. Things that involve Snowflake (and do not involve all dialects).
type: bug
Issue Creation Checklist
Bug Description
I am using sequelize with snowflake dialect and when I am trying to change schema for any existing column by using
sync({ alter: true })
I am getting the following errorThis is because on using
alter: true
SHOW FULL COLUMNS
query gets executed but snowflake doesn't support this.Instead snowflake supports
SHOW COLUMNS IN ${table};
You can refer to this link(https://docs.snowflake.com/en/sql-reference/sql/show-columns.html)
Reproducible Example
Here is the link to the SSCCE for this issue:
What do you expect to happen?
What is actually happening?
I am using sequelize with snowflake dialect and when I am trying to change schema for any existing column by using
sync({ alter: true })
I am getting the following errorThis is because on using
sequelize.sync({ alter: true });
SHOW FULL COLUMNS
query gets executed but snowflake doesn't support this.Instead snowflake supports
SHOW COLUMNS IN ${table};
You can refer to this link (https://docs.snowflake.com/en/sql-reference/sql/show-columns.html)
Environment
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
The text was updated successfully, but these errors were encountered: