NewDOid is a helper routine to create a *DOid initialized from a DInt.
(d oid.Oid)
| 5674 | |
| 5675 | // NewDOid is a helper routine to create a *DOid initialized from a DInt. |
| 5676 | func NewDOid(d oid.Oid) *DOid { |
| 5677 | // TODO(yuzefovich): audit the callers of NewDOid to see whether any want to |
| 5678 | // create a DOid with a semantic type different from types.Oid. |
| 5679 | oidDatum := MakeDOid(d, types.Oid) |
| 5680 | return &oidDatum |
| 5681 | } |
| 5682 | |
| 5683 | // AsDOid attempts to retrieve a DOid from an Expr, returning a DOid and |
| 5684 | // a flag signifying whether the assertion was successful. The function should |
no test coverage detected
searching dependent graphs…