I am using the python mysql connector with sqlalchemy. I try to use this code to truncate a table:
session = db.Session()
session.execute('''TRUNCATE TABLE Orders''')
session.commit()
But I receive this warning.
python3.8/site-packages/mysql/connector/connection_cext.py:506: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats self._cmysql.query(query,
I receive this issue also for other queries. The provided example is just for being an example.
Why exactly do I get this warning?