File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ impl<'a> BlockRangeColumn<'a> {
264264 table_prefix : _,
265265 block_range : BlockRange ( start, finish) ,
266266 } => {
267- out. push_sql ( "block_range && int4range( " ) ;
267+ out. push_sql ( "lower( block_range) >= " ) ;
268268 match start {
269269 Bound :: Included ( block) => out. push_bind_param :: < Integer , _ > ( block) ?,
270270 Bound :: Excluded ( block) => {
@@ -273,7 +273,7 @@ impl<'a> BlockRangeColumn<'a> {
273273 }
274274 Bound :: Unbounded => todo ! ( ) ,
275275 } ;
276- out. push_sql ( ", " ) ;
276+ out. push_sql ( " AND lower(block_range) <= " ) ;
277277 match finish {
278278 Bound :: Included ( block) => {
279279 out. push_bind_param :: < Integer , _ > ( block) ?;
@@ -282,7 +282,6 @@ impl<'a> BlockRangeColumn<'a> {
282282 Bound :: Excluded ( block) => out. push_bind_param :: < Integer , _ > ( block) ?,
283283 Bound :: Unbounded => todo ! ( ) ,
284284 } ;
285- out. push_sql ( ")" ) ;
286285 Ok ( ( ) )
287286 }
288287 BlockRangeColumn :: ImmutableRange {
You can’t perform that action at this time.
0 commit comments