Skip to content

Commit

Permalink
Another small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Jan 6, 2025
1 parent 6e1dc9b commit 9f92726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/connection_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ func (h *ConnectionHandler) copyFromFileQuery(stmt *node.CopyFrom) error {
return err
}

if sqlCtx.GetTransaction() != nil && !sqlCtx.GetIgnoreAutoCommit() {
if sqlCtx.GetTransaction() != nil && sqlCtx.GetIgnoreAutoCommit() {
txSession, ok := sqlCtx.Session.(sql.TransactionSession)
if !ok {
return fmt.Errorf("session does not implement sql.TransactionSession")
Expand Down

0 comments on commit 9f92726

Please sign in to comment.