Skip to content

Commit 4ad42c0

Browse files
committed
Properly decode boolean values
1 parent c90f8f9 commit 4ad42c0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dumper/dataWriter.go

+2
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ func formatField(col sqlUtil.RowDataStructure) string {
383383
val = fmt.Sprintf(`(%s)`, col.Value)
384384
case "BYTEA":
385385
return fmt.Sprintf(`decode('%s', 'hex')`, hex.EncodeToString(col.Value.([]byte)))
386+
case "BOOLEAN":
387+
return fmt.Sprintf("%t", col.Value)
386388
default:
387389
val = pq.QuoteLiteral(fmt.Sprintf("%s", col.Value))
388390
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- decode boolean values for export (bsc#1228545)

0 commit comments

Comments
 (0)