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
Line 352 of expectations.go causes a panic when the driver.Value is a slice of bytes because it is an uncomparable type:
panic: runtime error: comparing uncomparable type []uint8
This panic isn't recovered because it is called directly from sqlmock.Exec. A solution would be to use reflect.DeepEqual instead of using a != check. Another would be to check if either the dargs or the args[k] are slices of bytes and then user bytes.Equal, if not then default to the != check.
The text was updated successfully, but these errors were encountered:
Line 352 of expectations.go causes a panic when the driver.Value is a slice of bytes because it is an uncomparable type:
panic: runtime error: comparing uncomparable type []uint8
This panic isn't recovered because it is called directly from sqlmock.Exec. A solution would be to use reflect.DeepEqual instead of using a != check. Another would be to check if either the dargs or the args[k] are slices of bytes and then user bytes.Equal, if not then default to the != check.
The text was updated successfully, but these errors were encountered: