@@ -13,9 +13,9 @@ import (
13
13
type Bind struct {
14
14
DestinationPortal string `json:"destination_portal,omitempty" yaml:"destination_portal,omitempty"`
15
15
PreparedStatement string `json:"prepared_statement,omitempty" yaml:"prepared_statement,omitempty"`
16
- ParameterFormatCodes []int16 `json:"parameter_format_codes,omitempty" yaml:"parameter_format_codes,omitempty"`
17
- Parameters [][]byte `json:"parameters,omitempty" yaml:"parameters,omitempty"`
18
- ResultFormatCodes []int16 `json:"result_format_codes,omitempty" yaml:"result_format_codes,omitempty"`
16
+ ParameterFormatCodes []int16 `json:"parameter_format_codes,omitempty" yaml:"parameter_format_codes,omitempty,flow "`
17
+ Parameters [][]byte `json:"parameters,omitempty" yaml:"parameters,omitempty,flow "`
18
+ ResultFormatCodes []int16 `json:"result_format_codes,omitempty" yaml:"result_format_codes,omitempty,flow "`
19
19
}
20
20
21
21
// Frontend identifies this message as sendable by a PostgreSQL frontend.
@@ -39,6 +39,7 @@ func (dst *Bind) Decode(src []byte) error {
39
39
return & invalidMessageFormatErr {messageType : "Bind" }
40
40
}
41
41
dst .PreparedStatement = string (src [rp : rp + idx ])
42
+ // fmt.Printf("PreparedStatement: %s\n", dst.PreparedStatement)
42
43
rp += idx + 1
43
44
44
45
if len (src [rp :]) < 2 {
@@ -104,7 +105,7 @@ func (dst *Bind) Decode(src []byte) error {
104
105
dst .ResultFormatCodes [i ] = int16 (binary .BigEndian .Uint16 (src [rp :]))
105
106
rp += 2
106
107
}
107
- dst . MarshalJSON ()
108
+
108
109
109
110
return nil
110
111
}
0 commit comments