Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: sheet utf8 bytea conversion (#14098)

p0ny35cb0d2cd3e8
diff --git a/backend/store/sheet.go b/backend/store/sheet.go
index 6d303acb62..274acffc05 100644
--- a/backend/store/sheet.go
+++ b/backend/store/sheet.go
@@ -140,7 +140,7 @@ func (s *Store) listSheets(ctx context.Context, find *FindSheetMessage) ([]*Shee
sha256Field := "''"
if common.IsDev() {
- sha256Field = "encode(sha256(sheet.statement::bytea), 'hex')"
+ sha256Field = "encode(sha256(convert_to(sheet.statement, 'UTF8')), 'hex')"
}
tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})