Skip to content

Commit

Permalink
fix query row (#70)
Browse files Browse the repository at this point in the history
fix query row param
  • Loading branch information
chris-sun-star authored Sep 21, 2023
1 parent 82d4105 commit 10074b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/oceanbase/operation/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (m *OceanbaseOperationManager) QueryRowWithTimeout(timeout time.Duration, r
return err
}
func (m *OceanbaseOperationManager) QueryRow(ret any, sql string, params ...any) error {
return m.QueryRowWithTimeout(config.DefaultSqlTimeout, ret, sql, params)
return m.QueryRowWithTimeout(config.DefaultSqlTimeout, ret, sql, params...)
}

func (m *OceanbaseOperationManager) QueryListWithTimeout(timeout time.Duration, ret any, sql string, params ...any) error {
Expand Down

0 comments on commit 10074b7

Please sign in to comment.