2
0

Refactor encoding parameters for prepared statements

This commit is contained in:
Jack Christensen
2017-03-18 14:23:04 -05:00
parent 9e289cb186
commit a636ef31a4
3 changed files with 27 additions and 30 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ func (ct *copyFrom) run() (int, error) {
wbuf.WriteInt16(int16(len(ct.columnNames)))
for i, val := range values {
err = Encode(wbuf, ps.FieldDescriptions[i].DataType, val)
err = encodePreparedStatementArgument(wbuf, ps.FieldDescriptions[i].DataType, val)
if err != nil {
ct.cancelCopyIn()
return 0, err