Skip to content

Commit

Permalink
Properly decode boolean values
Browse files Browse the repository at this point in the history
  • Loading branch information
aaannz committed Aug 1, 2024
1 parent c90f8f9 commit 3ece561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dumper/dataWriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ func formatField(col sqlUtil.RowDataStructure) string {
val = fmt.Sprintf(`(%s)`, col.Value)
case "BYTEA":
return fmt.Sprintf(`decode('%s', 'hex')`, hex.EncodeToString(col.Value.([]byte)))
case "BOOL":
return fmt.Sprintf("%t", col.Value)
default:
val = pq.QuoteLiteral(fmt.Sprintf("%s", col.Value))
}
Expand Down
1 change: 1 addition & 0 deletions inter-server-sync.changes.oholecek.fix-boolean-ptf-export
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- decode boolean values for export (bsc#1228545)

0 comments on commit 3ece561

Please sign in to comment.