wjywbs commented on issue #667: URL: https://github.com/apache/arrow-go/issues/667#issuecomment-3953850142
Thanks for your reply. Codex only generated the patch below. Is this ok? Also, is [this link](https://github.com/apache/arrow-adbc/tree/main/go/adbc/sqldriver/flightsql) the ADBC FlightSQL driver? ``` diff --git a/arrow/flight/flightsql/driver/driver.go b/arrow/flight/flightsql/driver/driver.go --- a/arrow/flight/flightsql/driver/driver.go +++ b/arrow/flight/flightsql/driver/driver.go @@ -505,7 +505,15 @@ defer cancel() } - info, err := c.client.Execute(execCtx, query) + var ( + info *flight.FlightInfo + err error + ) + if c.txn != nil && c.txn.ID().IsValid() { + info, err = c.txn.Execute(execCtx, query) + } else { + info, err = c.client.Execute(execCtx, query) + } if err != nil { return nil, err } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
