File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
disintegrate-postgres/src Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -206,23 +206,14 @@ where
206206 sqlx:: query ( "SET TRANSACTION ISOLATION LEVEL SERIALIZABLE" )
207207 . execute ( & mut * tx)
208208 . await ?;
209- <<<<<<< HEAD
210- =======
211- let inv_events: i64 = sqlx:: query_scalar ( & format ! (
212- "SELECT count(*) FROM event WHERE {}" ,
213- CriteriaBuilder :: new( & query. change_origin( version) ) . build( )
214- ) )
215- . fetch_one ( & mut * tx )
216- . await
217- . map_err ( map_concurrency_err ) ?;
218- >>>>>>> ebf68a3 ( add gin index)
219209
220210 if sqlx:: query_scalar ( & format ! (
221211 "SELECT EXISTS (SELECT 1 FROM event WHERE {})" ,
222212 CriteriaBuilder :: new( & query. change_origin( version) ) . build( )
223213 ) )
224214 . fetch_one ( & mut * tx)
225- . await ? {
215+ . await ?
216+ {
226217 return Err ( Error :: Concurrency ) ;
227218 }
228219
You can’t perform that action at this time.
0 commit comments