I just realize that in my forms I couldn’t save name like O’Brian (It would saved as O only and ‘Brian will be truncated).
I’m using grails 1.2.2 with mysql.
is there simple ways to allow ‘ to be inserted into db ? rather than modify each form and put html replacement for that char ?
If inserting into the database is the problem, then you can use parameterized queries. This is strongly recommended anyway, since it avoids possible security risks.
Imagine if instead of entering just a quote character, the user enters “Brian’; DROP TABLE data” into your form!