following is a table of product_attribute and i want to search record of attribute using name like
self.env.cr.execute("SELECT id FROM product_attribute WHERE name='Legs'")
it raises a error
psycopg2.errors.InvalidTextRepresentation: invalid input syntax for type json
LINE 1: SELECT id FROM product_attribute WHERE name='Legs'
Any solution for this except using search() ?