Skip to content

Commit 626953d

Browse files
Update action_db2db.go
1 parent e39b66a commit 626953d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

internal/etlx/action_db2db.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,10 @@ func formatValue(v any) string {
246246
switch val := v.(type) {
247247
case nil:
248248
return "NULL"
249-
case int, int32, int64, float32, float64:
250-
return fmt.Sprintf("%v", val)
249+
case int, int32, int64:
250+
return fmt.Sprintf("%d", val)
251+
case float32, float64:
252+
return fmt.Sprintf("%f", val)
251253
case bool:
252254
if val {
253255
return "1"

0 commit comments

Comments
 (0)