File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
catalyst-gateway/bin/src/db/event Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,3 @@ pub(crate) trait ConditionalStmt {
1313 table_field : & str ,
1414 ) -> std:: fmt:: Result ;
1515}
16-
17- impl < T : ConditionalStmt > ConditionalStmt for Option < T > {
18- fn conditional_stmt (
19- & self ,
20- f : & mut std:: fmt:: Formatter < ' _ > ,
21- table_field : & str ,
22- ) -> std:: fmt:: Result {
23- if let Some ( v) = self {
24- v. conditional_stmt ( f, table_field) ?;
25- }
26- Ok ( ( ) )
27- }
28- }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ impl ConditionalStmt for DocumentRef {
2828 }
2929 if let Some ( ver) = & self . ver {
3030 write ! ( f, " AND " ) ?;
31- ver. conditional_stmt ( f, "(doc_ref->>'id ')::uuid" ) ?;
31+ ver. conditional_stmt ( f, "(doc_ref->>'ver ')::uuid" ) ?;
3232 }
3333
3434 write ! ( f, ")" )
You can’t perform that action at this time.
0 commit comments