mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Remove unimplemented JSON marshalling for FunctionCall type.
This commit is contained in:
parent
3d9a54f092
commit
40ecac487c
@ -2,7 +2,6 @@ package pgproto3
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
|
||||||
"github.com/jackc/pgio"
|
"github.com/jackc/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -93,12 +92,3 @@ func (src *FunctionCall) Encode(dst []byte) []byte {
|
|||||||
pgio.SetInt32(dst[sp:], int32(len(dst[sp:])))
|
pgio.SetInt32(dst[sp:], int32(len(dst[sp:])))
|
||||||
return dst
|
return dst
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalJSON implements encoding/json.Marshaler.
|
|
||||||
func (src FunctionCall) MarshalJSON() ([]byte, error) {
|
|
||||||
return json.Marshal(struct {
|
|
||||||
Type string
|
|
||||||
}{
|
|
||||||
Type: "FunctionCall",
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user