Method
getArrayElementOID
(ctx context.Context, oid uint32)
Source from the content-addressed store, hash-verified
| 1362 | } |
| 1363 | |
| 1364 | func (c *Conn) getArrayElementOID(ctx context.Context, oid uint32) (uint32, error) { |
| 1365 | var typelem uint32 |
| 1366 | |
| 1367 | err := c.QueryRow(ctx, "select typelem from pg_type where oid=$1", oid).Scan(&typelem) |
| 1368 | if err != nil { |
| 1369 | return 0, err |
| 1370 | } |
| 1371 | |
| 1372 | return typelem, nil |
| 1373 | } |
| 1374 | |
| 1375 | func (c *Conn) getRangeElementOID(ctx context.Context, oid uint32) (uint32, error) { |
| 1376 | var typelem uint32 |
Tested by
no test coverage detected