Description
We're running Go 1.1.1, MySQL 5.0.22 on a separate server (but the database is legacy and MySQL itself has been upgraded a few times, I'm sure it was 4.x at some point.) and "old_passwords" is set to ON. (verified with SHOW VARIABLES.)
I'm converting a batch of Perl and Ruby scripts to Go, and the Perl and Ruby scripts can connect to this legacy database with no problem. I'm trying to determine if I'm doing something wrong (relatively new to Go) or not.
In packets.go readResultOK(), the first time through it returns errOldPassword (data=[254]) as expected. Second time through it hits the default branch of the case statement, ultimately returning a "Error 1045: Access denied for user" back to the calling script.
I'm going to see if I can get the DBA to set "old_passwords" to OFF, but am still curious if I'm missing something. Thanks!