Type implements the interface sql.Expression.
(ctx *sql.Context)
| 230 | |
| 231 | // Type implements the interface sql.Expression. |
| 232 | func (d *DomainColumn) Type(ctx *sql.Context) sql.Type { |
| 233 | if d.Typ.IsEmptyType() { |
| 234 | return pgtypes.Unknown |
| 235 | } |
| 236 | return d.Typ |
| 237 | } |
| 238 | |
| 239 | // IsNullable implements the interface sql.Expression. |
| 240 | func (d *DomainColumn) IsNullable(ctx *sql.Context) bool { |
nothing calls this directly
no test coverage detected