I want to search ipblocks for a range of expiry dates. I'm doing:
select ipb_address, ipb_expiry from ipblocks
where ipb_user = 0
and ipb_expiry != 'infinity'
and ipb_expiry > '20221001000000'
and ipb_expiry < '20221008000000'
limit 10;
which returns 0 rows. I'm assuming it's got something to do with ipb_expiry being a varbinary?