-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Conversation
} | ||
} | ||
csql := string(out) | ||
csql := sqlx.Rebind(sqlx.DOLLAR, sql) |
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.
You might want to do the same for the cockroach driver, since it's a Postgres-compatible DB.
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.
agreed
query.go
Outdated
} | ||
qs := fmt.Sprintf("(%s)", strings.Join(inq, ",")) | ||
stmt = strings.Replace(stmt, "(?)", qs, 1) | ||
stmt = strings.Replace(stmt, "(?)", qs, 1) |
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.
Why are you doing this line twice?
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.
@mclark4386 cause I liked it so much! ;) accidental vim at it's best.
@stanislas-m fixed, can you look again when you have a chance? thanks. |
No description provided.