This is my table 'persona' enter image description here
The 'apellido' field is 10 characters long. However when I add a new record with more characters in that field ... enter image description here
It does not give me the error that it should give me, as the data is longer than what the field allows. In addition to registering the wrong data with the 10 characters that the field allows ... enter image description here
Consequently my program cannot rollback when a wrong data is written in that field because Mysql does not consider it an error. Try modifying the autocommit: SET autocommit = OFF But the problem persists Can you help me understand this problem please, I would greatly appreciate it. Greetings community.