I'm using the pg_trgm
for similarity search on PostgreSQL DB and I need to return the results to the front by using the Django model. But, I got a problem that the operator %>
cannot be recognized by the Django framework.
Any advice?
Thank you.
I using the model.objects.raw()
to execute SQL. I got an error response:
unsupported format character '>' (0x3e) at index 52
searchParam ='test'
mymodel.objects.raw('select * from mytable where columnname %> %s', [searchParam])
ValueError: response:unsupported format character '>' (0x3e) at index 52