|
|
@@ -188,7 +188,15 @@ func (conditions *Conditions) Queries() []string {
|
|
|
func (conditions *Conditions) Args() []any {
|
|
|
args := make([]any, 0)
|
|
|
for _, conditionArgs := range conditions.args {
|
|
|
- args = append(args, conditionArgs...)
|
|
|
+ if conditionArgs == nil {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+
|
|
|
+ if len(conditionArgs) == 1 {
|
|
|
+ args = append(args, conditionArgs[0])
|
|
|
+ } else {
|
|
|
+ args = append(args, conditionArgs)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return args
|