I am working on a Ruby app which uses the mysql function XOR (^) and BIT_COUNT (). However I now need to run an app on Herakok, which runs PyGreSQL.
I can not find any documents for PyGreSQL bits that can help me.
Anyone can translate this mysql query so that it will work when the pygresql is executed on the database?
SELECT * FROM "photos" WHERE BIT_COUNT (phash ^ 2061756291569501157) & lt; = 15 pygresql gives me an error
error: operator does not exist: text ^ bigint thanks . Select
where the photo (SELECT SUM (((phash :: bigint # 2061756291569501157) ) & Gt; & gt; bits & amp; 1) Generated_images (0, 63) bit) & lt; = 15
Comments
Post a Comment