Skip to content

Commit

Permalink
fudge json
Browse files Browse the repository at this point in the history
  • Loading branch information
otan committed Nov 3, 2021
1 parent 63041ba commit e64bc44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sql/pgwire/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,9 @@ func writeBinaryInterval(b *writeBuffer, v duration.Duration) {

func writeBinaryJSON(b *writeBuffer, v json.JSON) {
s := v.String()
b.putInt32(int32(len(s) + 1))
b.putInt32(int32(len(s))) // + 1))
// Postgres version number, as of writing, `1` is the only valid value.
b.writeByte(1)
//b.writeByte(1)
b.writeString(s)
}

Expand Down

0 comments on commit e64bc44

Please sign in to comment.