Skip to content

Commit

Permalink
fix: loop recursion problem in OpenConnector (apache#387)
Browse files Browse the repository at this point in the history
fix: fix loop recursion problem in OpenConnector
  • Loading branch information
106umao authored Dec 6, 2022
1 parent f71bfa7 commit 1eccddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/datasource/sql/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (d *seataDriver) Open(name string) (driver.Conn, error) {
}

func (d *seataDriver) OpenConnector(name string) (c driver.Connector, err error) {
c = &dsnConnector{dsn: name, driver: d}
c = &dsnConnector{dsn: name, driver: d.target}
if driverCtx, ok := d.target.(driver.DriverContext); ok {
c, err = driverCtx.OpenConnector(name)
if err != nil {
Expand Down

0 comments on commit 1eccddf

Please sign in to comment.