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/mutations: begin work on multi-statement mutations #42298

Merged
merged 3 commits into from
Nov 11, 2019
Merged

sql/mutations: begin work on multi-statement mutations #42298

merged 3 commits into from
Nov 11, 2019

Conversation

maddyblue
Copy link
Contributor

No description provided.

@maddyblue maddyblue requested a review from rohany November 8, 2019 05:00
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@maddyblue
Copy link
Contributor Author

This is the beginning of how we might support multi-statement mutators.


// Check if a table has the needed column types.
LoopTable:
for refTable, refCols := range cols {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found an error that showed up in my ci (I think i sent it to you already), but i don't think you can use the same column in multiple foreign key constraints? This threw an error in some randomly generated create table statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a commit to address this. PTAL.

pkg/sql/mutations/mutations.go Show resolved Hide resolved
@rohany
Copy link
Contributor

rohany commented Nov 8, 2019

Reviewable isn't showing me the whole pr for some reason, so left some comments on the github reviewer

@rohany
Copy link
Contributor

rohany commented Nov 11, 2019

LGTM

@maddyblue
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Nov 11, 2019
42298: sql/mutations: begin work on multi-statement mutations r=mjibson a=mjibson



Co-authored-by: Matt Jibson <matt.jibson@gmail.com>
@craig
Copy link
Contributor

craig bot commented Nov 11, 2019

Build succeeded

@craig craig bot merged commit d73a18a into cockroachdb:master Nov 11, 2019
@maddyblue maddyblue deleted the rand-fk2 branch November 11, 2019 18:27
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