Skip to content

Commit e4e6f6d

Browse files
committed
Replace sql_function with define_sql_function
1 parent 18a4e9d commit e4e6f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async fn setup(connection: &mut TestConnection) {
137137
}
138138

139139
#[cfg(feature = "postgres")]
140-
diesel::sql_function!(fn pg_sleep(interval: diesel::sql_types::Double));
140+
diesel::define_sql_function!(fn pg_sleep(interval: diesel::sql_types::Double));
141141

142142
#[cfg(feature = "postgres")]
143143
#[tokio::test]

0 commit comments

Comments
 (0)