Skip to content
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

sql: disallow UDF in SET DEFAULT and SET ON UPDATE #97390

Conversation

chengxiong-ruan
Copy link
Contributor

@chengxiong-ruan chengxiong-ruan commented Feb 21, 2023

Epic: None.

Release note (sql change): previously users were able to sneak in UDF usage from tables with SET DEFAULT and SET ON UPDATE even they are disallowed from CREATE TABLE and ADD COLUMN. This patch disallows those two cases from ALTER TABLE ALTER COLUMN.

Release note (sql change): previously users were able to sneak
in UDF usage from tables with `SET DEFAULT` and `SET ON UPDATE`
even they are disallowed from `CREATE TABLE` and `ADD COLUMN`.
This patch disallows those two cases from `ALTER TABLE ALTER COLUMN`.
@chengxiong-ruan chengxiong-ruan marked this pull request as ready for review February 21, 2023 16:08
@chengxiong-ruan chengxiong-ruan requested a review from a team February 21, 2023 16:08
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@chengxiong-ruan
Copy link
Contributor Author

TFTR!
bors r+

@craig
Copy link
Contributor

craig bot commented Feb 21, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants