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

Improved the "in" support #67

Merged
merged 4 commits into from
Apr 18, 2018
Merged

Improved the "in" support #67

merged 4 commits into from
Apr 18, 2018

Conversation

markbates
Copy link
Member

No description provided.

@markbates markbates requested a review from stanislas-m April 17, 2018 18:16
}
}
csql := string(out)
csql := sqlx.Rebind(sqlx.DOLLAR, sql)
Copy link
Member

Choose a reason for hiding this comment

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

You might want to do the same for the cockroach driver, since it's a Postgres-compatible DB.

Copy link
Member

Choose a reason for hiding this comment

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

agreed

query.go Outdated
}
qs := fmt.Sprintf("(%s)", strings.Join(inq, ","))
stmt = strings.Replace(stmt, "(?)", qs, 1)
stmt = strings.Replace(stmt, "(?)", qs, 1)
Copy link
Member

Choose a reason for hiding this comment

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

Why are you doing this line twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

@mclark4386 cause I liked it so much! ;) accidental vim at it's best.

@markbates
Copy link
Member Author

@stanislas-m fixed, can you look again when you have a chance? thanks.

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