Skip to content

Commit fb3d5ca

Browse files
committed
Fix test failures
1 parent 79c247c commit fb3d5ca

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

examples/postgres/advanced-blog-cli/src/schema.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ joinable!(comments -> posts (post_id));
3535
joinable!(comments -> users (user_id));
3636
joinable!(posts -> users (user_id));
3737

38-
allow_tables_to_appear_in_same_query!(comments, posts, users,);
38+
allow_tables_to_appear_in_same_query!(
39+
comments,
40+
posts,
41+
users,
42+
);

examples/postgres/all_about_updates/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn examine_sql_from_increment_visit_counts() {
108108
use posts::dsl::*;
109109

110110
assert_eq!(
111-
"UPDATE \"posts\" SET \"visit_count\" = \"posts\".\"visit_count\" + $1 \
111+
"UPDATE \"posts\" SET \"visit_count\" = (\"posts\".\"visit_count\" + $1) \
112112
-- binds: [1]",
113113
debug_query::<Pg, _>(&diesel::update(posts).set(visit_count.eq(visit_count + 1)))
114114
.to_string()

0 commit comments

Comments
 (0)