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:
Michael Anstis
2023-02-18 01:06:43 +00:00
committed by GitHub
parent 02b7e26f6b
commit 532e9cf4cc
13 changed files with 106 additions and 42 deletions
+7 -5
View File
@@ -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},
},
}