Browse Source

fix: remove duplicate code (#532)

tags/v1.2.0
liushao GitHub 2 years ago
parent
commit
68aa5b1f41
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      pkg/datasource/sql/conn_xa.go

+ 0
- 4
pkg/datasource/sql/conn_xa.go View File

@@ -80,7 +80,6 @@ func (c *XAConn) QueryContext(ctx context.Context, query string, args []driver.N
}
return types.NewResult(types.WithRows(ret)), nil
})

if err != nil {
return nil, err
}
@@ -367,9 +366,6 @@ func (c *XAConn) CloseForce() error {
}
c.rollBacked = false
c.cleanXABranchContext()
if err := c.Conn.Close(); err != nil {
return err
}
c.releaseIfNecessary()
return nil
}


Loading…
Cancel
Save