Skip to content

Commit

Permalink
driver: format null values correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed May 26, 2019
1 parent de528b3 commit 9f31570
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ func replaceArgumentsODBC(query string, args []driver.Value) string {
for i := range args {
var arg string
switch v := args[i].(type) {
case nil:
arg = "null"
case time.Time:
arg = v.Format(mysqlFormat)
case string:
Expand Down

0 comments on commit 9f31570

Please sign in to comment.