We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30cb5bc + 1d9dbeb commit b4810bcCopy full SHA for b4810bc
1 file changed
diesel/src/expression/functions/aggregate_ordering.rs
@@ -16,6 +16,7 @@ sql_function! {
16
/// # let connection = establish_connection();
17
/// assert_eq!(Ok(Some(8)), animals.select(max(legs)).first(&connection));
18
/// # }
19
+ #[aggregate]
20
fn max<ST: SqlOrd + IntoNullable>(expr: ST) -> ST::Nullable;
21
}
22
@@ -35,5 +36,6 @@ sql_function! {
35
36
37
/// assert_eq!(Ok(Some(4)), animals.select(min(legs)).first(&connection));
38
39
40
fn min<ST: SqlOrd + IntoNullable>(expr: ST) -> ST::Nullable;
41
0 commit comments