I'm getting this error on Python using MySQLdb of mysqlclient package.
_mysql_exceptions.OperationalError:
(1292, "Incorrect datetime value: '2018-03-25 02:00:02' for column 'start' at row 1")
The code that causes the error:
conn.cursor.execute(query.format(table=table),
(row['id'], row['type'], row['start'], row['end'],
row['raw_xml'], row['id_parent'], row['rango']))
I can insert the rest of rows correctly but when I try to insert this datetime object it crashes.
The field in the database its a timestamp field and It works with the rest of datetime objects but dont know why when it tries to make this statement crashes.
Thanks in advance.