aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/xorm.io/builder/sql.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/xorm.io/builder/sql.go')
-rw-r--r--vendor/xorm.io/builder/sql.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/xorm.io/builder/sql.go b/vendor/xorm.io/builder/sql.go
index a6d1066b82..60f22621fc 100644
--- a/vendor/xorm.io/builder/sql.go
+++ b/vendor/xorm.io/builder/sql.go
@@ -59,6 +59,9 @@ func ToBoundSQL(cond interface{}) (string, error) {
}
func noSQLQuoteNeeded(a interface{}) bool {
+ if a == nil {
+ return false
+ }
switch a.(type) {
case int, int8, int16, int32, int64:
return true