2
0

[]byte skips encoding/decoding

refs #104
This commit is contained in:
Jack Christensen
2015-11-12 14:54:25 -06:00
parent 26bb780063
commit e1215d9b19
5 changed files with 115 additions and 5 deletions
+2
View File
@@ -861,6 +861,8 @@ func (c *Conn) sendPreparedQuery(ps *PreparedStatement, arguments ...interface{}
err = arg.Encode(wbuf, oid)
case string:
err = encodeText(wbuf, arguments[i])
case []byte:
err = encodeBytea(wbuf, arguments[i])
default:
if v := reflect.ValueOf(arguments[i]); v.Kind() == reflect.Ptr {
if v.IsNil() {