2
0

Fix JSON encoding of *string

This commit is contained in:
Jack Christensen
2015-09-21 13:40:47 -05:00
parent 1b90ad1051
commit 4987d5425e
2 changed files with 36 additions and 0 deletions
+2
View File
@@ -798,6 +798,7 @@ func (c *Conn) sendPreparedQuery(ps *PreparedStatement, arguments ...interface{}
continue
}
encode:
switch arg := arguments[i].(type) {
case Encoder:
err = arg.Encode(wbuf, oid)
@@ -810,6 +811,7 @@ func (c *Conn) sendPreparedQuery(ps *PreparedStatement, arguments ...interface{}
continue
} else {
arguments[i] = v.Elem().Interface()
goto encode
}
}
switch oid {