You should cast it to text as the error explains. To do so, adapt the following code to your needs 🙂
from sqlalchemy.sql import text
...
cursor.execute(text(<whatever_needed_to_be_casted>))
You should cast it to text as the error explains. To do so, adapt the following code to your needs 🙂
from sqlalchemy.sql import text
...
cursor.execute(text(<whatever_needed_to_be_casted>))