Issue 6054: Unscoped not working with PreLoad on Joins (#6058)
* Issue 6054: Unscoped not working with PreLoad on Joins * Formatting --------- Co-authored-by: Michael Anstis <manstis@redhat.com>
This commit is contained in:
@@ -49,16 +49,18 @@ func TestSelect(t *testing.T) {
|
||||
Exprs: []clause.Expression{
|
||||
clause.Expr{
|
||||
SQL: "? as name",
|
||||
Vars: []interface{}{clause.Eq{
|
||||
Column: clause.Column{Name: "age"},
|
||||
Value: 18,
|
||||
},
|
||||
Vars: []interface{}{
|
||||
clause.Eq{
|
||||
Column: clause.Column{Name: "age"},
|
||||
Value: 18,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}, clause.From{}},
|
||||
"SELECT `age` = ? as name FROM `users`", []interface{}{18},
|
||||
"SELECT `age` = ? as name FROM `users`",
|
||||
[]interface{}{18},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user