writeCopyDone signals the end of COPY data
(w io.Writer)
| 395 | binary.BigEndian.PutUint16(colBytes, uint16(numColumns)) |
| 396 | data = append(data, colBytes...) |
| 397 | |
| 398 | // Format for each column (0=text) |
| 399 | for i := int16(0); i < numColumns; i++ { |
| 400 | formatBytes := make([]byte, 2) |
| 401 | if textFormat { |
| 402 | binary.BigEndian.PutUint16(formatBytes, 0) |