diff --git a/dialect.go b/dialect.go index f17cf784..3291d069 100644 --- a/dialect.go +++ b/dialect.go @@ -29,6 +29,7 @@ type Dialect interface { DB() *DB DBType() DbType SqlType(*Column) string + FormatBytes(b []byte) string QuoteStr() string AndStr() string @@ -90,6 +91,10 @@ func (b *Base) DBType() DbType { return b.Uri.DbType } +func (b *Base) FormatBytes(bs []byte) string { + return fmt.Sprintf("0x%x", bs) +} + func (b *Base) DriverName() string { return b.driverName }