in reply to Mysql smallint out of range. How to fetch warning?
My considered reaction to this inquiry ... is one of the two following responses:
And, please, do understand that this reaction is absolutely not “off-the-cuff.” It is carefully-considered and very serious.
Behaviors such as the one that you describe are, if you will, “an attempt (by the database engine in question ...) to make a dollar out of ninety-nine cents a sack of pure garbage (that ... ahem... you just forced upon it). The implementors are basically telling you what their code will do in a fundamentally erroneous situation. But you, as an application designer, have (what is to me...) an undeniable duty to make certain that their database engine never encounters that (fundamentally erroneous...) situation.
Although my stance on this matter is, “ahem... quite forceful,” I trust that you take it in proper context, and that you perceive the (I think...) very-necessary reason for it...