You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
19 | let source = users::table.select(sum(posts::id));
5
5
| ^^^^^^^^^^^^^^ the trait `SelectableExpression<users::table>` is not implemented for `posts::columns::id`
6
6
|
7
7
= help: the following implementations were found:
8
8
<posts::columns::id as SelectableExpression<JoinOn<Join, On>>>
9
+
<posts::columns::id as SelectableExpression<Only<posts::table>>>
9
10
<posts::columns::id as SelectableExpression<SelectStatement<From>>>
10
11
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, Inner>>>
11
-
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, LeftOuter>>>
12
-
<posts::columns::id as SelectableExpression<posts::table>>
12
+
and 2 others
13
13
= note: required because of the requirements on the impl of `SelectableExpression<users::table>` for `aggregate_folding::sum::sum<diesel::sql_types::Integer, posts::columns::id>`
14
14
= note: required because of the requirements on the impl of `SelectDsl<aggregate_folding::sum::sum<diesel::sql_types::Integer, posts::columns::id>>` for `SelectStatement<users::table>`
15
15
16
16
error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>` is not satisfied
19 | let source = users::table.select(sum(posts::id));
20
20
| ^^^^^^ the trait `AppearsInFromClause<posts::table>` is not implemented for `users::table`
@@ -28,22 +28,22 @@ error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>`
28
28
= note: required because of the requirements on the impl of `SelectDsl<aggregate_folding::sum::sum<diesel::sql_types::Integer, posts::columns::id>>` for `SelectStatement<users::table>`
29
29
30
30
error[E0277]: the trait bound `posts::columns::id: SelectableExpression<users::table>` is not satisfied
20 | let source = users::table.select(avg(posts::id));
34
34
| ^^^^^^^^^^^^^^ the trait `SelectableExpression<users::table>` is not implemented for `posts::columns::id`
35
35
|
36
36
= help: the following implementations were found:
37
37
<posts::columns::id as SelectableExpression<JoinOn<Join, On>>>
38
+
<posts::columns::id as SelectableExpression<Only<posts::table>>>
38
39
<posts::columns::id as SelectableExpression<SelectStatement<From>>>
39
40
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, Inner>>>
40
-
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, LeftOuter>>>
41
-
<posts::columns::id as SelectableExpression<posts::table>>
41
+
and 2 others
42
42
= note: required because of the requirements on the impl of `SelectableExpression<users::table>` for `aggregate_folding::avg::avg<diesel::sql_types::Integer, posts::columns::id>`
43
43
= note: required because of the requirements on the impl of `SelectDsl<aggregate_folding::avg::avg<diesel::sql_types::Integer, posts::columns::id>>` for `SelectStatement<users::table>`
44
44
45
45
error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>` is not satisfied
20 | let source = users::table.select(avg(posts::id));
49
49
| ^^^^^^ the trait `AppearsInFromClause<posts::table>` is not implemented for `users::table`
@@ -57,22 +57,22 @@ error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>`
57
57
= note: required because of the requirements on the impl of `SelectDsl<aggregate_folding::avg::avg<diesel::sql_types::Integer, posts::columns::id>>` for `SelectStatement<users::table>`
58
58
59
59
error[E0277]: the trait bound `posts::columns::id: SelectableExpression<users::table>` is not satisfied
21 | let source = users::table.select(max(posts::id));
63
63
| ^^^^^^^^^^^^^^ the trait `SelectableExpression<users::table>` is not implemented for `posts::columns::id`
64
64
|
65
65
= help: the following implementations were found:
66
66
<posts::columns::id as SelectableExpression<JoinOn<Join, On>>>
67
+
<posts::columns::id as SelectableExpression<Only<posts::table>>>
67
68
<posts::columns::id as SelectableExpression<SelectStatement<From>>>
68
69
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, Inner>>>
69
-
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, LeftOuter>>>
70
-
<posts::columns::id as SelectableExpression<posts::table>>
70
+
and 2 others
71
71
= note: required because of the requirements on the impl of `SelectableExpression<users::table>` for `aggregate_ordering::max::max<diesel::sql_types::Integer, posts::columns::id>`
72
72
= note: required because of the requirements on the impl of `SelectDsl<aggregate_ordering::max::max<diesel::sql_types::Integer, posts::columns::id>>` for `SelectStatement<users::table>`
73
73
74
74
error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>` is not satisfied
21 | let source = users::table.select(max(posts::id));
78
78
| ^^^^^^ the trait `AppearsInFromClause<posts::table>` is not implemented for `users::table`
@@ -86,22 +86,22 @@ error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>`
86
86
= note: required because of the requirements on the impl of `SelectDsl<aggregate_ordering::max::max<diesel::sql_types::Integer, posts::columns::id>>` for `SelectStatement<users::table>`
87
87
88
88
error[E0277]: the trait bound `posts::columns::id: SelectableExpression<users::table>` is not satisfied
22 | let source = users::table.select(min(posts::id));
92
92
| ^^^^^^^^^^^^^^ the trait `SelectableExpression<users::table>` is not implemented for `posts::columns::id`
93
93
|
94
94
= help: the following implementations were found:
95
95
<posts::columns::id as SelectableExpression<JoinOn<Join, On>>>
96
+
<posts::columns::id as SelectableExpression<Only<posts::table>>>
96
97
<posts::columns::id as SelectableExpression<SelectStatement<From>>>
97
98
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, Inner>>>
98
-
<posts::columns::id as SelectableExpression<diesel::query_source::joins::Join<Left, Right, LeftOuter>>>
99
-
<posts::columns::id as SelectableExpression<posts::table>>
99
+
and 2 others
100
100
= note: required because of the requirements on the impl of `SelectableExpression<users::table>` for `aggregate_ordering::min::min<diesel::sql_types::Integer, posts::columns::id>`
101
101
= note: required because of the requirements on the impl of `SelectDsl<aggregate_ordering::min::min<diesel::sql_types::Integer, posts::columns::id>>` for `SelectStatement<users::table>`
102
102
103
103
error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>` is not satisfied
0 commit comments