[Answer]-Raw mysql query fails on testing but runs correctly with django

1👍

Well, I was using sqlite as test database. And it seems that sqlite does not have a boolean literal. That’s why tests failed initially, but run properly when TRUE replaced with 1. Leaving this here, in case anyone gets stuck in a similar situation.

Leave a comment