We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fda23 commit 9e75208Copy full SHA for 9e75208
client/conn.go
@@ -497,9 +497,9 @@ func (c *Conn) ReadOKPacket() (*Result, error) {
497
func (c *Conn) exec(query string) (*Result, error) {
498
err := c.exec_send(query)
499
if err != nil {
500
- return nil, err
+ return nil, errors.Trace(err)
501
}
502
- return c.readResult(false)
+ return errors.Trace(c.readResult(false))
503
504
505
// Sends COM_QUERY
@@ -689,7 +689,7 @@ func (c *Conn) SetQueryAttributes(attrs ...QueryAttribute) error {
689
690
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.
+// of the caller as query attribute `_line` when sending queries.
693
func (c *Conn) IncludeLine() {
694
c.includeLine = true
695
0 commit comments