Skip to content

Conversation

andy-wm-arthur
Copy link
Contributor

No description provided.

@andy-wm-arthur andy-wm-arthur force-pushed the andy/last-increment-id branch from dc1964a to 1806284 Compare May 15, 2021 18:38
@andy-wm-arthur andy-wm-arthur force-pushed the andy/last-increment-id branch from 587aae7 to d23871f Compare May 17, 2021 13:44
Copy link
Member

@zachmu zachmu left a 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)) {
Copy link
Member

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

@andy-wm-arthur andy-wm-arthur marked this pull request as ready for review May 17, 2021 17:08
@andy-wm-arthur andy-wm-arthur merged commit 6fb83cc into master May 19, 2021
@andy-wm-arthur andy-wm-arthur deleted the andy/last-increment-id branch May 19, 2021 00:18
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.

2 participants