-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Query has unexpected behavior on linux_amd64 #37
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
Comments
Does this only occur if you run this two queries in that order? |
I tried to get some answers to your question. But the problem becomes even more bizarre. Again, on my laptop darwin_amd64, everything works as expected. When I ssh to any linux_amd64 server and run the I'm trying to bundle this into a single reproducible test case. Please stay tuned. Do you test this driver on linux_amd64 against MySQL 5.1.63-rel13.4? |
Create a database on MySQL 5.1.63-rel13.4 with one table: CREATE TABLE `live` (
`user_id` int(11) NOT NULL,
`list` text NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 Insert one record: INSERT INTO live (user_id, list) VALUES (2, "999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999,999999999"); edit: make the list longer, because the real data is bigger than "1,2,3,4,5", and I think it might be the same bug as #38 Save this program as dbtest.go and run with On my laptop (darwin_amd64) it works as expected, printing the list. On my Linux server (linux_amd64) it errors with sql: no rows in result set. Running the latest version of your driver, as retrieved by |
This is definitely a bug in the Go-SQL-Driver. This code is exactly the same, but uses the |
Can you confirm, that the it works now? |
Test case confirmed working. Thanks! |
Steps:
Everything works great here. Then I try to actually use it for a different query.
This reliably panics with one of the two "Commands out of sync" errors, but ONLY on linux_amd64. It works fine on darwin_amd64.
Any insight appreciated.
The text was updated successfully, but these errors were encountered: