You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
d02e79a introduced new constructors for mysql.Result that always initializes Result.Resultset to be non-nil, but this breaks the logic in server.WriteValue that differentiates between a resultset response and an OK response. This in turn breaks responses to things like INSERT statements.
This is missed in tests because server/server_test.go creates Results without the constructors, and with nil Resultsets
The text was updated successfully, but these errors were encountered:
stgarrity
changed the title
zero-value of mysql.Result was expected by server.WriteValue, breaks in v.1.11.0
zero-value of mysql.Result was expected by server.WriteValue, breaks in v1.11.0Mar 3, 2025
d02e79a introduced new constructors for
mysql.Result
that always initializesResult.Resultset
to be non-nil, but this breaks the logic inserver.WriteValue
that differentiates between a resultset response and an OK response. This in turn breaks responses to things likeINSERT
statements.This is missed in tests because
server/server_test.go
createsResult
s without the constructors, and with nilResultset
sI have a fix https://github.com/userclouds/go-mysql/tree/stg/server_missed_ok that I'm happy to PR if it makes sense and I'm not mis-understanding the intent here.
Thanks!
The text was updated successfully, but these errors were encountered: