Skip to content

Commit

Permalink
fix: Properly format time.Time values (databricks#207)
Browse files Browse the repository at this point in the history
Closes databricks#206

Signed-off-by: candiduslynx <candiduslynx@gmail.com>
Signed-off-by: Esdras Beleza <esdras@esdrasbeleza.com>
  • Loading branch information
candiduslynx authored and esdrasbeleza committed Apr 15, 2024
1 parent 8ec7a3b commit fd855ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func inferTypes(params []Parameter) {
param.Value = strconv.FormatFloat(float64(value), 'f', -1, 32)
param.Type = SqlFloat
case time.Time:
param.Value = value.String()
param.Value = value.Format(time.RFC3339Nano)
param.Type = SqlTimestamp
case nil:
param.Value = nil
Expand Down

0 comments on commit fd855ac

Please sign in to comment.