File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -497,9 +497,9 @@ func (c *Conn) ReadOKPacket() (*Result, error) {
497
497
func (c * Conn ) exec (query string ) (* Result , error ) {
498
498
err := c .exec_send (query )
499
499
if err != nil {
500
- return nil , err
500
+ return nil , errors . Trace ( err )
501
501
}
502
- return c .readResult (false )
502
+ return errors . Trace ( c .readResult (false ) )
503
503
}
504
504
505
505
// Sends COM_QUERY
@@ -689,7 +689,7 @@ func (c *Conn) SetQueryAttributes(attrs ...QueryAttribute) error {
689
689
}
690
690
691
691
// IncludeLine can be passed as option when connecting to include the file name and line number
692
- // of the caller as query attribute when sending queries.
692
+ // of the caller as query attribute `_line` when sending queries.
693
693
func (c * Conn ) IncludeLine () {
694
694
c .includeLine = true
695
695
}
You can’t perform that action at this time.
0 commit comments