Exec inserts values into the COPY stream. The insert is asynchronous and Exec can return errors from previous Exec calls to the same COPY stmt.

You need to call Exec(nil) to sync the COPY stream and to get any errors from pending data, since Stmt.Close() doesn't return errors to the user.

Exec is referenced in 0 repositories