-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
cli: should two statements work in sql shell? #4016
Comments
odd. pgwire should run all queries and return all results. |
I ran into a similar issue when implementing |
@knz: yup. this is where I found it too. I had to tweak one of your test cases in |
Oh wait are you saying that multiple statements simply don't work over pgwire? This is terrible. |
I honestly don't know. I was definitely not getting two sets of results. The behavior change was in getting the result from the first statement instead of the second. I didn't not check whether the second was running or not |
If you point On Fri, Jan 29, 2016 at 11:57 AM, marc notifications@github.com wrote:
|
we definitely run both. eg:
Our code uses the go interface the way it should, I'm 95% sure the limitation is in the sql driver itself. see golang/go#12382 for the related issue. |
Use the new functionality in lib/pq to select the next set of results when multiple statements were executed. Switch to using the "postgres" SQL driver in the cli tests. Remove runPrettyQueryWithFormat. It was only used in tests. Fixes cockroachdb#4016.
Use the new functionality in lib/pq to select the next set of results when multiple statements were executed. Switch to using the "postgres" SQL driver in the cli tests. Remove runPrettyQueryWithFormat. It was only used in tests. Fixes cockroachdb#4016.
Use the new functionality in lib/pq to select the next set of results when multiple statements were executed. Fixes cockroachdb#4016.
Use the new functionality in lib/pq to select the next set of results when multiple statements were executed. Fixes cockroachdb#4016.
eg: running the following in the sql client:
I had to change something similar in https://github.com/cockroachdb/cockroach/pull/3757/files#diff-7d7fb132e111ef7398af7150b1d54a32
Example_SQL
Line 544. With the cockroach driver, the final result was from the last query. With the postgres driver, only the first query is run.The text was updated successfully, but these errors were encountered: