Skip to content

Commit 9e75208

Browse files
dveedenlance6716
andauthored
Apply suggestions from code review
Co-authored-by: lance6716 <[email protected]>
1 parent f6fda23 commit 9e75208

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/conn.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ func (c *Conn) ReadOKPacket() (*Result, error) {
497497
func (c *Conn) exec(query string) (*Result, error) {
498498
err := c.exec_send(query)
499499
if err != nil {
500-
return nil, err
500+
return nil, errors.Trace(err)
501501
}
502-
return c.readResult(false)
502+
return errors.Trace(c.readResult(false))
503503
}
504504

505505
// Sends COM_QUERY
@@ -689,7 +689,7 @@ func (c *Conn) SetQueryAttributes(attrs ...QueryAttribute) error {
689689
}
690690

691691
// 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.
693693
func (c *Conn) IncludeLine() {
694694
c.includeLine = true
695695
}

0 commit comments

Comments
 (0)