It depends on the DB and how it's configured. PostgreSQL gives an error if you try to shove 256+ characters into a 255-character field. MySQL truncates by default, but can be configured to give an error.
We should do the truncation in our code so the behavior is consistent across DBs.
It depends on the DB and how it's configured. PostgreSQL gives an error if you try to shove 256+ characters into a 255-character field. MySQL truncates by default, but can be configured to give an error.
We should do the truncation in our code so the behavior is consistent across DBs.