-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
sql/pgwire: tidy up tests for Exec
with placeholders
#3856
Conversation
tamird
commented
Jan 14, 2016
results = append(results, result{res: res, err: err}) | ||
} | ||
{ | ||
res, err := stmt.Exec(test.params...) |
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.
What is this about?
LGTM |
This is related to #3819. |
sql/pgwire_test.go, line 363 [r2] (raw file):
Actually, it seems that the errors are supposed to be the same (they both must match test.error right?). I would just run both statements and first compare the errors to check they are the same. And then do the error checking once. Comments from the review on Reviewable.io |
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. sql/pgwire_test.go, line 363 [r2] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. sql/pgwire_test.go, line 363 [r2] (raw file): Comments from the review on Reviewable.io |
sql/pgwire_test.go, line 363 [r2] (raw file):
Comments from the review on Reviewable.io |
Exec
with placeholdersExec
with placeholders
Review status: 0 of 1 files reviewed at latest revision, 3 unresolved discussions. sql/pgwire_test.go, line 346 [r1] (raw file): sql/pgwire_test.go, line 383 [r1] (raw file): sql/pgwire_test.go, line 363 [r2] (raw file): Comments from the review on Reviewable.io |
LGTM modulo some of the other comments below. Review status: 0 of 1 files reviewed at latest revision, 4 unresolved discussions. sql/pgwire_test.go, line 262 [r3] (raw file): Comments from the review on Reviewable.io |
PTAL, this got a bit bigger. Review status: 0 of 1 files reviewed at latest revision, 4 unresolved discussions. sql/pgwire_test.go, line 346 [r1] (raw file): sql/pgwire_test.go, line 383 [r1] (raw file): sql/pgwire_test.go, line 363 [r2] (raw file): Comments from the review on Reviewable.io |
LGTM Review status: 0 of 1 files reviewed at latest revision, 3 unresolved discussions. Comments from the review on Reviewable.io |
sql/pgwire: tidy up tests for `Exec` with placeholders
raft: add doc to make restart clear