-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Fix underspecified insert tests #961
Conversation
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.
A little mysterious, could use some explanatory comments
return n, transform.SameTree, nil | ||
} | ||
|
||
if _, ok := ins.Source.(*plan.TriggerExecutor); ok { |
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.
So we don't do this if there's a pre-insert trigger? Why? Leave a comment
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.
i'll copy the comment from above
if _, ok := parsed.(sql.Databaser); ok { | ||
_, isInsert := parsed.(*plan.InsertInto) | ||
_, isDatabaser := parsed.(sql.Databaser) | ||
if bl, ok := parsed.(*plan.Block); ok { |
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.
When is an insert ever inside a block node? What's going on here?
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.
this one also confuses me, daylon added Block last week for foreign keys
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.
looks like *sqlparser.MultiAlterDDL
is now a thing, Block wraps arbitrarily nested statements?
No inserts were not being run with prepareds. A lot of them were broken, but should be running in GMS now at least.
Edit: These pass Dolt also.