Method
getMultiRangeElementOID
(ctx context.Context, oid uint32)
Source from the content-addressed store, hash-verified
| 1384 | } |
| 1385 | |
| 1386 | func (c *Conn) getMultiRangeElementOID(ctx context.Context, oid uint32) (uint32, error) { |
| 1387 | var typelem uint32 |
| 1388 | |
| 1389 | err := c.QueryRow(ctx, "select rngtypid from pg_range where rngmultitypid=$1", oid).Scan(&typelem) |
| 1390 | if err != nil { |
| 1391 | return 0, err |
| 1392 | } |
| 1393 | |
| 1394 | return typelem, nil |
| 1395 | } |
| 1396 | |
| 1397 | func (c *Conn) getCompositeFields(ctx context.Context, oid uint32) ([]pgtype.CompositeCodecField, error) { |
| 1398 | var typrelid uint32 |
Tested by
no test coverage detected