Skip to content

Commit

Permalink
sql escape escaping null
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ban committed Jul 30, 2021
1 parent e8eb6fe commit 362a608
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql_escape.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import (

// provided template func
func sqlEscape(q interface{}) string {
if q == nil {
return "NULL"
}
return sqlEscapeType(reflect.ValueOf(q))
}

Expand Down

0 comments on commit 362a608

Please sign in to comment.