Equals implements the types.ExtendedType interface.
(otherType sql.Type)
| 565 | |
| 566 | // Equals implements the types.ExtendedType interface. |
| 567 | func (t *DoltgresType) Equals(otherType sql.Type) bool { |
| 568 | if otherExtendedType, ok := otherType.(*DoltgresType); ok { |
| 569 | return bytes.Equal(t.Serialize(), otherExtendedType.Serialize()) |
| 570 | } |
| 571 | return false |
| 572 | } |
| 573 | |
| 574 | // FormatValue implements the types.ExtendedType interface. Callers with |
| 575 | // a session context should use FormatValueWithContext instead, since |
no test coverage detected