HGD-coder commented on PR #997:
URL: 
https://github.com/apache/incubator-seata-go/pull/997#issuecomment-3570239055

   The previous test code used db: &sql.DB{} to create a database object. This 
is an incomplete instance where essential internal fields (like the driverConn) 
are nil. When the code under test attempts to call the conn.Close() method, it 
causes the program to crash (a panic) due to a nil pointer dereference.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to