-
-
Notifications
You must be signed in to change notification settings - Fork 234
[WIP]: LastIncrementId and name resolution collision fix #419
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
Conversation
dc1964a
to
1806284
Compare
587aae7
to
d23871f
Compare
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.
Generally fine, make sure you have engine tests too
For last_insert_id, check out script_queries.go, there's a bunch in there
@@ -55,7 +58,7 @@ func pushdownSort(ctx *sql.Context, a *Analyzer, n sql.Node, scope *Scope) (sql. | |||
name := strings.ToLower(n.Name()) | |||
if stringContains(childAliases, name) { | |||
colsFromChild = append(colsFromChild, n.Name()) | |||
} else if !stringContains(schemaCols, name) { | |||
} else if !tableColsContains(schemaCols, tableColFromNameable(n)) { |
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.
Seems obv correct, but make sure you add a test that breaks before and works now
No description provided.