2
0

pgtype.JSON(B).Value now returns []byte

Allows scanning jsonb column into *json.RawMessage.

fixes #409
This commit is contained in:
Jack Christensen
2018-04-14 09:17:56 -05:00
parent 6556ef67cb
commit 5297846239
5 changed files with 58 additions and 1 deletions
+4
View File
@@ -495,6 +495,10 @@ func (r *Rows) Next(dest []driver.Value) error {
r.values[i] = &pgtype.Int4{}
case pgtype.Int8OID:
r.values[i] = &pgtype.Int8{}
case pgtype.JSONOID:
r.values[i] = &pgtype.JSON{}
case pgtype.JSONBOID:
r.values[i] = &pgtype.JSONB{}
case pgtype.OIDOID:
r.values[i] = &pgtype.OIDValue{}
case pgtype.TimestampOID: