Bug #6999 | Traditional: Wrong SQLSTATE returned for string truncation | ||
---|---|---|---|
Submitted: | 3 Dec 2004 23:15 | Modified: | 11 Mar 2005 16:45 |
Reporter: | Trudy Pelzer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.3-alpha-debug | OS: | Linux (SuSE 9.1) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[3 Dec 2004 23:15]
Trudy Pelzer
[14 Feb 2005 4:57]
Alexander Barkov
Ramil, Trudy, what should happen on multiple inserts, with say three values: INSERT INTO varchar_3_column VALUES ('ok1'), ('too-long1'),('ok2'); I.e. the first and the last values fit into the column. Then second does not fit. Which of them should be returned by a SELECT query afterwards? Ramil, whatever happens, I suggest to cover this situation in the test. As well as add a SELECT query after UPDATEs producing the error. The patch looks fine for me. I vote OK to push after extending the test.
[1 Mar 2005 12:08]
Ramil Kalimullin
fixed in 5.0.3
[11 Mar 2005 16:45]
Paul DuBois
Noted in 5.0.3 changelog.