diff --git a/postgresql/database_test.go b/postgresql/database_test.go index 371c263927ec199205b41bb8509c54fb97614498..2813dce7d028b7fe6d5766741b871fba54a58ed2 100644 --- a/postgresql/database_test.go +++ b/postgresql/database_test.go @@ -744,9 +744,9 @@ func TestRawRelations(t *testing.T) { t.Fatalf(err.Error()) } - res := artistPublication.Find(db.Cond{ - "a.id": db.Raw{"p.author_id"}, - }).Select( + res := artistPublication.Find( + db.Raw{"a.id = p.author_id"}, + ).Select( "p.id", "p.title as publication_title", "a.name AS artist_name",