-
Notifications
You must be signed in to change notification settings - Fork 161
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
Reply is not completely read error after running the query SELECT 1 #129
Comments
Here is the minimum program to reproduce this:
|
It appears |
You need to read result of "SELECT 1" query from server before send next query to it. |
So you can't use Exec to ignore results? I need to use QueryRow? I guess if it's expected behaviour of https://golang.org/pkg/database/sql/, you can close this. I think the error is non obvious to a person using the driver regardless and should probably be changed. |
When I run the query:
create database test
I get the error:
I also get the same error when doing a drop database.
Database:
mysql Ver 15.1 Distrib 10.1.14-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Go version:
go version go1.6.2 darwin/amd64
OS:
OS X Yosemite: 10.10.5
I'm also using
_ "github.com/ziutek/mymysql/godrv"
and opened the connection with sql.Open()The text was updated successfully, but these errors were encountered: