summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/schema/sqlfmt.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/uptrace/bun/schema/sqlfmt.go')
-rw-r--r--vendor/github.com/uptrace/bun/schema/sqlfmt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/uptrace/bun/schema/sqlfmt.go b/vendor/github.com/uptrace/bun/schema/sqlfmt.go
index 7b538cd0c..bbdb0a01f 100644
--- a/vendor/github.com/uptrace/bun/schema/sqlfmt.go
+++ b/vendor/github.com/uptrace/bun/schema/sqlfmt.go
@@ -40,7 +40,7 @@ type QueryWithArgs struct {
var _ QueryAppender = QueryWithArgs{}
func SafeQuery(query string, args []interface{}) QueryWithArgs {
- if query != "" && args == nil {
+ if args == nil {
args = make([]interface{}, 0)
}
return QueryWithArgs{Query: query, Args: args}