I am working on a Ruby application that uses the mysql functions XOR (^) and BIT_COUNT (). However, now I need to run an application on Heroku that runs PyGreSQL.
I cannot find documentation for PyGreSQL bits that can help me.
So, can anyone translate this mysql query so that it works when executed in pygresql?
SELECT * FROM "photos" WHERE BIT_COUNT(phash ^ 2061756291569501157) <= 15
pygresql gives me an error
ERROR: operator does not exist: text ^ bigint
thank.
source
share