mirror of https://github.com/jackc/pgx.git
Remove unreachable code
parent
b5901f7dba
commit
dd26ad0091
4
conn.go
4
conn.go
|
@ -927,13 +927,9 @@ func (c *Conn) sendPreparedQuery(ps *PreparedStatement, arguments ...interface{}
|
||||||
case JsonOid, JsonbOid:
|
case JsonOid, JsonbOid:
|
||||||
err = encodeJson(wbuf, arguments[i])
|
err = encodeJson(wbuf, arguments[i])
|
||||||
default:
|
default:
|
||||||
if s, ok := arguments[i].(string); ok {
|
|
||||||
err = encodeText(wbuf, s)
|
|
||||||
} else {
|
|
||||||
return SerializationError(fmt.Sprintf("Cannot encode %T into oid %v - %T must implement Encoder or be converted to a string", arg, oid, arg))
|
return SerializationError(fmt.Sprintf("Cannot encode %T into oid %v - %T must implement Encoder or be converted to a string", arg, oid, arg))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue