Table of Contents
- C.1. Changes in Release 5.1.x-maria (Development)
- C.2. Changes in Release 5.1.x (Production)
- C.2.1. Changes in MySQL 5.1.39 (04 September 2009)
- C.2.2. Changes in MySQL 5.1.38 (01 September 2009)
- C.2.3. Changes in MySQL 5.1.37 (13 July 2009)
- C.2.4. Changes in MySQL 5.1.36 (16 June 2009)
- C.2.5. Changes in MySQL 5.1.35 (13 May 2009)
- C.2.6. Release Notes for MySQL Enterprise 5.1.34sp1 [QSP] (25 June 2009)
- C.2.7. Changes in MySQL 5.1.34 (02 April 2009)
- C.2.8. Changes in MySQL 5.1.33 (13 March 2009)
- C.2.9. Changes in MySQL 5.1.32 (14 February 2009)
- C.2.10. Release Notes for MySQL Enterprise 5.1.31sp1 [QSP] (19 March 2009)
- C.2.11. Changes in MySQL 5.1.31 (19 January 2009)
- C.2.12. Changes in MySQL 5.1.30 (14 November 2008 General Availability)
- C.2.13. Changes in MySQL 5.1.29 (11 October 2008)
- C.2.14. Changes in MySQL 5.1.28 (28 August 2008)
- C.2.15. Changes in MySQL 5.1.27 (Not released)
- C.2.16. Changes in MySQL 5.1.26 (30 June 2008)
- C.2.17. Changes in MySQL 5.1.25 (28 May 2008)
- C.2.18. Changes in MySQL 5.1.24 (08 April 2008)
- C.2.19. Changes in MySQL 5.1.23 (29 January 2008)
- C.2.20. Changes in MySQL 5.1.22 (24 September 2007 Release Candidate)
- C.2.21. Changes in MySQL 5.1.21 (16 August 2007)
- C.2.22. Changes in MySQL 5.1.20 (25 June 2007)
- C.2.23. Changes in MySQL 5.1.19 (25 May 2007)
- C.2.24. Changes in MySQL 5.1.18 (08 May 2007)
- C.2.25. Changes in MySQL 5.1.17 (04 April 2007)
- C.2.26. Changes in MySQL 5.1.16 (26 February 2007)
- C.2.27. Changes in MySQL 5.1.15 (25 January 2007)
- C.2.28. Changes in MySQL 5.1.14 (05 December 2006)
- C.2.29. Changes in MySQL 5.1.13 (Not released)
- C.2.30. Changes in MySQL 5.1.12 (24 October 2006)
- C.2.31. Changes in MySQL 5.1.11 (26 May 2006)
- C.2.32. Changes in MySQL 5.1.10 (Not released)
- C.2.33. Changes in MySQL 5.1.9 (12 April 2006)
- C.2.34. Changes in MySQL 5.1.8 (Not released)
- C.2.35. Changes in MySQL 5.1.7 (27 February 2006)
- C.2.36. Changes in MySQL 5.1.6 (01 February 2006)
- C.2.37. Changes in MySQL 5.1.5 (10 January 2006)
- C.2.38. Changes in MySQL 5.1.4 (21 December 2005)
- C.2.39. Changes in MySQL 5.1.3 (29 November 2005)
- C.2.40. Changes in MySQL 5.1.2 (Not released)
- C.2.41. Changes in MySQL 5.1.1 (Not released)
- C.3. MySQL Enterprise Monitor Change History
- C.3.1. Changes in MySQL Enterprise Monitor 2.0.6 (27th August 2009)
- C.3.2. Changes in MySQL Enterprise Monitor 2.0.5 (18th March 2009)
- C.3.3. Changes in MySQL Enterprise Monitor 2.0.4 (5th February 2009)
- C.3.4. Changes in MySQL Enterprise Monitor 2.0.3 (23rd January 2009)
- C.3.5. Changes in MySQL Enterprise Monitor 2.0.2 (14th January 2009)
- C.3.6. Changes in MySQL Enterprise Monitor 2.0.1 (15th December 2008)
- C.3.7. Changes in MySQL Enterprise Monitor 2.0.0 (11th December 2008)
- C.4. MySQL Connector/ODBC (MyODBC) Change History
- C.4.1. Changes in MySQL Connector/ODBC 5.1.6 (Not yet released)
- C.4.2. Changes in MySQL Connector/ODBC 5.1.5 (18 August 2008)
- C.4.3. Changes in MySQL Connector/ODBC 5.1.4 (15 April 2008)
- C.4.4. Changes in MySQL Connector/ODBC 5.1.3 (26 March 2008)
- C.4.5. Changes in MySQL Connector/ODBC 5.1.2 (13 February 2008)
- C.4.6. Changes in MySQL Connector/ODBC 5.1.1 (13 December 2007)
- C.4.7. Changes in MySQL Connector/ODBC 5.1.0 (10 September 2007)
- C.4.8. Changes in MySQL Connector/ODBC 5.0.12 (Never released)
- C.4.9. Changes in MySQL Connector/ODBC 5.0.11 (31 January 2007)
- C.4.10. Changes in MySQL Connector/ODBC 5.0.10 (14 December 2006)
- C.4.11. Changes in MySQL Connector/ODBC 5.0.9 (22 November 2006)
- C.4.12. Changes in MySQL Connector/ODBC 5.0.8 (17 November 2006)
- C.4.13. Changes in MySQL Connector/ODBC 5.0.7 (08 November 2006)
- C.4.14. Changes in MySQL Connector/ODBC 5.0.6 (03 November 2006)
- C.4.15. Changes in MySQL Connector/ODBC 5.0.5 (17 October 2006)
- C.4.16. Changes in Connector/ODBC 5.0.3 (Connector/ODBC 5.0 Alpha 3) (20 June 2006)
- C.4.17. Changes in Connector/ODBC 5.0.2 (Never released)
- C.4.18. Changes in Connector/ODBC 5.0.1 (Connector/ODBC 5.0 Alpha 2) (05 June 2006)
- C.4.19. Changes in MySQL Connector/ODBC 3.51.27 (20 November 2008)
- C.4.20. Changes in MySQL Connector/ODBC 3.51.26 (07 July 2008)
- C.4.21. Changes in MySQL Connector/ODBC 3.51.25 (11 April 2008)
- C.4.22. Changes in MySQL Connector/ODBC 3.51.24 (14 March 2008)
- C.4.23. Changes in MySQL Connector/ODBC 3.51.23 (09 January 2008)
- C.4.24. Changes in MySQL Connector/ODBC 3.51.22 (13 November 2007)
- C.4.25. Changes in MySQL Connector/ODBC 3.51.21 (08 October 2007)
- C.4.26. Changes in MySQL Connector/ODBC 3.51.20 (10 September 2007)
- C.4.27. Changes in MySQL Connector/ODBC 3.51.19 (10 August 2007)
- C.4.28. Changes in MySQL Connector/ODBC 3.51.18 (08 August 2007)
- C.4.29. Changes in MySQL Connector/ODBC 3.51.17 (14 July 2007)
- C.4.30. Changes in MySQL Connector/ODBC 3.51.16 (14 June 2007)
- C.4.31. Changes in MySQL Connector/ODBC 3.51.15 (07 May 2007)
- C.4.32. Changes in MySQL Connector/ODBC 3.51.14 (08 March 2007)
- C.4.33. Changes in MySQL Connector/ODBC 3.51.13 (Never released)
- C.4.34. Changes in MySQL Connector/ODBC 3.51.12 (11 February 2005)
- C.4.35. Changes in MySQL Connector/ODBC 3.51.11 (28 January 2005)
- C.5. MySQL Connector/NET Change History
- C.5.1. Changes in MySQL Connector/NET Version 6.2.x
- C.5.2. Changes in MySQL Connector/NET Version 6.1.x
- C.5.3. Changes in MySQL Connector/NET Version 6.0.x
- C.5.4. Changes in MySQL Connector/NET Version 5.3.x
- C.5.5. Changes in MySQL Connector/NET Version 5.2.x
- C.5.6. Changes in MySQL Connector/NET Version 5.1.x
- C.5.7. Changes in MySQL Connector/NET Version 5.0.x
- C.5.8. Changes in MySQL Connector/NET Version 1.0.x
- C.5.9. Changes in MySQL Connector/NET Version 0.9.0 (30 August 2004)
- C.5.10. Changes in MySQL Connector/NET Version 0.76
- C.5.11. Changes in MySQL Connector/NET Version 0.75
- C.5.12. Changes in MySQL Connector/NET Version 0.74
- C.5.13. Changes in MySQL Connector/NET Version 0.71
- C.5.14. Changes in MySQL Connector/NET Version 0.70
- C.5.15. Changes in MySQL Connector/NET Version 0.68
- C.5.16. Changes in MySQL Connector/NET Version 0.65
- C.5.17. Changes in MySQL Connector/NET Version 0.60
- C.5.18. Changes in MySQL Connector/NET Version 0.50
- C.6. MySQL Visual Studio Plugin Change History
- C.7. MySQL Connector/J Change History
- C.7.1. Changes in MySQL Connector/J 5.1.x
- C.7.2. Changes in MySQL Connector/J 5.0.x
- C.7.3. Changes in MySQL Connector/J 3.1.x
- C.7.4. Changes in MySQL Connector/J 3.0.x
- C.7.5. Changes in MySQL Connector/J 2.0.x
- C.7.6. Changes in MySQL Connector/J 1.2b (04 July 1999)
- C.7.7. Changes in MySQL Connector/J 1.2.x and lower
- C.8. MySQL Connector/MXJ Change History
- C.8.1. Changes in MySQL Connector/MXJ 5.0.6 (04 May 2007)
- C.8.2. Changes in MySQL Connector/MXJ 5.0.5 (14 March 2007)
- C.8.3. Changes in MySQL Connector/MXJ 5.0.4 (28 January 2007)
- C.8.4. Changes in MySQL Connector/MXJ 5.0.3 (24 June 2006)
- C.8.5. Changes in MySQL Connector/MXJ 5.0.2 (15 June 2006)
- C.8.6. Changes in MySQL Connector/MXJ 5.0.1 (Never released)
- C.8.7. Changes in MySQL Connector/MXJ 5.0.0 (09 December 2005)
- C.9. MySQL Proxy Change History
- C.9.1. Changes in MySQL Proxy 0.8.0 (Not Yet Released)
- C.9.2. Changes in MySQL Proxy 0.7.3 (Not Yet Released)
- C.9.3. Changes in MySQL Proxy 0.7.2 (30 June 2009)
- C.9.4. Changes in MySQL Proxy 0.7.1 (15 May 2009)
- C.9.5. Changes in MySQL Proxy 0.7.0 (Never Released)
- C.9.6. Changes in MySQL Proxy 0.6.1 (06 February 2008)
- C.9.7. Changes in MySQL Proxy 0.6.0 (11 September 2007)
- C.9.8. Changes in MySQL Proxy 0.5.1 (30 June 2007)
- C.9.9. Changes in MySQL Proxy 0.5.0 (19 June 2007)
This appendix lists the changes from version to version in the MySQL source code through the latest version of MySQL 5.1, which is currently MySQL 5.1.32. Starting with MySQL 5.0, we began offering a new version of the Manual for each new series of MySQL releases (5.0, 5.1, and so on). For information about changes in previous release series of the MySQL database software, see the corresponding version of this Manual. For information about legacy versions of the MySQL software through the 4.1 series, see MySQL 3.23, 4.0, 4.1 Reference Manual.
We update this section as we add new features in the 5.1 series, so that everybody can follow the development process.
Note that we tend to update the manual at the same time we make changes to MySQL. If you find a recent version of MySQL listed here that you can't find on our download page (http://dev.mysql.com/downloads/), it means that the version has not yet been released.
The date mentioned with a release version is the date of the last Bazaar ChangeSet on which the release was based, not the date when the packages were made available. The binaries are usually made available a few days after the date of the tagged ChangeSet, because building and testing all packages takes some time.
The manual included in the source and binary distributions may not be fully accurate when it comes to the release changelog entries, because the integration of the manual happens at build time. For the most up-to-date release changelog, please refer to the online version instead.
An overview of which features were added in MySQL 5.1 can be found here: Section 1.4.1, “What Is New in MySQL 5.1”.
For a full list of changes, please refer to the changelog sections for each individual 5.1.x-maria release.
The following changes apply only to builds of MySQL 5.1.27 that
include the MARIA storage engine.
Functionality added or changed:
Important Note: When MySQL is built with the
Mariaengine, all internal temporary on disk tables will use theMariaengine. UsingMariatemporary tables in plkace ofMyISAMtables should result in a performance gain.
The following changes apply only to builds of MySQL 5.1.26 that
include the MARIA storage engine.
The following changes apply only to builds of MySQL 5.1.25 that
include the MARIA storage engine.
Functionality added or changed:
Important Note: The behavior of
CHECKSUM TABLEhas been modified so that the checksum operates consistently within all engines by default, unless you use the--oldoption.If you run mysqld
--oldoption, then:If table is
MyISAMwith an old-style checksum (5.0), thenCHECKSUM TABLEreturns the 5.0 checksum.If the
QUICKoption is specified toCHECKSUM TABLE,NULLis returned instead.When the
EXTENDEDoption is specified, the checksum is calculated by looping over all the rows and calculates the checksum using the 5.0 algorithm.
If you run mysqld without the
--oldoption, then:If the table is
MyISAMwith the new-style live checksum (5.1), then the live checksum is returned.If the
QUICKoption toOPTIMIZE TABLE,NULLis returned.When the
EXTENDEDoption is specified, the checksum is calculated by looping over all the rows and calculating the checksum using the 5.1 algorithm.
In addition, if you run
CHECKSUM TABLEonMyISAMtables withVARCHARcolumns, usingROW_FORMAT=fixedand row-level checksums enabled, then a warning will be raised that the table must be repaired usingREPAIR TABLEto build the new checksum.To ensure that tables moved from a MySQL 5.1 environment to MySQL 5.1-maria, or MySQL 6.0 environment, you should run mysqld with the
--oldand runCHECKSUM TABLE ... EXTENDEDto compare using the 5.0 algorithm.
The following changes apply only to builds of MySQL 5.1.24 that
include the MARIA storage engine.
Bugs fixed:
When creating tables not using the
Mariaengine, it would be possible to create a table using theTRANSACTIONALoption, even though this option is not supported by non-Mariatables. A warning will now be produced when using these options, but the option will still be recorded within the options for the table to allow for correct modification duringALTER TABLEoperations. (Bug#34395)
- C.2.1. Changes in MySQL 5.1.39 (04 September 2009)
- C.2.2. Changes in MySQL 5.1.38 (01 September 2009)
- C.2.3. Changes in MySQL 5.1.37 (13 July 2009)
- C.2.4. Changes in MySQL 5.1.36 (16 June 2009)
- C.2.5. Changes in MySQL 5.1.35 (13 May 2009)
- C.2.6. Release Notes for MySQL Enterprise 5.1.34sp1 [QSP] (25 June 2009)
- C.2.7. Changes in MySQL 5.1.34 (02 April 2009)
- C.2.8. Changes in MySQL 5.1.33 (13 March 2009)
- C.2.9. Changes in MySQL 5.1.32 (14 February 2009)
- C.2.10. Release Notes for MySQL Enterprise 5.1.31sp1 [QSP] (19 March 2009)
- C.2.11. Changes in MySQL 5.1.31 (19 January 2009)
- C.2.12. Changes in MySQL 5.1.30 (14 November 2008 General Availability)
- C.2.13. Changes in MySQL 5.1.29 (11 October 2008)
- C.2.14. Changes in MySQL 5.1.28 (28 August 2008)
- C.2.15. Changes in MySQL 5.1.27 (Not released)
- C.2.16. Changes in MySQL 5.1.26 (30 June 2008)
- C.2.17. Changes in MySQL 5.1.25 (28 May 2008)
- C.2.18. Changes in MySQL 5.1.24 (08 April 2008)
- C.2.19. Changes in MySQL 5.1.23 (29 January 2008)
- C.2.20. Changes in MySQL 5.1.22 (24 September 2007 Release Candidate)
- C.2.21. Changes in MySQL 5.1.21 (16 August 2007)
- C.2.22. Changes in MySQL 5.1.20 (25 June 2007)
- C.2.23. Changes in MySQL 5.1.19 (25 May 2007)
- C.2.24. Changes in MySQL 5.1.18 (08 May 2007)
- C.2.25. Changes in MySQL 5.1.17 (04 April 2007)
- C.2.26. Changes in MySQL 5.1.16 (26 February 2007)
- C.2.27. Changes in MySQL 5.1.15 (25 January 2007)
- C.2.28. Changes in MySQL 5.1.14 (05 December 2006)
- C.2.29. Changes in MySQL 5.1.13 (Not released)
- C.2.30. Changes in MySQL 5.1.12 (24 October 2006)
- C.2.31. Changes in MySQL 5.1.11 (26 May 2006)
- C.2.32. Changes in MySQL 5.1.10 (Not released)
- C.2.33. Changes in MySQL 5.1.9 (12 April 2006)
- C.2.34. Changes in MySQL 5.1.8 (Not released)
- C.2.35. Changes in MySQL 5.1.7 (27 February 2006)
- C.2.36. Changes in MySQL 5.1.6 (01 February 2006)
- C.2.37. Changes in MySQL 5.1.5 (10 January 2006)
- C.2.38. Changes in MySQL 5.1.4 (21 December 2005)
- C.2.39. Changes in MySQL 5.1.3 (29 November 2005)
- C.2.40. Changes in MySQL 5.1.2 (Not released)
- C.2.41. Changes in MySQL 5.1.1 (Not released)
An overview of which features were added in MySQL 5.1 can be found here: Section 1.4.1, “What Is New in MySQL 5.1”.
For a full list of changes, please refer to the changelog sections for each individual 5.1 release.
For discussion of upgrade issues that you many encounter for upgrades to MySQL 5.1 from MySQL 5.0, see Section 2.12.1.1, “Upgrading from MySQL 5.0 to 5.1”.
For changes relating to MySQL Cluster NDB 6.x, see Changes in MySQL Cluster NDB 6.X and 7.X.
Bugs fixed:
Performance: For
MyISAMtables withbulk_insert_buffer_sizevalues larger than 256KB, the performance of bulk insert operations such as multiple-rowINSERTandINSERT ... SELECToperations has been improved greatly when up to a hundred rows are inserted at the same time. (Bug#44723)Partitioning: An
INSERT ... SELECTstatement on an empty partition of a partitioned table failed with ERROR 1030 (HY000): Got error 124 from storage engine. This issue also caused queries run against a partitioned table while aLOAD DATA CONCURRENT INFILEstatement was in progress to fail with the same error. (Bug#46639)Partitioning: A partitioned table having a
TIMESTAMPcolumn with a default value ofCURRENT_TIMESTAMPand this column was not defined using anON UPDATEoption, anALTER TABLE ... REORGANIZE PARTITIONstatement on the table caused theTIMESTAMPcolumn value to be set toCURRENT_TIMESTAMPregardless. (Bug#46478)Partitioning: Partition pruning did not always work correctly when the table's partitioning key used the
TO_DAYS()function. (Bug#46362)Partitioning: Attempting to access a partitioned table when partitioning support was disabled in a MySQL server binary that had been compiled with partitioning support caused the server to crash. (Bug#39893)
Partitioning: The use of
TO_DAYS()in the partitioning expression led to selection failures when the column having the date value contained invalid dates. This occurred because the function returnsNULLin such cases, and the partition containing NULL values was pruned away. For example, this problem occurred if'2001-02-00'was inserted into aDATEcolumn of such a table, and a subsequent query on this table usedWHERE— whiledate_col< '2001-02-00''2001-01-01'is less than'2001-02-00',TO_DAYS('2001-02-00')evaluates asNULL, and so the row containing'2001-01-01'was not returned. Now, for tables usingRANGEorLISTpartitioning and havingTO_DAYS()in the partitioning expression, theNULLpartition is also scanned instead of being ignored.The fix for this issue also corrects misbehavior such that a query of the form
SELECT * FROMon a table partitioned bytableWHEREdate_col<date_valRANGEorLISTwas handled as though the server SQL mode includedALLOW_INVALID_DATESeven if this was not actually part of the server SQL mode at the time the query was issued. (Bug#20577)Replication: Performing a multi-row update of the
AUTO_INCREMENTcolumn of a transactional table could result in an inconsistency between master and slave when there was a trigger on the transactional table that updated a non-transactional table. When such an update failed on the master, no rows were updated on the master, but some rows could (erroneously) be updated on the slave. (Bug#46864)Replication: When using the
--replicate-rewrite-dboption and the database referenced by this option on the master was the current database when the connection to the slave was closed, any temporary tables existing in this database were not properly dropped. (Bug#46861)Replication: When a statement that changed both transactional and non-transactional tables failed, the transactional changes were automatically rolled back on the master but the slave ignored the error and did not roll them back, thus leading to inconsistencies between master and slave.
This issue is fixed by automatically rolling back a statement that fails on the slave; however, the transaction is not rolled back unless a corresponding
ROLLBACKstatement is found in the relay log file. (Bug#46130)See also Bug#33864.
Replication: When
slave_transaction_retriesis set, a statement that replicates, but is then rolled back due to a deadlock on the slave, should be retried. However, in certain cases, replication was stopped with error 1213 (Deadlock found when trying to get lock; try restarting transaction) instead, even when this variable was set. (Bug#45694)Replication: The binary logging behavior (and thus, the replication behavior) of
CREATE DATABASE IF NOT EXISTS,CREATE TABLE IF NOT EXISTS, andCREATE EVENT IF NOT EXISTSwas not consistent among these statements, nor with that ofDROP DATABASE IF EXISTS,DROP TABLE IF EXISTS, andDROP EVENT IF EXISTS: ADROP ... IF EXISTSstatement is always logged even if the database object named in the statement does not exist. However, of theCREATE ... IF NOT EXISTSstatements, only theCREATE EVENT IF NOT EXISTSstatement was logged when the database object named in the statement already existed.Now, every
CREATE ... IF NOT EXISTSstatement is written to the binary log (and thus replicated), whether the database object named in the statement exists or not. For more information, see Section 16.3.1.3, “Replication ofCREATE ... IF NOT EXISTSStatements”.Exception. Replication and logging of
CREATE TABLE IF NOT EXISTS ... SELECTcontinues to be handled according to existing rules. See Section 16.3.1.4, “Replication ofCREATE TABLE ... SELECTStatements”, for more information.Replication: When using statement-based replication, database-level character sets were not always honored by the replication SQL thread. This could cause data inserted on the master using
LOAD DATAto be replicated using the wrong character set.Note
This was not an issue when using row-based replication.
Replication: In some cases, a
STOP SLAVEstatement could cause the replication slave to crash. This issue was specific to MySQL on Windows or Macintosh platforms. (Bug#45238, Bug#45242, Bug#45243, Bug#46013, Bug#46014, Bug#46030)Replication: Creating a scheduled event whose
DEFINERclause was either set toCURRENT_USERor not set explicitly caused the master and the slave to become inconsistent. This issue stems from the fact that, in both cases, theDEFINERis set to theCURRENT_USERof the current thread. (On the master, theCURRENT_USERis the mysqld user; on the slave, theCURRENT_USERis empty.)This behavior has been modified as follows:
If
CURRENT_USERis used as theDEFINER, it is replaced with the value ofCURRENT_USERbefore theCREATE EVENTstatement is written to the binary log.If the definer is not set explicitly, a
DEFINERclause using the value ofCURRENT_USERis added to theCREATE EVENTstatement before it is written to the binary log.
See also Bug#42217.
Replication: When using the statement-based logging format, the only possible safe combination of transactional and non-transactional statements within the same transaction is to perform any updates on non-transactional tables (such as
MyISAMtables) first, before updating any transactional tables (such as those using theInnoDBstorage engine). This is due to the fact that, although a modification made to a non-transactional table is immediately visible to other connections, the update is not immediately written to the binary log, which can lead to inconsistencies between master and slave. (Other combinations may hide a causal dependency, thus making it impossible to write statements updating non-transactional tables to the binary log in the correct order.)However, in some cases, this situation was not handled properly, and the determination whether a given statement was safe or not under these conditions was not always correct. In particular, a multi-table update that affected both transactional and non-transactional tables or a statement modifying data in a non-transactional table having a trigger that operated on a transactional table (or the reverse) was not determined to be unsafe when it should have been.
With this fix, the following determinations regarding replication safety are made when combining updates to transactional and non-transactional tables within the same transaction in statement-based logging mode:
Any statement modifying data in a non-transactional table within a given transaction is considered safe if it is issued prior to any data modification statement accessing a transactional table within the same transaction.
A statement that updates transactional tables only is always considered safe.
A statement affecting both transactional and non-transactional tables within a transaction is always considered unsafe. It is not necessary that both tables be modified for this to be true; for example, a statement such as
INSERT INTOis also considered unsafe.innodb_tableSELECT * FROMmyisam_table
Note
The current fix is valid only when using statement-based logging mode; we plan to address similar issues occurring when using the
MIXEDorROWformat in a future MySQL release.Stack overflow checking did not account for the size of the structure stored in the heap. (Bug#46807)
The server could crash for queries with the following elements: 1. An “impossible where” in the outermost
SELECT; 2. An aggregate in the outermostSELECT; 3. A correlated subquery with aWHEREclause that includes an outer field reference as a top-levelWHEREsargable predicate; (Bug#46749)CREATE TABLE ... SELECTcould cause assertion failure if a table already existed with the same name and contained anAUTO_INCREMENTcolumn. (Bug#46616)SHOW CREATE TRIGGERfor aMERGEtable trigger caused an assertion failure. (Bug#46614)In queries for which the loose index scan access method was chosen, using a condition of the form
col_namerather than the equivalentcaused an assertion failure. (Bug#46607)col_name<> 0TRUNCATE TABLEfor a table that was opened withHANDLERdid not close the handler and left it in an inconsistent state that could lead to a server crash. (Bug#46456)A query containing a subquery in the
FROMclause andPROCEDURE ANALYSE()caused a server crash. (Bug#46184)Killing a query that was performing a sort could result in a memory leak. (Bug#45962)
Truncation of
DECIMALvalues could lead to assertion failures; for example, when deducing the type of a table column from a literalDECIMALvalue. (Bug#45261)A buffer overflow could occur during handling of
IS NULLranges. (Bug#37044)mysqladmin --wait ping crashed on Windows systems. (Bug#35132)
As of MySQL 5.1.38, the InnoDB Plugin is
included in MySQL 5.1 releases, in addition to the
built-in version of InnoDB that has been
included in previous releases. This version of the InnoDB
Plugin is 1.0.4 and is considered of Beta quality.
The InnoDB Plugin offers new features, improved
performance and scalability, enhanced reliability and new
capabilities for flexibility and ease of use. Among the features
of the InnoDB Plugin are “Fast index
creation,” table and index compression, file format
management, new INFORMATION_SCHEMA tables,
capacity tuning, multiple background I/O threads, and group
commit.
For information about these features, see the InnoDB
Plugin Manual at
http://www.innodb.com/products/innodb_plugin/plugin-documentation.
For general information about using InnoDB in
MySQL, see Section 13.6, “The InnoDB Storage Engine”.
The InnoDB Plugin is included in source and
binary distributions, except RHEL3, RHEL4, SuSE 9 (x86, x86_64,
ia64), and generic Linux RPM packages.
To use the InnoDB Plugin, you must disable the
built-in version of InnoDB that is also
included and instruct the server to use InnoDB
Plugin instead. To accomplish this, use the following
lines in your my.cnf file:
[mysqld] ignore-builtin-innodb plugin-load=innodb=ha_innodb_plugin.so
For the plugin-load option,
innodb is the name to associate with the plugin
and ha_innodb_plugin.so is the name of the
shared object library that contains the plugin code. The extension
of .so applies for Unix (and similar)
systems. For HP-UX on HPPA (11.11) or Windows, the extension
should be .sl or .dll,
respectively, rather than .so.
If the server has problems finding the plugin when it starts up,
specify the pathname to the plugin directory. For example, if
plugins are located in the lib/mysql/plugin
directory under the MySQL installation directory and you have
installed MySQL at /usr/local/mysql, use
these lines in your my.cnf file:
[mysqld] ignore-builtin-innodb plugin-load=innodb=ha_innodb_plugin.so plugin_dir=/usr/local/mysql/lib/mysql/plugin
The previous examples show how to activate the storage engine part
of InnoDB Plugin, but the plugin also
implements several InnoDB-related
INFORMATION_SCHEMA tables. (For information
about these tables, see
http://www.innodb.com/doc/innodb_plugin-1.0/innodb-information-schema.html.)
To enable these tables, include additional
pairs in the value of the
name=libraryplugin-load option:
[mysqld] ignore-builtin-innodb plugin-load=innodb=ha_innodb_plugin.so ;innodb_trx=ha_innodb_plugin.so ;innodb_locks=ha_innodb_plugin.so ;innodb_cmp=ha_innodb_plugin.so ;innodb_cmp_reset=ha_innodb_plugin.so ;innodb_cmpmem=ha_innodb_plugin.so ;innodb_cmpmem_reset=ha_innodb_plugin.so
The plugin-load option value as
shown here is formatted on multiple lines for display purposes but
should be written in my.cnf using a single
line without spaces in the option value. On Windows, substitute
.dll for each instance of the
.so extension.
After the server starts up, verify that InnoDB
Plugin has been loaded by using the
SHOW PLUGINS statement. For
example, if you have loaded the storage engine and the
INFORMATION_SCHEMA tables, the output should
include lines similar to these:
mysql> SHOW PLUGINS;
+---------------------+--------+--------------------+---------------------...
| Name | Status | Type | Library ...
+---------------------+--------+--------------------+---------------------...
...
| InnoDB | ACTIVE | STORAGE ENGINE | ha_innodb_plugin.so ...
| INNODB_TRX | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so ...
| INNODB_LOCKS | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so ...
| INNODB_CMP | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so ...
| INNODB_CMP_RESET | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so ...
| INNODB_CMPMEM | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so ...
| INNODB_CMPMEM_RESET | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so ...
+---------------------+--------+--------------------+---------------------...
If you build MySQL from a source distribution, InnoDB
Plugin is one of the storage engines that is built by
default. Build MySQL the way you normally do; for example, by
using the instructions at Section 2.10, “MySQL Installation Using a Source Distribution”.
After the build completes, you should find the plugin shared
object file under the storage/innodb_plugin
directory, and make install should install it
in the plugin directory. Configure MySQL to use InnoDB
Plugin as described earlier for binary distributions.
If you use gcc, InnoDB
Plugin cannot be compiled with gcc
3.x; you must use gcc 4.x instead.
Functionality added or changed:
Replication: With statement-based logging (SBL), repeatedly calling statements that are unsafe for SBL caused a warning message to be written to the error log for each statement, and there was no way to disable this behavior. Now the server logs messages about statements that are unsafe for statement-based logging only if the
log_warningsvariable is greater than 0. (Bug#46265)The undocumented
TRANSACTIONALandPAGE_CHECKSUMkeywords were removed from the grammar. (Bug#45829)Previously,
SELECT ... INTO OUTFILEdumped column values without character set conversion, which could produce data files that cannot be imported without error if different columns used different character sets. A consequence of this is that mysqldump ignored the--default-character-setoption if the--taboption was given (which causesSELECT ... INTO OUTFILEto be used to dump data.)INTO OUTFILEnow can be followed by aCHARACTER SETclause indicating the character set to which dumped values should be converted. Also, mysqldump adds aCHARACTER SETclause to theSELECT ... INTO OUTFILEstatement used to dump data, so that--default-character-setis no longer ignored if--tabis given.Other changes are that
SELECT ... INTO OUTFILEenforces thatENCLOSED BYandESCAPED BYarguments must be a single character, andSELECT ... INTO OUTFILEandLOAD DATA INFILEproduce warnings if non-ASCII field or line separators are specified. (Bug#30946)The MySQL
euckrcharacter set now can store extended codes [81...FE][41..5A,61..7A,81..FE], which makeseuckrcompatible with the Microsoftcp949character set.
Bugs fixed:
Partitioning: Attempting to create a table using an invalid or inconsistent subpartition definition caused the server to crash. An example of such a statement is shown here:
CREATE TABLE t2 (s1 INT, s2 INT) PARTITION BY LIST (s1) SUBPARTITION BY HASH (s2) SUBPARTITIONS 1 ( PARTITION p1 VALUES IN (1), PARTITION p2 VALUES IN (2) (SUBPARTITION p3) );Partitioning: When using a debug build of MySQL, if a query against a partitioned table having an index on one or more
DOUBLEcolumns used that index, the server failed with an assertion. (Bug#45816)Partitioning: A failed
RENAME TABLEoperation on a table with user-defined partitioning left the table in an unusable state, due to only some of the table files having been renamed. (Bug#30102)Replication: When a statement that changes a non-transactional table failed, the transactional cache was flushed, causing a mismatch between the execution and logging histories. Now we avoid flushing the transactional cache unless a
COMMITorROLLBACKis issued. (Bug#46129)Replication: The internal function
get_master_version_and_clock()(defined insql/slave.cc) ignored errors and passed directly when queries failed, or when queries succeeded but the result retrieved was empty. Now this function tries to reconnect the master if a query fails due to transient network problems, and to fail otherwise. The I/O thread now prints a warning if the same system variables do not exist on master (in the event the master is a very old version of MySQL, compared to the slave.) (Bug#45214)Replication: When using the
MIXEDlogging format, after creating a temporary table and performing an update that switched the logging format toROW, the format switch persisted following the update. This prevented any subsequent DDL statements on temporary tables from being written to the binary log until the temporary table was dropped. (Bug#43046)See also Bug#40013.
This regression was introduced by Bug#20499.
Replication: If the
--log-bin-trust-function-creatorsoption is not enabled,CREATE FUNCTIONrequires one of the modifiersDETERMINISTIC,NO SQL, orREADS SQL DATA. When using statement-based mode, the execution of a stored function should follow the same rules; however, only functions defined withDETERMINSTICcould actually be executed. In addition, the wrong error was generated (ER_BINLOG_ROW_RBR_TO_SBR instead of ER_BINLOG_UNSAFE_ROUTINE).Now execution of stored functions is compatible with creation in this regard; when a stored function without one of the modifiers above is executed in
STATEMENTmode, the correct error is raised, and functions defined usingNO SQL,READS SQL DATA, or both (that is, without usingDETERMINSTIC) can be excuted. (Bug#41166)The test suite was missing from RPM packages. (Bug#46834)
Incorrect index optimization could lead to incorrect results or server crashes. (Bug#46454)
The server printed warnings at startup about adjusting the value of the
max_join_sizesystem variable. (These were harmless, but might be seen by users as significant.) (Bug#46385)After an error such as a table-full condition,
INSERT IGNOREcould cause an assertion failure for debug builds. (Bug#46075)An optimization that moved an item from a subquery to an outer query could cause a server crash. (Bug#46051)
Several Valgrind warnings were corrected. (Bug#46003, Bug#46034, Bug#46042)
CREATE TABLE ... SELECTcould cause a server crash if no default database was selected. (Bug#45998)For problems reading SSL files during SSL initialization, the server wrote error messages to
stderrrather than to the error log. (Bug#45770)The vendor name change from MySQL AB to Sun Microsystems, Inc. in RPM packages was not handled gracefully when upgrading MySQL using an RPM package. (Bug#45534)
A Windows Installation using the GUI installer would fail with:
MySQL Server 5.1 Setup Wizard ended prematurely The wizard was interrupted before MySQL Server 5.1. could be completely installed. Your system has not been modified. To complete installation at another time, please run setup again. Click Finish to exit the wizard
This was due to an step in the MSI installer that could fail to execute correctly on some environments. (Bug#45418)
Invalid memory reads could occur using the compressed client/server protocol. (Bug#45031)
The
mysql_real_connect()C API function only attempted to connect to the first IP address returned for a hostname. This could be a problem if a hostname mapped to multiple IP address and the server was not bound to the first one returned. Nowmysql_real_connect()attempts to connect to all IPv4/6 addresses that a domain name maps to. (Bug#45017)Invalid input could cause invalid memory reads by the parser. (Bug#45010)
Some files in an AIX tar file distribution unpacked with incorrect permissions. (Bug#44647)
For debug builds, executing a stored procedure as a prepared statement could sometimes cause an assertion failure. (Bug#44521)
Using
mysql_stmt_execute()to call a stored procedure could cause a server crash. (Bug#44495)Creating a new instance after previously removing an instance would fail to complete the installation properly because the security settings could not be applied correctly. (Bug#44428)
mysqlslap ignored the
--csvoption if it was given without an argument. (Bug#44412)Enabling the event scheduler from within the file specified by
--init-filecaused a server crash. (Bug#43587)The server did not always check the return value of calls to the
hash_init()function. (Bug#43572)The table cache lock (
LOCK_open) is now an adaptive mutex, which should improve performance in workloads where this lock is heavily contended. (Bug#43435)mysqladmin --count=
X--sleep=Yincorrectly delayedYseconds after the last iteration before exiting. (Bug#42639)A test for stack growth failed on some platforms, leading to server crashes. (Bug#42213)
mysqladmin did not have enough space allocated for tracking all variables when using
--verticalor--relativewithextended-status. (Bug#40395)Partitioning a log table caused a server crash. (Bug#40281)
When using quick access methods to search for rows in
UPDATEandDELETEstatements, there was no check whether a fatal error had already been sent to the client while evaluating the quick condition. Consequently, a false OK (following the error) was sent to the client, causing the error to be incorrectly transformed into a warning. (Bug#40113)SHOW PROCESSLISTcould access freed memory of a stored procedure run in a concurrent session. (Bug#38816)During installation on Windows, the MySQL Instance Configuration Wizard window could be opened at a size too small to be usable. (Bug#38723)
make_binary_distribution did not always generate correct distribution names. (Bug#37808)
The server crashed when executing a prepared statement containing a duplicated
MATCH()function call in the select list andORDER BYclause; for example,SELECT MATCH(a) AGAINST('test') FROM t1 ORDER BY MATCH(a) AGAINST('test'). (Bug#37740)The output of mysqldump --tab for views included a
DROP TABLEstatement without theIF EXISTSqualifier. (Bug#37377)mysql_upgrade silently ignored the
--basedirand--datadiroptions, which it accepts for backward compatibility. Now it prints a warning. (Bug#36558)mysqlimport was not always compiled correctly to enable thread support, which is required for the
--use-threadsoption. (Bug#32991)mysqlcheck failed to fix table names when the
--fix-table-namesand--all-in-1options were both specified. (Bug#31821)If the MySQL server was killed without the PID file being removed, attempts to stop the server with mysql.server stop waited 900 seconds before giving up. (Bug#31785)
When performing an installation on Windows using the GUI installer, the installer would fail to wait long enough during installation for the MySQL service to be installed, which would cause the installation to fail and may cause security settings, such as the
rootpassword to not be applied correctly. (Bug#30525)mysql included extra spaces at the end of some result set lines. (Bug#29622)
The mysql client inconsistently handled NUL bytes in column data in various output formats. (Bug#28203)
mysqlimport did not correctly quote and escape table identifiers and file names. (Bug#28071)
When installing the Windows service, using quotes around command-line configuration parameters could cause the quotes to incorrectly placed around the entire command-line option, and not just the value. (Bug#27535)
If the mysql client was built with the
readlinelibrary and the.inputrcfile mappedSpaceto themagic-spacefunction, it became impossible to enter spaces. (Bug#27439)If
InnoDBreached its limit on the number of concurrent transactions (1023), it wrote a descriptive message to the error log but returned a misleading error message to the client, or an assertion failure occurred. (Bug#18828)
Functionality added or changed:
Important Change: Replication:
RESET MASTERandRESET SLAVEnow reset the values shown forLast_IO_Error,Last_IO_Errno,Last_SQL_Error, andLast_SQL_Errnoin the output ofSHOW SLAVE STATUS. (Bug#44270)See also Bug#34654.
Bugs fixed:
Performance: With
InnoDBtables, MySQL used a less-selective secondary index to avoid a filesort even if a prefix of the primary key was much more selective.The fix for this problem might cause other queries to run more slowly. (Bug#45828)
Partitioning: Security Fix: Accessing a table having user-defined partitioning when the server SQL mode included
ONLY_FULL_GROUP_BYcaused the MySQL server to crash. For example, the following sequence of statements crashed the server:DROP TABLE IF EXISTS t1; SET SESSION SQL_MODE='ONLY_FULL_GROUP_BY'; CREATE TABLE t1 (id INT, KEY(id)) PARTITION BY HASH(id) PARTITIONS 2;Security Fix: The
strxnmov()library function could write a null byte after the end of the destination buffer. (Bug#44834)Important Change: Replication: When using
STATEMENTorMIXEDbinary logging format, a statement that changes both non-transactional and transactional tables must be written to the binary log whenever there are changes to non-transactional tables. This means that the statement goes into the binary log even when the changes to the transactional tables fail. In particular, in the event of a failure such statement is annotated with the error number and wrapped inside a pair ofBEGINandROLLBACKstatements.On the slave, while applying the statement, it is expected that the same failure and the rollback prevent the transactional changes from persisting. However, statements that fail due to concurrency issues such as deadlocks and timeouts are logged in the same way, causing the slave to stop since the statements are applied sequentially by the SQL thread.
To address this issue, we ignore concurrency failures on the slave. Specifically, the following failures are now ignored: ER_LOCK_WAIT_TIMEOUT, ER_LOCK_DEADLOCK, and ER_XA_RBDEADLOCK. (Bug#44581)
Partitioning: Truncating a partitioned
MyISAMtable did not reset theAUTO_INCREMENTvalue. (Bug#35111)Replication: The
SHOW SLAVE STATUSconnection thread competed with the slave SQL thread for use of the error message buffer. As a result, the connection thread sometimes received incomplete messages. This issue was uncovered with valgrind when message strings were passed withoutNULLterminators, causing the error Conditional jump or move depends on uninitialised value(s). (Bug#45511)See also Bug#43076.
Replication: The internal function
purge_relay_logs()did not propagate an error occurring in another internal functioncount_relay_log_space(). (Bug#44115)Replication: Large transactions and statements could corrupt the binary log if the size of the cache (as set by
max_binlog_cache_size) was not large enough to store the changes.Now, for transactions that do not fit into the cache, the statement is not logged, and the statement generates an error instead.
For non-transactional changes that do not fit into the cache, the statement is also not logged — an incident event is logged after committing or rolling back any pending transaction, and the statement then raises an error.
Note
If a failure occurs before the incident event is written the binary log, the slave does not stop, and the master does not report any errors.
See also Bug#37148.
Replication: The
--databaseoption for mysqlbinlog was ignored when using the row-based logging format. (Bug#42941)Replication: Statements using
LIMITgenerated spurious Statement is not safe to log in statement format warnings in the error log, causing the log to grow rapidly in size. (Bug#42851)See also Bug#46265, Bug#42415.
This regression was introduced by Bug#34768.
Replication: Shutting down the server while executing
FLUSH LOGS,CHANGE MASTER TO, orSTOP SLAVEcould sometimes cause mysqld to crash. (Bug#38240)Replication: When reading a binary log that was in use by a master or that had not been properly closed (possibly due to a crash), the following message was printed: Warning: this binlog was not closed properly. Most probably mysqld crashed writing it. This message did not take into account the possibility that the file was merely in use by the master, which caused some users concern who were not aware that this could happen.
To make this clear, the original message has been replaced with Warning: this binlog is either is use or was not closed properly. (Bug#34687)
The server crashed if evaluation of
GROUP_CONCAT(... ORDER BY)required allocation of a sort buffer but allocation failed. (Bug#46080)When creating tables using the
IBMDB2Istorage engine with theibmdb2i_create_index_optionoption set to 1, creating anIBMDB2Itable with a primary key should produce an additional index that uses EBCDIC hexadecimal sorting, but this index was not created. (Bug#45983)The server crashed for attempts to use
REPLACEorINSERT ... ON DUPLICATE KEY UPDATEwith a view defined using a join. (Bug#45806)Some collations were causing
IBMDB2Ito report inaccurate key range estimations to the optimizer forLIKEclauses that select substrings. This can be seen by runningEXPLAIN. This problem primarily affects multi-byte and unicode character sets. (Bug#45803)Invalid memory reads and writes were generated when altering merge and base tables. This could lead to a crash or Valgrind errors:
==28038== Invalid write of size 1 at: memset (mc_replace_strmem.c:479) by: myrg_attach_children (myrg_open.c:433) by: ha_myisammrg::attach_children() (ha_myisammrg.cc:546) by: ha_myisammrg::extra(ha_extra_function) (ha_myisammrg.cc:944) by: attach_merge_children(TABLE_LIST*) (sql_base.cc:4147) by: open_tables(THD*, TABLE_LIST**, unsigned*, unsigned) (sql_base.cc:4709) by: open_and_lock_tables_derived(THD*, TABLE_LIST*, bool) (sql_base.cc:4977) by: open_n_lock_single_table (mysql_priv.h:1550) by: mysql_alter_table(sql_table.cc:6428) by: mysql_execute_command(THD*) (sql_parse.cc:2860) by: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:5933) by: dispatch_command (sql_parse.cc:1213)
Inserting data into a table using the
maccecharacter set with theIBMDB2Istorage engine would fail. (Bug#45793)There was a race condition when changing
innodb_commit_concurrencyat runtime to the valueDEFAULT. (Bug#45749)See also Bug#42101.
Performing an empty XA transaction caused the server to crash for the next XA transaction. (Bug#45548)
For replication of a stored procedure that uses the
gbkcharacter set, the result on the master and slave differed. (Bug#45485)SHOW CREATE TRIGGERrequires theTRIGGERprivilege but was not checking privileges. (Bug#45412)An assertion failure could occur if
InnoDBtried to unlock a record when the clustered index record was unknown. (Bug#45357)--enable-options (for example,plugin_name--enable-innodb) did not work correctly. (Bug#45336)See also Bug#19027.
If autocommit was enabled,
InnoDBdid not roll backDELETEorUPDATEstatements if the statement was killed. (Bug#45309)The optimizer mishandled “impossible range” conditions and returned empty results due to an uninitialized variable. (Bug#45266)
Use of
DECIMALconstants with more than 65 digits inCREATE TABLE ... SELECTstatements led to spurious errors or assertion failures. (Bug#45262)The mysql client could misinterpret some character sequences as commands under some circumstances. (Bug#45236)
Use of
CONVERT()with an emptySETvalue could cause an assertion failure. (Bug#45168)InnoDBrecovery could hang due to redo logging of doublewrite buffer pages. (Bug#45097)when reading binary data, the concatenation function for geometry data collections did not rigorously check for available data, leading to invalid reads and server crashes. (Bug#44684)
If an error occurred during the creation of a table (for example, the table already existed) having an
AUTO_INCREMENTcolumn and aBEFOREtrigger that used theINSERT ... SELECTconstruct, an internal flag was not reset properly. This led to a crash the next time that the table was opened again. (Bug#44653)configure.incontained references to literal instances of nm andlibc, rather than to variables parameterized for the proper values on the current platform. (Bug#42721)configure.indid not properly check for thepthread_setschedprio()function. (Bug#42599)SHOW ERRORSreturned an empty result set after an attempt to drop a nonexistent table. (Bug#42364)A workaround for a Sun Studio bug was instituted. (Bug#41710)
For queries with a sufficient number of subqueries in the
FROMclause of this form:SELECT * FROM (SELECT 1) AS t1, (SELECT 2) AS t2, (SELECT 3) AS t3, ...The query failed with a
Too high level of nesting for selecterror, as though the query had this form:SELECT * FROM (SELECT 1 FROM (SELECT 2 FROM (SELECT 3 FROM ...
Some
UPDATEstatements that affected no rows returned a rows-affected count of one. (Bug#40565)Valgrind warnings that occurred for
SHOW TABLE STATUSwithInnoDBtables were silenced. (Bug#38479)In the mysql client, if the server connection was lost during repeated
statuscommands, the client would fail to detect this and command output would be inconsistent. (Bug#37274)A Valgrind error during subquery execution was corrected. (Bug#36995)
When invoked to start multiple server instances, mysqld_multi sometimes would fail to start them all due to not changing location into the base directory for each instance. (Bug#36654)
Rows written to the slow query log could have an indeterminate
Rows_examinedvalue due to improper initialization. (Bug#34002)Renaming a column that appeared in a foreign key definition did not update the foreign key definition with the new column name. (Bug#21704)
Functionality added or changed:
Important Change: Replication: Previously, incident log events were represented as comments in the output from mysqlbinlog, making them effectively silent when playing back the binlog.
(An incident log event represents an incident that could cause the contents of the database to change without that event being recorded in the binary log.)
This meant that, if the SQL were applied to a server, it could potentially lead to the master and the slave having different data. To make it possible to handle incident log events without breaking applications that expect the previous behavior, the nonsense statement RELOAD DATABASE is added to the SQL output for that incident log event, which causes an error.
To use this functionality currently requires hand editing of the dump file and handling of each case on an individual basis by a database administrator before applying the output to a server. (Bug#44442)
mysql_upgrade now displays a message indicating the connection parameters it uses when invoking mysqlcheck. (Bug#44638)
The time zone tables for Windows available at http://dev.mysql.com/downloads/timezones.html have been updated. (Bug#39923)
The mysqltest program now has a
move_filecommand for renaming files. This should be used in test cases rather than invoking an external command that might be platform specific. (Bug#39542)from_file to_fileThe maximum value for
max_binlog_cache_sizehas been increased from 232 – 1 to 264 – 1 (even on 32-bit platforms), which enables transactions 4GB and larger to be performed when binary logging is enabled. (Bug#10206)
Bugs fixed:
Performance: The
InnoDBadaptive hash latch is released (if held) for serveral potentially long-running operations. This improves throughput for other queries if the current query is removing a temporary table, changing a temporary table from memory to disk, usingCREATE TABLE ... SELECT, or performing aMyISAMrepair on a table used within a transaction. (Bug#32149)Security Fix: The server crashed if an account with the
CREATE ROUTINEprivilege but not theEXECUTEprivilege attempted to create a stored procedure. (Bug#44798)Security Fix: The server crashed if an account without the proper privileges attempted to create a stored procedure. (Bug#44658)
Security Fix: Four potential format string vulnerabilities were fixed (discovered by the Veracode code analysis). (Bug#44166)
Incompatible Change: The server can load plugins under the control of startup options. For example, many storage engines can be built in pluggable form and loaded when the server starts. In the following descriptions,
plugin_namestands for a plugin name such asinnodb.Previously, plugin options were handled like other boolean options (see Section 4.2.3.2, “Program Option Modifiers”). That is, any of these options enabled the plugin:
--
plugin_name--plugin_name=1 --enable-plugin_nameAnd these options disabled the plugin:
--
plugin_name=0 --disable-plugin_name--skip-plugin_nameHowever, use of a boolean option for plugin loading did not provide control over what to do if the plugin failed to start properly: Should the server exit, or start with the plugin disabled? The actual behavior has been that the server starts with the plugin disabled, which can be problematic. For example, if
InnoDBfails to start, existingInnoDBtables become inaccessible, and attempts to create newInnoDBtables result in tables that use the default storage engine unless theNO_ENGINE_SUBSTITUTIONSQL mode has been enabled to cause an error to occur instead.Now, there is a change in the options used to control plugin loading, such that they have a tristate format:
--plugin_name=OFFDo not enable the plugin.
--plugin_name[=ON]Enable the plugin. If plugin initialization fails, start the server anyway, but with the plugin disabled. Specifying the option as
--without a value also enables the plugin.plugin_name--plugin_name=FORCEEnable the plugin. If plugin initialization fails, do not start the server. In other words, force the server to run with the plugin or not at all.
The values
OFF,ON, andFORCEare not case sensitive.Suppose that
CSVandInnoDBhave been built as pluggable storage engines and that you want the server to load them at startup, subject to these conditions: The server is allowed to run ifCSVinitialization fails, but must require thatInnoDBinitialization succeed. To accomplish that, use these lines in an option file:[mysqld] csv=ON innodb=FORCE
This change is incompatible with the previous implementation if you used options of the form
--orplugin_name=0--, which should be changed toplugin_name=1--orplugin_name=OFF--, respectively.plugin_name=ON--enable-is still supported and is the same asplugin_name--.plugin_name=ON--disable-andplugin_name--skip-are still supported and are the same asplugin_name--. (Bug#19027)plugin_name=OFFSee also Bug#45336.
Important Change: Replication:
BEGIN,COMMIT, andROLLBACKstatements are no longer affected by--replicate-do-dbor--replicate-ignore-dbrules. (Bug#43263)Partitioning: Queries using
DISTINCTon multiple columns orGROUP BYon multiple columns did not return correct results with partitioned tables. (Bug#44821)See also Bug#41136.
Replication: When using row-based logging, the length of an event for which the field metadata exceeded 255 bytes in size was incorrectly calculated. This could lead to corruption of the binary log, or cause the server to hang. (Bug#42749)
Replication: The warning Statement is not safe to log in statement format, issued in situations when it cannot be determined that a statement or other database event can be written reliably to the binary log using the statement-based format, has been changed to Statement may not be safe to log in statement format. (Bug#42415)
Replication: The
Query_log_eventused by replication to transfer a query to the slave has been refactored.Query_log_eventalso stores and sends the error code resulting from the execution since it, in some cases, is necessary to execute the statement on the slave as well, which should result in the same error code. TheQuery_log_eventconstructor previously worked out for itself the error code using a complex routine, the result of which was often set aside within the constructor itself. This was also involved with at least 2 known bugs relating to invalid errors, and taken as a clear sign that the constructor was not well-designed and needed to be re-written. (Bug#41948)See also Bug#37145.
Replication: When stopping and restarting the slave while it was replicating temporary tables, the slave server could crash or raise an assertion failure. This was due to the fact that, although temporary tables were saved between slave thread restarts, the reference to the thread being used (
table->in_use) was not being properly updated when restarting, continuing to reference the old thread instead of the new one. This issue affected statement-based replication only. (Bug#41725)The combination of
MIN()orMAX()in the select list withWHEREandGROUP BYclauses could lead to incorrect results. (Bug#45386)Linker failures with
libmysqldon VC++ 2008 were fixed. (Bug#45326)Compiler warnings on Mac OS X were fixed. (Bug#45286)
Running a
SELECTquery over anIBMDB2Itable using thecp1250character set would produce an erroribmdb2i error 2027: Error converting single-byte sort sequence to UCS-2
Use of
ROUND()on aLONGTEXTorLONGBLOBcolumn of a derived table could cause a server crash. (Bug#45152)DROP USERcould fail to drop all privileges for an account if thePAD_CHAR_TO_FULL_LENGTHSQL mode was enabled. (Bug#45100)GROUP BYon aconstant(single-row)InnoDBtable joined to other tables caused a server crash. (Bug#44886)ALTER TABLEon a view crashed the server. (Bug#44860)When using partitioning with the
IBMDB2Istorage engine, the engine could report that a valid character set was not supported. (Bug#44856)Running queries on tables with the
IBMDB2Istorage engine using theutf8character would fail when using the 64-bit version of MySQL. (Bug#44811)Index Merge followed by a filesort could result in a server crash if
sort_buffer_sizewas not large enough for all sort keys. (Bug#44810)See also Bug#40974.
UNCOMPRESSED_LENGTH()returned a garbage result when passed a string shorter than 5 bytes. NowUNCOMPRESSED_LENGTH()returnsNULLand generates a warning. (Bug#44796)Several Valgrind warnings were silenced. (Bug#44774, Bug#44792)
Selecting
RAND(function whereN)Nis a column of aconstanttable (table with a single row) failed with aSIGFPEsignal. (Bug#44768)The
PASSWORD()andOLD_PASSWORD()functions could read memory outside of an internal buffer when used withBLOBarguments. (Bug#44767)Conversion of a string to a different character set could use the same buffer for input and output, leading to incorrect results or warnings. (Bug#44743, Bug#44766)
mysqld_safe could fail to find the logger program. (Bug#44736)
Code that optimized a read-only XA transaction failed to reset the XID once the transaction was no longer active. (Bug#44672)
A Valgrind warning related to transaction processing was silenced. (Bug#44664)
Some Perl scripts in AIX packages contained an incorrect path to the perl executable. (Bug#44643)
When creating tables using the
IBMDB2Istorage engine, theRCDFMT(record format) that would be applied to the corresponding files within the IBM i would be set according to the table name. During whole table operations, the name could get modified to a value inconsistent with the table name. In addition, the record format would be inconsistent compared to the file content. TheIBMDB2Istorage engine now adds an explicitRCDFMTclause to theCREATE TABLEstatement passed down to the DB2 storage engine layer. (Bug#44610)innochecksum could incorrectly determine the input file name from the arguments. (Bug#44484)
Incorrect time was reported at the end of mysqldump output. (Bug#44424)
Caching of
GROUP BYexpressions could lead to mismatches between compile-time and runtime calculations and cause a server crash. (Bug#44399)Lettercase conversion in multibyte
cp932orsjischaracter sequences could produce incorrect results. (Bug#44352)InnoDBwas missingDB_ROLL_PTRinformation in Table MonitorCOLUMNSoutput. (Bug#44320)Assertion failure could occur for duplicate-key errors in
INSERT INTO ... SELECTstatements. (Bug#44306)Trying to use an unsupported character set on an
IBMDB2Itable would produce DB2 error 2501 or 2511. The error has been updated to produce Error 2504 (Character set is unsupported). (Bug#44232)On 64-bit Windows systems, myisamchk did not handle
key_buffer_sizevalues larger than 4GB. (Bug#43940)For user-defined
utf8collations, attempts to store values too long for a column could cause a server crash. (Bug#43827)Invalidation of query cache entries due to table modifications could cause threads to hang inside the query cache with state “freeing items”. (Bug#43758)
EXPLAIN EXTENDEDcould crash forUNIONqueries in which the lastSELECTwas not parenthesized and included anORDER BYclause. (Bug#43612)Multiple-table updates for
InnoDBtables could produce unexpected results. (Bug#43580)If the client lost the connection to the MySQL server after
mysql_stmt_prepare(), the first call tomysql_stmt_execute()returned an error (as expected) but consecutive calls tomysql_stmt_execute()ormysql_stmt_close()crashed the client. (Bug#43560)For
DELETEstatements withORDER BY, wherevarvarwas a global system variable with aNULLvalue, the server could crash. (Bug#42778)Builds linked against OpenSSL had a memory leak in association with use of X509 certificates. (Bug#42158)
There was a race condition when changing
innodb_commit_concurrencyat runtime from zero to nonzero or from nonzero to zero. Now this variable cannot be changed at runtime from zero to nonzero or vice versa. The value can still be changed from one nonzero value to another. (Bug#42101)See also Bug#45749.
SELECT ... INTO @varcould produce values different fromSELECT ...without theINTOclause. (Bug#42009)A crash occurred due to a race condition between the merge table and
table_cacheevictions.00000001403C452F mysqld.exe!memcpy()[memcpy.asm:151] 00000001402A275F mysqld.exe!ha_myisammrg::info()[ha_myisammrg.cc:854] 00000001402A2471 mysqld.exe!ha_myisammrg::attach_children()[ha_myisammrg.cc:488] 00000001402A2788 mysqld.exe!ha_myisammrg::extra()[ha_myisammrg.cc:863] 000000014015FC5D mysqld.exe!attach_merge_children()[sql_base.cc:4135] 000000014016A4C1 mysqld.exe!open_tables()[sql_base.cc:4697] 000000014016A898 mysqld.exe!open_and_lock_tables_derived()[sql_base.cc:4956] 000000014018BB54 mysqld.exe!mysql_insert()[sql_insert.cc:613] 000000014019EDD3 mysqld.exe!mysql_execute_command()[sql_parse.cc:3066] 00000001401A2F06 mysqld.exe!mysql_parse()[sql_parse.cc:5791] 00000001401A3C1A mysqld.exe!dispatch_command()[sql_parse.cc:1202] 00000001401A4CD7 mysqld.exe!do_command()[sql_parse.cc:857] 0000000140246327 mysqld.exe!handle_one_connection()[sql_connect.cc:1115] 00000001402B82C5 mysqld.exe!pthread_start()[my_winthread.c:85] 00000001403CAC37 mysqld.exe!_callthreadstart()[thread.c:295] 00000001403CAD05 mysqld.exe!_threadstart()[thread.c:275] 0000000077D6B69A kernel32.dll!BaseThreadStart() Trying to get some variables. Some pointers may be invalid and cause the dump to abort...
Shared-memory connections did not work in Vista if mysqld was started from the command line. (Bug#41190)
For views created with a column list clause, column aliases were not substituted when selecting through the view using a
HAVINGclause. (Bug#40825)A multiple-table
DELETEinvolving a table self-join could cause a server crash. (Bug#39918)Creating an
InnoDBtable with a comment containing a'#'character caused foreign key constraints to be omitted. (Bug#39793)ALTER TABLEneglected to preserveROW_FORMATinformation from the original table, which could cause subsequentALTER TABLEandOPTIMIZE TABLEstatements to lose the row format forInnoDBtables. (Bug#39200)The mysql option
--ignore-spaceswas nonfunctional. (Bug#39101)If a query was such as to produce the error
1054 Unknown column '...' in 'field list', usingEXPLAIN EXTENDEDwith the query could cause a server crash. (Bug#37362)In the mysql client, using a default character set of
binarycaused internal commands such asDELIMITERto become case sensitive. (Bug#37268)mysqldump --tab dumped triggers to
stdoutrather than to the.sqlfile for the corresponding table. (Bug#34861)If the
MYSQL_HISTFILEenvironment variable was set to/dev/null, the mysql client overwrote the/dev/nulldevice file as a normal file. (Bug#34224)mysqld_safe mishandled certain parameters if they contained spaces. (Bug#33685)
mysqladmin kill did not work for thread IDs larger than 32 bits. (Bug#32457)
Several client programs failed to interpret
--skip-passwordas “send no password.” (Bug#28479)Output from mysql --html did not encode the
<,>, or&characters. (Bug#27884)mysql_convert_table_format did not prevent converting tables to
MEMORYorBLACKHOLEtables, which could result in data loss. (Bug#27149)
This release of MySQL has two known outstanding issues for Windows:
The
.msiinstaller does not detect an existingrootpassword on the initial configuration attempt. To work around this, install and configure MySQL as normal, but skip any changes to security. (There is a checkbox that allows this on the security screen of the configuration wizard.) Then check your settings:If the old
rootpassword and security settings are okay, you are done and can proceed to use MySQL.Otherwise, reconfigure with the wizard and make any changes on the second configuration attempt. The wizard will properly prompt for the existing
rootpassword and allow changes to be made.
This issue has been filed as Bug#45200 for correction in a future release.
The Windows configuration wizard allows changes to
InnoDBsettings during a reconfiguration operation. For an upgrade, this may cause difficulties. To work around this, use one of the following alternatives:Do not change
InnoDBsettings.Copy files from the old
InnoDBlocation to the new one.
This issue has been filed as Bug#45201 for correction in a future release.
Bugs fixed:
Performance:
InnoDBuses random numbers to generate dives into indexes for calculating index cardinality. However, under certain conditions, the algorithm did not generate random numbers, soANALYZE TABLEdid not update cardinality estimates properly. A new algorithm has been introduced with better randomization properties, together with a system variable,innodb_use_legacy_cardinality_algorithm, that controls which algorithm to use. The default value of the variable is 1 (ON), to use the original algorithm for compatibility with existing applications. The variable can be set to 0 (OFF) to use the new algorithm with improved randomness. (Bug#43660)Performance: If the character set for a column being compared was neither the default server character set nor
latin1,InnoDBwas slower than necessary due to excessive contention for a character set mutex.As a workaround for earlier versions, set the default server character set to the character set other than
latin1that is most often used in indexed columns. (Bug#42649)Important Change: Replication: The transactional behavior of
STOP SLAVEhas changed. Formerly, it took effect immediately, even inside a transaction; now, it waits until the current replication event group (if any) has finished executing, or until the user issues aKILL QUERYorKILL CONNECTIONstatement.This was done in order to solve the problem encountered when replication was stopped while a nontransactional slave was replicating a transaction on the master. (It was impossible to roll back a mixed-engines transaction when one of the engines was nontransactional, which meant that the slave could not safely re-apply any transaction that had been interrupted by
STOP SLAVE.) (Bug#319, Bug#38205)See also Bug#43217.
Partitioning: When a value was equal to a
PARTITION ... VALUES LESS THAN (value other thanvalue)MAXVALUE, the corresponding partition was not pruned. (Bug#42944)Replication: Unrelated errors occurring during the execution of
RESET SLAVEcould cause the slave to crash. (Bug#44179)Replication: The
--slave-skip-errorsoption had no effect when using row-based logging format. (Bug#39393)Replication: The following errors were not correctly reported:
Failures during slave thread initialization
Failures while initializing the relay log position (immediately following the starting of the slave thread)
Failures while processing queries passed through the
--init_slaveoption.
Information about these types of failures can now be found in the output of
SHOW SLAVE STATUS. (Bug#38197)Replication: Killing the thread executing a DDL statement, after it had finished its execution but before it had written the binlog event, caused the error code in the binlog event to be set (incorrectly) to ER_SERVER_SHUTDOWN or ER_QUERY_INTERRUPTED, which caused replication to fail. (Bug#37145)
Replication: Column aliases used inside subqueries were ignored in the binary log. (Bug#35515)
Valgrind warnings for the
DECODE(),ENCRYPT(), andFIND_IN_SET()functions were corrected. (Bug#44358, Bug#44365, Bug#44367)On Windows, entries for build-vs9.bat and build-vs9_x64.bat were missing in
win/Makefile.am. (Bug#44353)Incomplete cleanup of
JOIN_TAB::selectduring the filesort of rows for aGROUP BYclause inside a subquery caused a server crash. (Bug#44290)Not all lock types had proper descriptive strings, resulting in garbage output from mysqladmin debug. (Bug#44164)
Use of
HANDLERstatements withINFORMATION_SCHEMAtables caused a server crash. NowHANDLERis prohibited with such tables. (Bug#44151)MySQL Server allowed the creation of a merge table based on views but crashed when attempts were made to read from that table. The following example demonstrates this:
#Create a test table CREATE TABLE tmp (id int, c char(2)); #Create two VIEWs upon it CREATE VIEW v1 AS SELECT * FROM tmp; CREATE VIEW v2 AS SELECT * FROM tmp; #Finally create a MERGE table upon the VIEWs CREATE TABLE merge (id int, c char(2)) ENGINE=MERGE UNION(v1, v2); #Reading from the merge table lead to a crash SELECT * FROM merge;
The final line of the code generated the crash. (Bug#44040)
Some schema names longer than 8 characters were not supported by
IBMDB2I. The engine has been updated to allow digits and underscore characters to be used in names longer than 8 characters. (Bug#44025)In some circumstances, when a table is created with the
IBMDB2Iengine, theCREATE TABLEstatement will return successfully but the table will not exist. (Bug#44022)The
ucs2_swedish_ciandutf8_swedish_cicollations did not work with indexes using theIBMDB2Istorage engine. Support is now provided for MySQL when running on IBM i 6.1 or higher. (Bug#44020)Invoking
SHOW TABLE STATUSfrom within a stored procedure could cause aPackets out of ordererror. (Bug#43962)myisamchk could display a negative
Max keyfile lengthvalue. (Bug#43950)On 64-bit systems, a
key_buffer_sizevalue larger than 4GB could couseMyISAMindex corruption. (Bug#43932)mysqld_multi incorrectly passed
--no-defaultsto mysqld_safe. (Bug#43876)SHOW VARIABLESdid not properly display the value ofslave_skip_errors. (Bug#43835)On Windows, a server crash occurred for attempts to insert a floating-point value into a
CHARcolumn with a maximum length less than the converted floating-point value length. (Bug#43833)Incorrect initialization of
MyISAMtable indexes could cause incorrect query results. (Bug#43737)libmysqldcrashed when it was reinitialized. (Bug#43706, Bug#44091)UNIONof floating-point numbers did unnecessary rounding. (Bug#43432)ALTER DATABASE ... UPGRADE DATA DIRECTORY NAMEfailed when the database contained views. (Bug#43385)Certain statements might open a table and then wait for an impending global read lock without noticing whether they hold a table being waiting for by the global read lock, causing a hang. Affected statements are
SELECT ... FOR UPDATE,LOCK TABLES ... WRITE,TRUNCATE TABLE, andLOAD DATA INFILE. (Bug#43230)Using an XML function such as
ExtractValue()more than once in a single query could produce erroneous results. (Bug#43183)See also Bug#43937.
Full-text prefix searches could hang the connection and cause 100% CPU consumption. (Bug#42907)
Incorrect elevation of warning messages to error messages for unsafe statements caused a server crash. (Bug#42640)
CHECK TABLEsuggested use ofREPAIR TABLEfor corrupt tables for storage engines not supported byREPAIR TABLE. NowCHECK TABLEsuggests that the user dump and reload the table. (Bug#42563)Compressing a table with the myisampack utility caused the server to produce Valgrind warnings when it opened the table. (Bug#41541)
For a
MyISAMtable withDELAY_KEY_WRITEenabled, the index file could be corrupted without the table being marked as crashed if the server was killed. (Bug#41330)For some queries, an equality propagation problem could cause
a = bandb = ato be handled differently. (Bug#40925)Killing an
INSERT ... SELECTstatement for aMyISAMtable could cause table corruption if the table had indexes. (Bug#40827)A multiple-table
DELETE IGNOREstatement involving a foreign key constraint caused an assertion failure. (Bug#40127)Multiple-table
UPDATEstatements did not properly activate triggers. (Bug#39953)The mysql_setpermission operation for removing database privileges removed global privileges instead. (Bug#39852)
A stored routine contain a C-style comment could not be dumped and reloaded. (Bug#39559)
In an
UPDATEorDELETEvia a secondary index,InnoDBdid not store the cursor position. This madeInnoDBcrash in semi-consistent read while attempting to unlock a nonmatching record. (Bug#39320)The functions listed in Section 11.13.4.2.3, “Creating Geometry Values Using MySQL-Specific Functions”, previously accepted WKB arguments and returned WKB values. They now accept WKB or geometry arguments and return geometry values.
The functions listed in Section 11.13.4.2.2, “Creating Geometry Values Using WKB Functions”, previously accepted WKB arguments and returned geometry values. They now accept WKB or geometry arguments and return geometry values. (Bug#38990)
On WIndows, running the server with
myisam_use_mmapenabled causedMyISAMtable corruption. (Bug#38848)CHECK TABLEdid not properly check whetherMyISAMtables created by servers from MySQL 4.0 or older needed to be upgraded. This could cause problems upgrading to MySQL 5.1 or higher. (Bug#37631)An
UPDATEstatement that updated a column using the sameDES_ENCRYPT()value for each row actually updated different rows with different values. (Bug#35087)For shared-memory connections, the read and write methods did not properly handle asynchronous close events, which could lead to the client locking up waiting for a server response. For example, a call to
mysql_real_query()would block forever on the client side if the executed statement was aborted on the server side. Thanks to Armin Schöffmann for the bug report and patch. (Bug#33899)CHECKSUM TABLEwas not killable withKILL QUERY. (Bug#33146)myisamchk and myisampack were not being linked with the library that enabled support for
*filename pattern expansion. (Bug#29248)For
InnoDBtables that have their own.ibdtablespace file, a superfluousibuf cursor restoration fails!message could be written to the error log. This warning has been suppressed. (Bug#27276)COMMITdid not delete savepoints if there were no changes in the transaction. (Bug#26288)Several memory allocation functions were not being checked for out-of-memory return values. (Bug#25058)
This is a Service Pack release of the MySQL Enterprise Server 5.1.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.1.34).
Note
The fix for Bug#40974 in MySQL 5.1.31 caused the regression problem reported in Bug#44810. Users for whom stability is of utmost priority should note that 5.1.34sp1 is affected by this problem because Bug#44810 is not fixed until MySQL 5.1.36.
If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise/advisors.html.
Bugs fixed:
Incomplete cleanup of
JOIN_TAB::selectduring the filesort of rows for aGROUP BYclause inside a subquery caused a server crash. (Bug#44290)Use of
HANDLERstatements withINFORMATION_SCHEMAtables caused a server crash. NowHANDLERis prohibited with such tables. (Bug#44151)On 64-bit systems, a
key_buffer_sizevalue larger than 4GB could couseMyISAMindex corruption. (Bug#43932)On Windows, a server crash occurred for attempts to insert a floating-point value into a
CHARcolumn with a maximum length less than the converted floating-point value length. (Bug#43833)libmysqldcrashed when it was reinitialized. (Bug#43706, Bug#44091)Certain statements might open a table and then wait for an impending global read lock without noticing whether they hold a table being waiting for by the global read lock, causing a hang. Affected statements are
SELECT ... FOR UPDATE,LOCK TABLES ... WRITE,TRUNCATE TABLE, andLOAD DATA INFILE. (Bug#43230)Using an XML function such as
ExtractValue()more than once in a single query could produce erroneous results. (Bug#43183)See also Bug#43937.
Incorrect elevation of warning messages to error messages for unsafe statements caused a server crash. (Bug#42640)
In an
UPDATEorDELETEvia a secondary index,InnoDBdid not store the cursor position. This madeInnoDBcrash in semi-consistent read while attempting to unlock a nonmatching record. (Bug#39320)The functions listed in Section 11.13.4.2.3, “Creating Geometry Values Using MySQL-Specific Functions”, previously accepted WKB arguments and returned WKB values. They now accept WKB or geometry arguments and return geometry values.
The functions listed in Section 11.13.4.2.2, “Creating Geometry Values Using WKB Functions”, previously accepted WKB arguments and returned geometry values. They now accept WKB or geometry arguments and return geometry values. (Bug#38990)
Support Ending for AIX 5.2: Per the MySQL Support Lifecycle policy regarding ending support for OS versions that have reached vendor end of life, we plan to discontinue building or supporting MySQL binaries for AIX 5.2 as of April 30, 2009. This release of MySQL 5.1 (5.1.34) is the last MySQL 5.1 release with support for AIX 5.2. For more information, see the March 24, 2009 note at MySQL Product Support EOL Announcements.
Functionality added or changed:
The
optimizer_switchsystem variable is now available to control optimizations that can be switched on and off. See Section 7.2.18, “Usingoptimizer_switchto Control the Optimizer”.
Bugs fixed:
Replication: Important Note: Binary logging with
--binlog_format=ROWfailed when a change to be logged included more than 251 columns. This issue was not known to occur with mixed-format or statement-based logging. (Bug#42977)See also Bug#42914.
Replication: Assigning an invalid directory for the
--slave-load-tmpdircaused the replication slave to crash. (Bug#42861)Replication: The
mysql.procs_privsystem table was not replicated. (Bug#42217)Replication: An
INSERT DELAYEDinto aTIMESTAMPcolumn issued concurrently with an insert on the same column not usingDELAYED, but applied after the other insert, was logged using the same timestamp as generated by the other (non-DELAYED) insert. (Bug#41719)Replication: The
MIXEDbinary logging format did not switch to row-based mode for statements containing theLOAD_FILE()function. (Bug#39701)Replication: When the server SQL mode included
IGNORE_SPACE, statement-based replication ofLOAD DATA INFILE ... INTOfailed because the statement was read incorrectly from the binary log; a trailing space was omitted, causing the statement to fail with a syntax error when run on the slave. (Bug#22504)tbl_nameSee also Bug#43746.
An attempt by a user who did not have the
SUPERprivilege to kill a system thread could cause a server crash. (Bug#43748)On Windows, incorrectly specified link dependencies in
CMakeLists.txtresulted in link errors for mysql_embedded, mysqltest_embedded, and mysql_client_test_embedded. (Bug#43715)mysql crashed if a request for the current database name returned an empty result, such as after the client has executed a preceding
SET sql_select_limit=0statement. (Bug#43254)If the value of the
version_commentsystem variable was too long, the mysql client displayed a truncated startup message. (Bug#43153)Queries of the following form returned an empty result:
SELECT ... WHERE ... (
col=colANDcol=col) OR ... (false expression)The
strings/CHARSET_INFO.txtfile was not included in source distributions. (Bug#42937)A dangling pointer in
mysys/my_error.ccould lead to client crashes. (Bug#42675)Passing an unknown time zone specification to
CONVERT_TZ()resulted in a memory leak. (Bug#42502)The MySQL Instance Configuration Wizard would fail to start correctly on Windows Vista. (Bug#42386)
With more than two arguments,
LEAST(),GREATEST(), andCASEcould unnecessarily returnIllegal mix of collationserrors. (Bug#41627)The mysql client could misinterpret its input if a line was longer than an internal buffer. (Bug#41486)
In the
helpcommand output displayed by mysql, the description for the\c(clear) command was misleading. (Bug#41268)The
load_defaults(),my_search_option_files()andmy_print_default_files()functions in the C client library were subject to a race condition in multi-threaded operation. (Bug#40552)If
--basedirwas specified, mysqld_safe did not use it when attempting to locate my_print_defaults. (Bug#39326)When running the MySQL Instance Configuration Wizard in command-line only mode, the service name would be ignored (effectively creating all instances with the default
MySQLservice name), irrespective of the name specified on the command line. However, the wizard would attempt to start the service with the specified name, and would fail. (Bug#38379)When MySQL was configured with the
--with-max-indexes=128option, mysqld crashed. (Bug#36751)Setting the
join_buffer_sizevariable to its minimum value produced spurious warnings. (Bug#36446)The use of
NAME_CONST()can result in a problem forCREATE TABLE ... SELECTstatements when the source column expressions refer to local variables. Converting these references toNAME_CONST()expressions can result in column names that are different on the master and slave servers, or names that are too long to be legal column identifiers. A workaround is to supply aliases for columns that refer to local variables.Now a warning is issued in such cases that indicate possible problems. (Bug#35383)
An attempt to check or repair an ARCHIVE table that had been subjected to a server crash returned a 144 internal error. The data appeared to be irrecoverable. (Bug#32880)
The
Timecolumn forSHOW PROCESSLISToutput and the value of theTIMEcolumn of theINFORMATION_SCHEMA.PROCESSLISTtable now can have negative values. Previously, the column was unsigned and negative values were displayed incorrectly as large positive values. Negative values can occur if a thread alters the time into the future withSET TIMESTAMP =or the thread is executing on a slave and processing events from a master that has its clock set ahead of the slave. (Bug#22047)valueRestoring a mysqldump dump file containing
FEDERATEDtables failed because the file contained the data for the table. Now only the table definition is dumped (because the data is located elsewhere). (Bug#21360)
Support Ending for AIX 5.2: Per the MySQL Support Lifecycle policy regarding ending support for OS versions that have reached vendor end of life, we plan to discontinue building or supporting MySQL binaries for AIX 5.2 as of April 30, 2009. The next release of MySQL 5.1 (5.1.34) will be the last MySQL 5.1 release with support for AIX 5.2. For more information, see the March 24, 2009 note at MySQL Product Support EOL Announcements.
Functionality added or changed:
Performance: The query cache now checks whether a
SELECTstatement begins withSQL_NO_CACHEto determine whether it can skip checking for the query result in the query cache. This is not supported whenSQL_NO_CACHEoccurs within a comment. (Bug#37416)mysql-test-run.pl now supports an
--experimental=option. It enables you to specify a file that contains a list of test cases that should be displayed with thefile_name[ exp-fail ]code rather than[ fail ]if they fail. (Bug#42888)The MD5 algorithm now uses the Xfree implementation. (Bug#42434)
Bugs fixed:
Partitioning: A duplicate key error raised when inserting into a partitioned table used a different error code from that returned by such an error raised when inserting into a table that was not partitioned. (Bug#38719)
See also Bug#28842.
Partitioning: Several error messages relating to partitioned tables were incorrect or missing. (Bug#36001)
Replication: When
--binlog_formatwas set toSTATEMENT, a statement unsafe for statement-based logging caused an error or warning to be issued even ifsql_log_binwas set to 0. (Bug#41980)Replication: When using
MIXEDreplication format and temporary tables were created in statement-based mode, but a later operation in the same session caused a switch to row-based mode, the temporary tables were not dropped on the slave at the end of the session. (Bug#40013)See also Bug#43046.
This regression was introduced by Bug#20499.
Replication: When using the
MIXEDreplication format,UPDATEandDELETEstatements that searched for rows where part of the key had nullableBITcolumns failed. This occurred because operations that inserted the data were replicated as statements, butUPDATEandDELETEstatements affecting the same data were replicated using row-based format.This issue did not occur when using statement-based replication (only) or row-based replication (only). (Bug#39753)
See also Bug#39648.
Replication: The server SQL mode in effect when a stored procedure was created was not retained in the binary log. This could cause a
CREATE PROCEDUREstatement that succeeded on the master to fail on the slave.This issue was first noticed when a stored procedure was created when
ANSI_QUOTESwas in effect on the master, but could possibly cause failedCREATE PROCEDUREstatements and other problems on the slave when using other server SQL modes as well. (Bug#39526)Replication: If
--secure-file-privwas set on the slave, it was unable to executeLOAD DATA INFILEstatements sent from the master when using mixed-format or statement-based replication.As a result of this fix, this security restriction is now ignored on the slave in such cases; instead the slave checks whether the files were created and should be read by the slave in its
--slave-load-tmpdir. (Bug#38174)Replication: Server IDs greater than 2147483647 (232 – 1) were represented by negative numbers in the binary log. (Bug#37313)
Replication: When its disk becomes full, a replication slave may wait while writing the binary log, relay log or
MyISAMtables, continuing after space has been made available. The error message provided in such cases was not clear about the frequency with which checking for free space is done (once every 60 seconds), and how long the server waits after space has been freed before continuing (also 60 seconds); this caused users to think that the server had hung.These issues have been addressed by making the error message clearer, and dividing it into two separate messages:
The error message Disk is full writing '
filename' (Errcode:error_code). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space) is printed only once.The warning Retry in 60 secs, Message reprinted in 600 secs is printed once every for every 10 times that the check for free space is made; that is, the check is performed once each 60 seconds, but the reminder that space needs to be freed is printed only once every 10 minutes (600 seconds).
Replication: The statements
DROP PROCEDURE IF EXISTSandDROP FUNCTION IF EXISTSwere not written to the binary log if the procedure or function to be dropped did not exist. (Bug#13684)See also Bug#25705.
The IBM DB2i storage engine has been added to this release for the IBM i Series platform. For more information, see The
IBMDB2IStorage Engine. (Bug#44217)On 64-bit debug builds, code in
safemallocresulted in errors due to use of a 32-bit value for 64-bit allocations. (Bug#43885)make distcheck failed to properly handle subdirectories of
storage/ndb. (Bug#43614)Use of
USE INDEXhints could causeEXPLAIN EXTENDEDto crash. (Bug#43354)For
InnoDBtables, overflow in anAUTO_INCREMENTcolumn could cause a server crash. (Bug#43203)On 32-bit Windows, mysqld could not use large buffers due to a 2GB user mode address limit. (Bug#43082)
stderrshould be unbuffered, but when the server redirectedstderrto a file, it became buffered. (Bug#42790)The
DATA_TYPEcolumn of theINFORMATION_SCHEMA.COLUMNStable displayed theUNSIGNEDattribute for floating-point data types. (The column should contain only the data type name.) (Bug#42758)For
InnoDBtables, spurious duplicate-key errors could occur when inserting into anAUTO_INCREMENTcolumn. (Bug#42714)mysqldump included views that were excluded with the
--ignore-tableoption. (Bug#42635)An earlier bug fix resulted in the problem that the
InnoDBplugin could not be used with a server that was compiled with the built-inInnoDB. To handle this two changes were made:The server now supports an
--ignore-builtin-innodboption that causes the server to behave as if the built-inInnoDBis not present. This option causes otherInnoDBoptions not to be recognized.For the
INSTALL PLUGINstatement, the server reads option (my.cnf) files just as during server startup. This enables the plugin to pick up any relevant options from those files. Consequently, a plugin no longer is started with each option set to its default value.Because of this change, it is possible to add plugin options to an option file even before loading a plugin (if the
looseprefix is used). It is also possible to uninstall a plugin, editmy.cnf, and install the plugin again. Restarting the plugin this way enables it to the new option values without a server restart.
Note
InnoDBPlugin versions 1.0.4 and higher will take advantage of this bug fix. Although theInnoDBPlugin is source code compatible with multiple MySQL releases, a given binaryInnoDBPlugin can be used only with a specific MySQL release. WhenInnoDBPlugin 1.0.4 is released, it is expected to be compiled for MySQL 5.1.34. For 5.1.33, you can useInnoDBPlugin 1.0.3, but you must build from source.This regression was introduced by Bug#29263.
With the
ONLY_FULL_GROUP_BYSQL mode enabled, some legal queries failed. (Bug#42567)Tables could enter open table cache for a thread without being properly cleaned up, leading to a server crash. (Bug#42419)
For
InnoDBtables, inserting into floating-pointAUTO_INCREMENTcolumns failed. (Bug#42400)The
InnoDBbtr_search_drop_page_hash_when_freed()function had a race condition. (Bug#42279)For
InnoDBtables, there was a race condition forALTER TABLE,OPTIMIZE TABLE,CREATE INDEX, andDROP INDEXoperations when periodically checking whether table copying can be committed. (Bug#42152)Parsing of the optional microsecond component of
DATETIMEvalues did not fail gracefully when that component width was larger than the allowed six places. (Bug#42146)In
InnoDBrecovery after a server crash, table lookup could fail and corrupt the data dictionary cache. (Bug#42075)mysqldumpslow parsed the
--debugand--verboseoptions incorrectly. (Bug#42027)Queries that used the loose index scan access method could return no rows. (Bug#41610)
In
InnoDBrecovery after a server crash, rollback of a transaction that updated a column fromNULLtoNULLcould cause another crash. (Bug#41571)The error message for a too-long column comment was
Unknown errorrather than a more appropriate message. (Bug#41465)Use of
SELECT *allowed users with rights to only some columns of a view to access all columns. (Bug#41354)If the tables underlying a
MERGEtable had a primary key but theMERGEtable itself did not, inserting a duplicate row into theMERGEtable caused a server crash. (Bug#41305)The server did not robustly handle problems hang if a table opened with
HANDLERneeded to be re-opened because it had been altered to use a different storage engine that does not supportHANDLER. The server also failed to set an error if the re-open attempt failed. These problems could cause the server to crash or hang. (Bug#41110, Bug#41112)SELECTstatements executed concurrently withINSERTstatements for aMyISAMtable could cause incorrect results to be returned from the query cache. (Bug#41098)For prepared statements, multibyte character sets were not taking into account when calculating
max_lengthfor string values andmysql_stmt_fetch()could return truncated strings. (Bug#41078)Deprecation warnings that referred to MySQL 5.2 were changed to refer to MySQL 6.0. (Bug#41077)
For user-defined variables in a query result, incorrect length values were returned in the result metadata. (Bug#41030)
On Windows, starting the server with an invalid value for
innodb_flush_methodcaused a crash. (Bug#40757)MySQL 5.1 crashed with index merge algorithm and merge tables.
A query in the MyISAM merge table caused a crash if the index merge algorithm was being used. (Bug#40675)
With strict SQL mode enabled, setting a system variable to an out-of-bounds value caused an assertion failure. (Bug#40657)
Table temporary scans were slower than necessary due to use of mmap rather than caching, even with the
myisam_use_mmapsystem variable disabled. (Bug#40634)For a view that references a table in another database, mysqldump wrote the view name qualified with the current database name. This makes it impossible to reload the dump file into a different database. (Bug#40345)
On platforms where long and pointer variables have different sizes,
MyISAMcould copy key statistics incorrectly, resulting in a server crash or incorrect cardinality values. (Bug#40321)DELETEtried to acquire write (not read) locks for tables accessed within a subquery of theWHEREclause. (Bug#39843)perror did not produce correct output for error codes 153 to 163. (Bug#39370)
Several functions in
libmysqldcalledexit()when an error occurred rather than returning an error to the caller. (Bug#39289)The
innodb_log_arch_dirsystem variable is no longer available but was present in some of the sample option files included with MySQL distributions (such asmy-huge.cnf). The line was present as a comment but uncommenting it would cause server startup failure so the line has been removed. (Bug#38249)Setting a savepoint with the same name as an existing savepoint incorrectly deleted any other savepoints that had been set in the meantime. For example, setting savepoints named
a,b,c,bresulted in savepointsa,b, rather than the correct savepointsa,c,b. (Bug#38187)--helpoutput for myisamchk did not list the--HELPoption. (Bug#38103)Comparisons between row constructors, such as
(a, b) = (c, d)resulted in unnecessaryIllegal mix of collationserrors for string columns. (Bug#37601)If a user created a view that referenced tables for which the user had disjoint privileges, an assertion failure occurred. (Bug#37191)
An argument to the
MATCH()function that was an alias for an expression other than a column name caused a server crash. (Bug#36737)The
event,general_log, andslow_logtables in themysqldatabase storeserver_idvalues, but did not use anUNSIGNEDcolumn and thus were not able to store the full range of ID values. (Bug#36540)On Windows, the
_PCmacro inmy_global.hwas causing problems for modern compilers. It has been removed because it is no longer used. (Bug#34309)For
DROP FUNCTIONwith names that were qualified with a database name, the database name was handled in case-sensitive fashion even withlower_case_table_namesset to 1. (Bug#33813)mysqldump --compatible=mysql40 emitted statements referring to the
character_set_clientsystem variable, which is unknown before MySQL 4.1. Now the statements are enclosed in version-specific comments. (Bug#33550)Detection by configure of several functions such as
setsockopt(),bind(),sched_yield(), andgtty()could fail. (Bug#31506)Use of MBR spatial functions such as
MBRTouches()with columns ofInnoDBtables caused a server crash rather than an error. (Bug#31435)The mysql client mishandled input parsing if a
delimitercommand was not first on the line. (Bug#31060)SHOW PRIVILEGESlisted theCREATE ROUTINEprivilege as having a context ofFunctions,Procedures, but it is a database-level privilege. (Bug#30305)mysqld --help did not work as
root. (Bug#30261)CHECK TABLE,REPAIR TABLE,ANALYZE TABLE, andOPTIMIZE TABLEerroneously reported a table to be corrupt if the table did not exist or the statement was terminated withKILL. (Bug#29458)SHOW TABLE STATUScould fail to produce output for tables with non-ASCII characters in their name. (Bug#25830)Allocation of stack space for error messages could be too small on HP-UX, leading to stack overflow crashes. (Bug#21476)
Floating-point numbers could be handled with different numbers of digits depending on whether the text or prepared-statement protocol was used. (Bug#21205)
Incorrect length metadata could be returned for
LONG TEXTcolumns when a multibyte server character set was used. (Bug#19829)ROUND()sometimes returned different results on different platforms. (Bug#15936)
Functionality added or changed:
The
libeditlibrary was upgraded to version 2.11. (Bug#42433)
Bugs fixed:
Security Fix: Using an XPath expression employing a scalar expression as a FilterExpr with
ExtractValue()orUpdateXML()caused the server to crash. Such expressions now cause an error instead. (Bug#42495)Incompatible Change: The fix for Bug#33699 introduced a change to the
UPDATEstatement such that assigningNULLto aNOT NULLcolumn caused an error even when strict SQL mode was not enabled. The original behavior before was that such assignments caused an error only in strict SQL mode, and otherwise set the column to the implicit default value for the column data type and generated a warning. (For information about implicit default values, see Section 10.1.4, “Data Type Default Values”.)The change caused compatibility problems for applications that relied on the original behavior. It also caused replication problems between servers that had the original behavior and those that did not, for applications that assigned
NULLtoNOT NULLcolumns inUPDATEstatements without strict SQL mode enabled. This change has been reverted so thatUPDATEagain had the original behavior. Problems can still occur if you replicate between servers that have the modifiedUPDATEbehavior and those that do not. (Bug#39265)Important Change: When using the MySQL Instance Configuration Wizard with a configuration where you already have an existing installation with a custom
datadir, the wizard could reset the data to the default data directory. When performing an upgrade installation in this situation, you must re-specify your custom settings, including thedatadir, to ensure that your configuration file is not reset to the default values. (Bug#37534)Important Change: Uninstalling MySQL using the MySQL installer on Windows would delete the
my.inifile. The file is no longer deleted. In addition, when a new installation is conducted, any existing cofiguration file will be renamed tomyDATETIME.ini.bakduring configuration. (Bug#36493)Important Change: When installing MySQL on Windows, it could be possible to install multiple editions (Complete, and Essential, for example) of the same version of MySQL, leading to two separate entries in the installed packages which were impossible to isolate. This could lead to problems with installation and uninstallation. The MySQL installer on Windows will no longer allow multiple installations of the same version of MySQL on a single machine. (Bug#4217)
Replication:
START SLAVE UNTILdid not work correctly with--replicate-same-server-idenabled; when started with this option, the slave did not perform events recorded in the relay log and that originated from a different master.Log rotation events are automatically generated and written when rotating the binary log or relay log. Such events for relay logs are usually ignored by the slave SQL thread because they have the same server ID as that of the slave. However, when
--replicate-same-server-idwas enabled, the rotation event for the relay log was treated as if it originated on the master, because the log's name and position were incorrectly updated. This caused theMASTER_POS_WAIT()function always to returnNULLand thus to fail. (Bug#38734, Bug#38934)Replication:
TRUNCATEstatements failed to replicate when statement-based binary logging mode was not available. The issue was observed when usingInnoDBwith the transaction isolation level set toREAD UNCOMMITTED(thus forcingInnoDBnot to allow statement-based logging). However, the same behavior could be reproduced using any transactional storage engine supporting only row-based logging, regardless of the isolation level. This was due to two separate problems:An error was printed by
InnoDBforTRUNCATEwhen using statement-based logging mode where the transaction isolation level was set toREAD COMMITTEDorREAD UNCOMMITTED, becauseInnoDBpermits statement-based replication for DML statements. However,TRUNCATEis not transactional; since it is the equivalent ofDROP TABLEfollowed byCREATE TABLE, it is actually DDL, and should therefore be allowed to be replicated as a statement.TRUNCATEwas not logged in mixed mode because of the error just described; however, this error was not reported to the client.
As a result of this fix,
TRUNCATEis now treated as DDL for purposes of binary logging and replication; that is, it is always logged as a statement and so no longer causes an error when replicated using a transactional storage engine such asInnoDB. (Bug#36763)See also Bug#42643.
Replication: mysqlbinlog replay of
CREATE TEMPORARY TABLE ... LIKEstatements and ofTRUNCATEstatements used on temporary tables failed with Error 1146 (Table ... doesn't exist). (Bug#35583)Replication: In statement mode, mysqlbinlog failed to issue a
SET @@autommitstatement when the autocommit mode was changed. (Bug#34541)Replication:
LOAD DATA INFILEstatements did not replicate correctly from a master running MySQL 4.1 to a slave running MySQL 5.1 or later. (Bug#31240)The use by
libeditof the__weak_reference()macro caused compilation failure on FreeBSD. (Bug#42817)A
'%'character in SQL statements could cause the server to crash. (Bug#42634)An optimization introduced for Bug#37553 required an explicit cast to be added for some uses of
TIMEDIFF()because automatic casting could produce incorrect results. (It was necessary to useTIME(TIMEDIFF(...)).) (Bug#42525)On the IBM i5 platform, the MySQL configuration process caused the system version of
pthread_setschedprio()to be used. This function returnsSIGILLon i5 because it is not supported, causing the server to crash. Now themy_pthread_setprio()function in themysyslibrary is used instead. (Bug#42524)The SSL certficates included with MySQL distributions were regenerated because the previous ones had expired. (Bug#42366)
User variables within triggers could cause a crash if the
mysql_change_user()C API function was invoked. (Bug#42188)Dependent subqueries such as the following caused a memory leak proportional to the number of outer rows:
SELECT COUNT(*) FROM t1, t2 WHERE t2.b IN (SELECT DISTINCT t2.b FROM t2 WHERE t2.b = t1.a);
Some queries using
NAME_CONST(.. COLLATE ...)led to a server crash due to a failed type cast. (Bug#42014)On Mac OS X, some of the universal client libraries were not actually universal and were missing code for one or more architectures. (Bug#41940)
String reallocation could cause memory overruns. (Bug#41868)
mysql_install_db did not pass some relevant options to mysqld. (Bug#41828)
Setting
innodb_locks_unsafe_for_binlogshould be equivalent to setting the transaction isolation level toREAD COMMITTED. However, if both of those things were done, nonmatching semi-consistently read rows were not unlocked when they should have been. (Bug#41671)REPAIR TABLEcrashed for compressedMyISAMtables. (Bug#41574)For a
TIMESTAMP NOT NULL DEFAULT ...column, storingNULLas the return value from some functions caused a “cannot be NULL” error.NULLreturns now correctly cause the column default value to be stored. (Bug#41370)The server cannot execute
INSERT DELAYEDstatements when statement-based binary logging is enabled, but the error message displayed only the table name, not the entire statement. (Bug#41121)FULLTEXTindexes did not work for Unicode columns that used a custom UCA collation. (Bug#41084)The Windows installer displayed incorrect product names in some images. (Bug#40845)
Changing
innodb_thread_concurrencyat runtime could cause errors. (Bug#40760)SELECTstatements could be blocked byINSERT DELAYEDstatements that were waiting for a lock, even withlow_priority_updatesenabled. (Bug#40536)For
InnoDBtables that usedROW_FORMAT=REDUNDANT, storage size ofNULLcolumns could be determined incorrectly. (Bug#40369)The query cache stored only partial query results if a statement failed while the results were being sent to the client. This could cause other clients to hang when trying to read the cached result. Now if a statement fails, the result is not cached. (Bug#40264)
When a
MEMORYtable became full, the error generated was returned to the client but was not written to the error log. (Bug#39886)With row-based binary logging, replication of
InnoDBtables containingNULL-valuedBITcolumns could fail. (Bug#39648)The expression
ROW(...) IN (SELECT ... FROM DUAL)always returnedTRUE. (Bug#39069)The greedy optimizer could cause a server crash due to improper handling of nested outer joins. (Bug#38795)
Use of
COUNT(DISTINCT)preventedNULLtesting in theHAVINGclause. (Bug#38637)The
innodb_stats_on_metadatasystem variable was not displayed bySHOW VARIABLESand was not settable at runtime. (Bug#38189)Enabling the
sync_frmsystem variable had no effect on the handling of.frmfiles for views. (Bug#38145)The embedded server truncated some error messages. (Bug#37995)
For comparison of
NULLto a subquery result insideIS NULL, the comparison could evaluate toNULLrather than toTRUEorFALSE. This occurred for expressions such as:SELECT ... WHERE NULL IN (SELECT ...) IS NULL
Setting
myisam_repair_threadsgreater than 1 caused a server crash for table repair or alteration operations forMyISAMtables with multipleFULLTEXTindexes. (Bug#37756)When using the MySQL MSI Installer on Windows and selecting after a choosing Repair, you would be returned to the Fresh Install section of the installer. You are now correctly returned to the Install, Repair, Modify screen. (Bug#37294)
The mysql client sometimes improperly interpreted string escape sequences in nonstring contexts. (Bug#36391)
The query cache stored packets containing the server status of the time when the cached statement was run. This might lead to an incorrect transaction status on the client side if a statement was cached during a transaction and later served outside a transaction context (or vice versa). (Bug#36326)
If the system time was adjusted backward during query execution, the apparent execution time could be negative. But in some cases these queries would be written to the slow query log, with the negative execution time written as a large unsigned number. Now statements with apparent negative execution time are not written to the slow query log. (Bug#35396)
libmysqldwas not built with all character sets. (Bug#32831)For mysqld_multi, using the
--mysqld=mysqld_safeoption caused the--defaults-fileand--defaults-extra-fileoptions to behave the same way. (Bug#32136)Attempts to open a valid MERGE table sometimes resulted in a
ER_WRONG_MRG_TABLEerror. This happened after failure to open an invalid MERGE table had also generated anER_WRONG_MRG_TABLEerror. (Bug#32047)For Solaris package installation using pkgadd, the postinstall script failed, causing the system tables in the
mysqldatabase not to be created. (Bug#31164)If the default database was dropped, the value of
character_set_databasewas not reset tocharacter_set_serveras it should have been. (Bug#27208)
This is a Service Pack release of the MySQL Enterprise Server 5.1.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.1.31).
If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise/advisors.html.
Functionality added or changed:
The
libeditlibrary was upgraded to version 2.11. (Bug#42433)
Bugs fixed:
Security Fix: Using an XPath expression employing a scalar expression as a FilterExpr with
ExtractValue()orUpdateXML()caused the server to crash. Such expressions now cause an error instead. (Bug#42495)On the IBM i5 platform, the MySQL configuration process caused the system version of
pthread_setschedprio()to be used. This function returnsSIGILLon i5 because it is not supported, causing the server to crash. Now themy_pthread_setprio()function in themysyslibrary is used instead. (Bug#42524)The SSL certficates included with MySQL distributions were regenerated because the previous ones had expired. (Bug#42366)
User variables within triggers could cause a crash if the
mysql_change_user()C API function was invoked. (Bug#42188)Some queries using
NAME_CONST(.. COLLATE ...)led to a server crash due to a failed type cast. (Bug#42014)
Functionality added or changed:
MySQL-shared-compat-advanced-gpl-5.1.31-0.*.rpmandMySQL-shared-compat-advanced-5.1.31-0.*.rpmpackages are now available. These client library compatibility packages are like theMySQL-shared-compatpackage, but are for the “MySQL Enterprise Server –dash; Advanced Edition” products. Install these packages rather than the normalMySQL-shared-compatpackage if you want to included shared client libraries for older MySQL versions. (Bug#41838)A new status variable,
Queries, indicates the number of statements executed by the server. This includes statements executed within stored programs, unlike theQuestionsvariable which includes only statements sent to the server by clients. (Bug#41131)Performance of
SELECT *retrievals fromINFORMATION_SCHEMA.COLUMNSwas improved slightly. (Bug#38918)Previously, index hints did not work for
FULLTEXTsearches. Now they work as follows:For natural language mode searches, index hints are silently ignored. For example,
IGNORE INDEX(i)is ignored with no warning and the index is still used.For boolean mode searches, index hints with
FOR ORDER BYorFOR GROUP BYare silently ignored. Index hints withFOR JOINor noFORmodifier are honored. In contrast to how hints apply for non-FULLTEXTsearches, the hint is used for all phases of query execution (finding rows and retrieval, grouping, and ordering). This is true even if the hint is given for a non-FULLTEXTindex. (Bug#38842)
Bugs fixed:
Important Change: Replication: If a trigger was defined on an
InnoDBtable and this trigger updated a nontransactional table, changes performed on theInnoDBtable were replicated and were visible on the slave before they were committed on the master, and were not rolled back on the slave after a successful rollback of those changes on the master.As a result of the fix for this issue, the semantics of mixing nontransactional and transactional tables in a transaction in the first statement of a transaction have changed. Previously, if the first statement in a transaction contained nontransactional changes, the statement was written directly to the binary log. Now, any statement appearing after a
BEGIN(or immediately following aCOMMITifAUTOCOMMIT= 0) is always considered part of the transaction and cached. This means that nontransactional changes do not propagate to the slave until the transaction is committed and thus written to the binary log.See Section 16.3.1.26, “Replication and Transactions”, for more information about this change in behavior. (Bug#40116)
Partitioning: Replication: Changing the transaction isolation level while replicating partitioned
InnoDBtables could cause statement-based logging to fail. (Bug#39084)Partitioning: A comparison with an invalid
DATEvalue in a query against a partitioned table could lead to a crash of the MySQL server.Note
Invalid
DATEandDATETIMEvalues referenced in theWHEREclause of a query on a partitioned table are treated asNULL. See Section 17.4, “Partition Pruning”, for more information.Partitioning: This bug was introduced in MySQL 5.1.29. (Bug#40954)
This regression was introduced by Bug#30573, Bug#33257, Bug#33555.
Partitioning: With
READ COMMITTEDtransaction isolation level,InnoDBuses a semi-consistent read that releases nonmatching rows after MySQL has evaluated theWHEREclause. However, this was not happening if the table used partitions. (Bug#40595)Partitioning: A query that timed out when run against a partitioned table failed silently, without providing any warnings or errors, rather than returning Lock wait timeout exceeded. (Bug#40515)
Partitioning:
ALTER TABLE ... REORGANIZE PARTITIONcould crash the server when the number of partitions was not changed. (Bug#40389)See also Bug#41945.
Partitioning: For a partitioned table having an
AUTO_INCREMENTcolumn: If the first statement following a start of the server or aFLUSH TABLESstatement was anUPDATEstatement, theAUTO_INCREMENTcolumn was not incremented correctly. (Bug#40176)Partitioning: The server attempted to execute the statements
ALTER TABLE ... ANALYZE PARTITION,ALTER TABLE ... CHECK PARTITION,ALTER TABLE ... OPTIMIZE PARTITION, andALTER TABLE ... REORGANIZE PARTITIONon tables that were not partitioned. (Bug#39434)See also Bug#20129.
Partitioning: The value of the
CREATE_COLUMNScolumn inINFORMATION_SCHEMA.TABLESwas notpartitionedfor partitioned tables. (Bug#38909)Partitioning: When executing an
ORDER BYquery on a partitionedInnoDBtable using an index that was not in the partition expression, the results were sorted on a per-partition basis rather than for the table as a whole. (Bug#37721)Partitioning: Dropping or creating an index on a partitioned table managed by the
InnoDBPlugin locked the table. (Bug#37453)Partitioning: Partitioned table checking sometimes returned a warning with an error code of 0, making proper response to errors impossible. The fix also renders the error message subject to translation in non-English deployments. (Bug#36768)
Partitioning:
SHOW TABLE STATUScould show a nonzero value for theMean record lengthof a partitionedInnoDBtable, even if the table contained no rows. (Bug#36312)Partitioning: When
SHOW CREATE TABLEwas used on a partitioned table, all of the table'sPARTITIONandSUBPARTITIONclauses were output on a single line, making it difficult to read or parse. (Bug#14326)Replication: Per-table
AUTO_INCREMENToption values were not replicated correctly forInnoDBtables. (Bug#41986)Replication: Some
log_eventtypes did not skip the post-header when reading. (Bug#41961)Replication: Attempting to read a binary log containing an
Incident_log_eventhaving an invalid incident number could cause the debug server to crash. (Bug#40482)Replication: When using row-based replication, an update of a primary key that was rolled back on the master due to a duplicate key error was not rolled back on the slave. (Bug#40221)
Replication: When rotating relay log files, the slave deletes relay log files and then edits the relay log index file. Formerly, if the slave shut down unexpectedly between these two events, the relay log index file could then reference relay logs that no longer existed. Depending on the circumstances, this could when restarting the slave cause either a race condition or the failure of replication. (Bug#38826, Bug#39325)
Replication: With row-based replication,
UPDATEandDELETEstatements usingLIMITand a table's primary key could produce different results on the master and slave. (Bug#38230)resolve_stack_dump was unable to resolve the stack trace format produced by mysqld in MySQL 5.1 and up (see Section 21.5.1.5, “Using a Stack Trace”). (Bug#41612)
In example option files provided in MySQL distributions, the
thread_stackvalue was increased from 64K to 128K. (Bug#41577)The optimizer could ignore an error and rollback request during a filesort, causing an assertion failure. (Bug#41543)
DATE_FORMAT()could cause a server crash for year-zero dates. (Bug#41470)SET PASSWORDcaused a server crash if the account name was given asCURRENT_USER(). (Bug#41456)When a repair operation was carried out on a
CSVtable, the debug server crashed. (Bug#41441)When substituting system constant functions with a constant result, the server was not expecting
NULLfunction return values and could crash. (Bug#41437)Queries such as
SELECT ... CASE AVG(...) WHEN ...that used aggregate functions in aCASEexpression crashed the server. (Bug#41363)INSERT INTO .. SELECT ... FROMandCREATE TABLE ... SELECT ... FROMa TEMPORARY table could inadvertently change the locking type of the temporary table from a write lock to a read lock, causing statement failure. (Bug#41348)The
INFORMATION_SCHEMA.SCHEMA_PRIVILEGEStable was limited to 7680 rows. (Bug#41079)In debug builds, obsolete debug code could be used to crash the server. (Bug#41041)
Some queries that used a “range checked for each record” scan could return incorrect results. (Bug#40974)
See also Bug#44810.
Certain
SELECTqueries could fail with aDuplicate entryerror. (Bug#40953)For debug servers,
OPTIMIZE TABLEon a compressed table caused a server crash. (Bug#40949)Accessing user variables within triggers could cause a server crash. (Bug#40770)
IF(..., CAST(as an argument to an aggregate function could cause an assertion failure. (Bug#40761)longtext_valAS UNSIGNED),signed_val)For single-table
UPDATEstatements, an assertion failure resulted from a runtime error in a stored function (such as a recursive function call or an attempt to update the same table as in theUPDATEstatement). (Bug#40745)TRUNCATE TABLEfor anInnoDBtable did not flush cached queries for the table. (Bug#40386)Prepared statements allowed invalid dates to be inserted when the
ALLOW_INVALID_DATESSQL mode was not enabled. (Bug#40365)mc.exe is no longer needed to compile MySQL on Windows. This makes it possible to build MySQL from source using Visual Studio Express 2008. (Bug#40280)
The
':'character was incorrectly disallowed in table names. (Bug#40104)Support for the
revisionfield in.frmfiles has been removed. This addresses the downgrading problem introduced by the fix for Bug#17823. (Bug#40021)Retrieval speed from the following
INFORMATION_SCHEMAtables was improved by shortening theVARIABLE_VALUEcolumn to 1024 characters:GLOBAL_VARIABLES,SESSION_VARIABLES,GLOBAL_STATUS, andSESSION_STATUS.As a result of this change, any variable value longer than 1024 characters will be truncated with a warning. This affects only the
init_connectsystem variable. (Bug#39955)For an
InnoDBtable,DROP TABLEorALTER TABLE ... DISCARD TABLESPACEcould take a long time or cause a server crash. (Bug#39939)If the operating system is configured to return leap seconds from OS time calls or if the MySQL server uses a time zone definition that has leap seconds, functions such as
NOW()could return a value having a time part that ends with:59:60or:59:61. If such values are inserted into a table, they would be dumped as is by mysqldump but considered invalid when reloaded, leading to backup/restore problems.Now leap second values are returned with a time part that ends with
:59:59. This means that a function such asNOW()can return the same value for two or three consecutive seconds during the leap second. It remains true that literal temporal values having a time part that ends with:59:60or:59:61are considered invalid.For additional details about leap-second handling, see Section 9.7.2, “Time Zone Leap Second Support”. (Bug#39920)
The server could crash during a sort-order optimization of a dependent subquery. (Bug#39844)
For a server started with the
--temp-pooloption on Windows, temporary file creation could fail. This option now is ignored except on Linux systems, which was its original intended scope. (Bug#39750)ALTER TABLEon a table withFULLTEXTindex that used a pluggableFULLTEXTparser could cause debug servers to crash. (Bug#39746)With the
ONLY_FULL_GROUP_BYSQL mode enabled, the check for nonaggregated columns in queries with aggregate functions, but without aGROUP BYclause was treating all the parts of the query as if they were in the select list. This is fixed by ignoring the nonaggregated columns in theWHEREclause. (Bug#39656)The server crashed if an integer field in a CSV file did not have delimiting quotes. (Bug#39616)
Creating a table with a comment of 62 characters or longer caused a server crash. (Bug#39591)
The do_abi_check program run during the build process depends on
mysql_version.hbut that file was not created first, resulting in build failure. (Bug#39571)CHECK TABLEfailed forMyISAMINFORMATION_SCHEMAtables. (Bug#39541)On 64-bit Windows systems, the server accepted
key_buffer_sizevalues larger than 4GB, but allocated less. (For example, specifying a value of 5GB resulted in 1GB being allocated.) (Bug#39494)InnoDBcould hang trying to open an adaptive hash index. (Bug#39483)Following
ALTER TABLE ... DISCARD TABLESPACEfor anInnoDBtable, an attempt to determine the free space for the table before theALTER TABLEoperation had completely finished could cause a server crash. (Bug#39438)Use of the
PACK_KEYSorMAX_ROWStable option inALTER TABLEshould have triggered table reconstruction but did not. (Bug#39372)The server returned a column type of
VARBINARYrather thanDATEas the result from theCOALESCE(),IFNULL(),IF(),GREATEST(), orLEAST()functions orCASEexpression if the result was obtained usingfilesortin an anonymous temporary table during the query execution. (Bug#39283)A server built using yaSSL for SSL support would crash if configured to use an RSA key and a client sent a cipher list containing a non-RSA key as acceptable. (Bug#39178)
When built with Valgrind, the server failed to access tables created with the
DATA DIRECTORYorINDEX DIRECTORYtable option. (Bug#39102)With binary logging enabled
CREATE VIEWwas subject to possible buffer overwrite and a server crash. (Bug#39040)The fast mutex implementation was subject to excessive lock contention. (Bug#38941)
Use of
InnoDBmonitoring (SHOW ENGINE INNODB STATUSor one of theInnoDBMonitor tables) could cause a server crash due to invalid access to a shared variable in a concurrent environment. (Bug#38883)InnoDBcould fail to generateAUTO_INCREMENTvalues after anUPDATEstatement for the table. (Bug#38839)If delayed insert failed to upgrade the lock, it did not free the temporary memory storage used to keep newly constructed
BLOBvalues in memory, resulting in a memory leak. (Bug#38693)On Windows, a five-second delay occurred at shutdown of applications that used the embedded server. (Bug#38522)
On Solaris, a scheduling policy applied to the main server process could be unintentionally overwritten in client-servicing threads. (Bug#38477)
Building MySQL on FreeBSD would result in a failure during the gen_lex_hash phase of the build. (Bug#38364)
On Windows, the embedded server would crash in
mysql_library_init()if the language file was missing. (Bug#38293)A mix of
TRUNCATE TABLEwithLOCK TABLESandUNLOCK TABLESfor anInnoDBcould cause a server crash. (Bug#38231)The
ExtractValue()function did not work correctly with XML documents containing aDOCTYPEdeclaration. (Bug#38227)Queries with a
HAVINGclause could return a spurious row. (Bug#38072)The Event Scheduler no longer logs “started in thread” or “executed” successfully messages to the error log. (Bug#38066)
Use of spatial data types in prepared statements could cause memory leaks or server crashes. (Bug#37956, Bug#37671)
An error in a debugging check caused crashes in debug servers. (Bug#37936)
A
SELECTwith aNULL NOT INcondition containing a complex subquery from the same table as in the outer select caused an assertion failure. (Bug#37894)The presence of a
/* ... */comment preceding a query could causeInnoDBto use unnecessary gap locks. (Bug#37885)Use of an uninitialized constant in
EXPLAINevaluation caused an assertion failure. (Bug#37870)When using
ALTER TABLEon anInnoDBtable, theAUTO_INCREMENTvalue could be changed to an incorrect value. (Bug#37788)Primary keys were treated as part of a covering index even if only a prefix of a key column was used. (Bug#37742)
Renaming an
ARCHIVEtable to the same name with different lettercase and then selecting from it could cause a server crash. (Bug#37719)The
MONTHNAME()andDAYNAME()functions returned a binary string, so that usingLOWER()orUPPER()had no effect. NowMONTHNAME()andDAYNAME()return a value incharacter_set_connectioncharacter set. (Bug#37575)TIMEDIFF()was erroneously treated as always returning a positive result. Also,CAST()ofTIMEvalues toDECIMALdropped the sign of negative values. (Bug#37553)See also Bug#42525.
SHOW PROCESSLISTdisplayed “copy to tmp table” when no such copy was occurring. (Bug#37550)mysqlcheck used
SHOW FULL TABLESto get the list of tables in a database. For some problems, such as an empty.frmfile for a table, this would fail and mysqlcheck then would neglect to check other tables in the database. (Bug#37527)Updating a view with a subquery in the
CHECKoption could cause an assertion failure. (Bug#37460)Statements that displayed the value of system variables (for example,
SHOW VARIABLES) expect variable values to be encoded incharacter_set_system. However, variables set from the command line such asbasedirordatadirwere encoded usingcharacter_set_filesystemand not converted correctly. (Bug#37339)CREATE INDEXcould crash withInnoDBplugin 1.0.1. (Bug#37284)Certain boolean-mode
FULLTEXTsearches that used the truncation operator did not return matching records and calculated relevance incorrectly. (Bug#37245)On a 32-bit server built without big tables support, the offset argument in a
LIMITclause might be truncated due to a 64-bit to 32-bit cast. (Bug#37075)For an
InnoDBtable with aFOREIGN KEYconstraint,TRUNCATE TABLEmay be performed using row by row deletion. If an error occurred during this deletion, the table would be only partially emptied. Now if an error occurs, the truncation operation is rolled back and the table is left unchanged. (Bug#37016)The code for the
ut_usectime()function inInnoDBdid not handle errors from thegettimeofday()system call. Now it retriesgettimeofday()several times and updates the value of theInnodb_row_lock_time_maxstatus variable only ifut_usectime()was successful. (Bug#36819)Use of
CONVERT()withGROUP BYto convert numeric values toCHARcould return truncated results. (Bug#36772)The mysql client, when built with Visual Studio 2005, did not display Japanese characters. (Bug#36279)
CREATE INDEXforInnoDBtables could under very rare circumstances cause the server to crash.. (Bug#36169)A read past the end of the string could occur while parsing the value of the
--innodb-data-file-pathoption. (Bug#36149)Setting the
slave_compressed_protocolsystem variable toDEFAULTfailed in the embedded server. (Bug#35999)For upgrades to MySQL 5.1 or higher, mysql_upgrade did not re-encode database or table names that contained nonalphanumeric characters. (They would still appear after the upgrade with the
#mysql50#prefix described in Section 8.2.3, “Mapping of Identifiers to File Names”.) To correct this problem, it was necessary to run mysqlcheck --all-databases --check-upgrade --fix-db-names --fix-table-names manually. mysql_upgrade now runs that command automatically after performing the initial upgrade. (Bug#35934)SHOW CREATE TABLEdid not display a printable value for the default value ofBITcolumns. (Bug#35796)The columns that store character set and collation names in several
INFORMATION_SCHEMAtables were lengthened because they were not long enough to store some possible values:SCHEMATA,TABLES,COLUMNS,CHARACTER_SETS,COLLATIONS, andCOLLATION_CHARACTER_SET_APPLICABILITY. (Bug#35789)The
max_lengthmetadata value was calculated incorrectly for theFORMAT()function, which could cause incorrect result set metadata to be sent to clients. (Bug#35558)InnoDBwas not updating theHandler_deleteorHandler_updatestatus variables. (Bug#35537)InnoDBcould fail to generateAUTO_INCREMENTvalues if rows previously had been inserted containing literal values for theAUTO_INCREMENTcolumn. (Bug#35498, Bug#36411, Bug#39830)The
CREATE_OPTIONScolumn forINFORMATION_SCHEMA.TABLESdid not display theKEY_BLOCK_SIZEoption. (Bug#35275)Selecting from an
INFORMATION_SCHEMAtable into an incorrectly definedMERGEtable caused an assertion failure. (Bug#35068)perror on Windows did not know about Win32 system error codes. (Bug#34825)
EXPLAIN EXTENDEDevaluation of aggregate functions that required a temporary table caused a server crash. (Bug#34773)SHOW GLOBAL STATUSshows values that aggregate the session status values for all threads. This did not work correctly for the embedded server. (Bug#34517)mysqldumpslow did not aggregate times. (Bug#34129)
mysql_config did not output
-ldl(or equivalent) when needed for--libmysqld-libs, so its output could be insufficient to build applications that use the embedded server. (Bug#34025)The mysql client incorrectly parsed statements containing the word “delimiter” in mid-statement.
This fix is different from the one applied for this bug in MySQL 5.1.26. (Bug#33812)
See also Bug#38158.
For a stored procedure containing a
SELECT * ... RIGHT JOINquery, execution failed for the second call. (Bug#33811)Previously, use of index hints with views (which do not have indexes) produced the error ERROR 1221 (HY000): Incorrect usage of USE/IGNORE INDEX and VIEW. Now this produces ERROR 1176 (HY000): Key '...' doesn't exist in table '...', the same error as for base tables without an appropriate index. (Bug#33461)
Three conditions were discovered that could cause an upgrade from MySQL 5.0 to 5.1 to fail: 1) Triggers associated with a table that had a
#mysql50#prefix in the name could cause assertion failure. 2)ALTER DATABASE ... UPGRADE DATA DIRECTORY NAMEfailed for databases that had a#mysql50#prefix if there were triggers in the database. 3) mysqlcheck --fix-table-name didn't use UTF8 as the default character set, resulting in parsing errors for tables with nonlatin symbols in their names and trigger definitions. (Bug#33094, Bug#41385)Execution of a prepared statement that referred to a system variable caused a server crash. (Bug#32124)
Some division operations produced a result with incorrect precision. (Bug#31616)
Queries executed using join buffering of
BITcolumns could produce incorrect results. (Bug#31399)ALTER TABLE CONVERT TO CHARACTER SETdid not convertTINYTEXTorMEDIUMTEXTcolumns to a longer text type if necessary when converting the column to a different character set. (Bug#31291)Server variables could not be set to their current values on Linux platforms. (Bug#31177)
See also Bug#6958.
For installation on Solaris using pkgadd packages, the mysql_install_db script was generated in the
scriptsdirectory, but the temporary files used during the process were left there and not deleted. (Bug#31052)Static storage engines and plugins that were disabled and dynamic plugins that were installed but disabled were not listed in the
INFORMATION_SCHEMAappropriatePLUGINSorENGINEStable. (Bug#29263)Some
SHOWstatements and retrievals from theINFORMATION_SCHEMATRIGGERSandEVENTStables used a temporary table and incremented theCreated_tmp_disk_tablesstatus variable, due to the way thatTEXTcolumns are handled. TheTRIGGERS.SQL_MODE,TRIGGERS.DEFINER, andEVENTS.SQL_MODEcolumns now areVARCHARto avoid this problem. (Bug#29153)For several read only system variables that were viewable with
SHOW VARIABLES, attempting to view them withSELECT @@or set their values withvar_nameSETresulted in anunknown system variableerror. Now they can be viewed withSELECT @@and attempting to set their values results in a message indicating that they are read only. (Bug#28234)var_nameOn Windows, Visual Studio does not take into account some x86 hardware limitations, which led to incorrect results converting large
DOUBLEvalues to unsignedBIGINTvalues. (Bug#27483)SSL support was not included in some “generic” RPM packages. (Bug#26760)
The
Questionsstatus variable is intended as a count of statements sent by clients to the server, but was also counting statements executed within stored routines. (Bug#24289)Setting the session value of the
max_allowed_packetornet_buffer_lengthsystem variable was allowed but had no effect. The session value of these variables is now read only. (Bug#22891)See also Bug#32223.
A race condition between the mysqld.exe server and the Windows service manager could lead to inability to stop the server from the service manager. (Bug#20430)
On Windows, moving an
InnoDB.ibdfile and then symlinking to it in the database directory using a.symfile caused a server crash. (Bug#11894)
Bugs fixed:
Partitioning: A
SELECTusing a rangeWHEREcondition with anORDER BYon a partitioned table caused a server crash. (Bug#40494)Replication: Row-based replication failed with nonpartitioned
MyISAMtables having no indexes. (Bug#40004)With statement-based binary logging format and a transaction isolation level of
READ COMMITTEDor stricter,InnoDBprinted an error because statement-based logging might lead to inconsistency between master and slave databases. However, this error was printed even when binary logging was not enabled (in which case, no such inconsistency can occur). (Bug#40360)The
CHECK TABLE ... FOR UPGRADEstatement did not check for incompatible collation changes made in MySQL 5.1.24 (Bug#27877). This also affects mysqlcheck and mysql_upgrade, which cause that statement to be executed. See Section 2.12.3, “Checking Whether Table Indexes Must Be Rebuilt”.Prior to this fix, a binary upgrade (performed without dumping tables with mysqldump before the upgrade and reloading the dump file after the upgrade) would corrupt tables that have indexes that use the
utf8_general_ciorucs2_general_cicollation for columns that contain'ß'LATIN SMALL LETTER SHARP S (German). After the fix,CHECK TABLE ... FOR UPGRADEproperly detects the problem and warns about tables that need repair.However, the fix is not backward compatible and can result in a downgrading problem under these circumstances:
Perform a binary upgrade to a version of MySQL that includes the fix.
Run
CHECK TABLE ... FOR UPGRADE(or mysqlcheck or mysql_upgrade) to upgrade tables.Perform a binary downgrade to a version of MySQL that does not include the fix.
The solution is to dump tables with mysqldump before the downgrade and reload the dump file after the downgrade. Alternatively, drop and recreate affected indexes. (Bug#40053)
Some recent releases for Solaris 10 were built on Solaris 10 U5, which included a new version of
libnsl.sothat does not work on U4 or earlier. To correct this, Solaris 10 builds now are created on machines that do not have that upgradedlibnsl.so, so that they will work on Solaris 10 installations both with and without the upgradedlibnsl.so. (Bug#39074)With binary logging enabled,
CREATE TABLE ... SELECTandINSERT INTO ... SELECTfailed if the source table was a log table. (Bug#34306)XA transaction rollbacks could result in corrupted transaction states and a server crash. (Bug#28323)
ALTER TABLEfor anENUMcolumn could change column values. (Bug#23113)
Functionality added or changed:
Important Change: The
--skip-thread-priorityoption is now deprecated such that the server won't change the thread priorities by default. Giving threads different priorities might yield marginal improvements in some platforms (where it actually works), but it might instead cause significant degradation depending on the thread count and number of processors. Meddling with the thread priorities is a not a safe bet as it is very dependent on the behavior of the CPU scheduler and system where MySQL is being run. (Bug#35164, Bug#37536)Important Change: The
--logoption now is deprecated and will be removed (along with thelogsystem variable) in the future. Instead, use the--general_logoption to enable the general query log and the--general_log_file=option to set the general query log file name. The values of these options are available in thefile_namegeneral_logandgeneral_log_filesystem variables, which can be changed at runtime.Similar changes were made for the
--log-slow-queriesoption andlog_slow_queriessystem variable. You should use the--slow_query_logand--slow_query_log_file=options instead (and thefile_nameslow_query_logandslow_query_log_filesystem variables).The
BUILD/compile-solaris-*scripts now compile MySQL with themtmalloclibrary rather thanmalloc. (Bug#38727)
Bugs fixed:
Incompatible Change: Replication: The default binary logging mode has been changed from
MIXEDtoSTATEMENTfor compatibility with MySQL 5.0. (Bug#39812)Incompatible Change:
CHECK TABLE ... FOR UPGRADEdid not check for incompatible collation changes made in MySQL 5.1.21 (Bug#29499) and 5.1.23 (Bug#27562, Bug#29461). This also affects mysqlcheck and mysql_upgrade, which cause that statement to be executed. See Section 2.12.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#39585)See also Bug#40984.
Incompatible Change: In connection with view creation, the server created
arcdirectories inside database directories and maintained useless copies of.frmfiles there. Creation and renaming procedures of those copies as well as creation ofarcdirectories has been discontinued.This change does cause a problem when downgrading to older server versions which manifests itself under these circumstances:
Create a view
v_origin MySQL 5.1.29 or higher.Rename the view to
v_newand then back tov_orig.Downgrade to an older 5.1.x server and run mysql_upgrade.
Try to rename
v_origtov_newagain. This operation fails.
As a workaround to avoid this problem, use either of these approaches:
Dump your data using mysqldump before downgrading and reload the dump file after downgrading.
Instead of renaming a view after the downgrade, drop it and recreate it.
The downgrade problem introduced by the fix for this bug has been addressed as Bug#40021. (Bug#17823)
Important Change: Replication: The
SUPERprivilege is now required to change the session value ofbinlog_formatas well as its global value. For more information aboutbinlog_format, see Section 16.1.2, “Replication Formats”. (Bug#39106)Partitioning: Replication: Replication to partitioned
MyISAMtables could be slow with row-based binary logging. (Bug#35843)Partitioning: If an error occurred when evaluating a column of a partitioned table for the partitioning function, the row could be inserted anyway. (Bug#38083)
Partitioning: Using
INSERT ... SELECTto insert records into a partitionedMyISAMtable could fail if some partitions were empty and others are not. (Bug#38005)Partitioning: Ordered range scans on partitioned tables were not always handled correctly. In some cases this caused some rows to be returned twice. The same issue also caused
GROUP BYquery results to be aggregated incorrectly. (Bug#30573, Bug#33257, Bug#33555)Replication: Server code used in binary logging could in some cases be invoked even though binary logging was not actually enabled, leading to asserts and other server errors. (Bug#38798)
Replication: Replication of
BLACKHOLEtables did not work with row-based binary logging. (Bug#38360)Replication: In some cases, a replication master sent a special event to a reconnecting slave to keep the slave's temporary tables, but they still had references to the “old” slave SQL thread and used them to access that thread's data. (Bug#38269)
Replication: Replication filtering rules were inappropiately applied when executing
BINLOGpseudo-queries. One way in which this problem showed itself was that, when replaying a binary log with mysqlbinlog, RBR events were sometimes not executed if the--replicate-do-dboption was specified. Now replication rules are applied only to those events executed by the slave SQL thread. (Bug#36099)Replication: For a
CREATE TABLE ... SELECTstatement that creates a table in a database other than the current one, the table could be created in the wrong database on replication slaves if row-based binary logging is used. (Bug#34707)Replication: A statement did not always commit or roll back correctly when the server was shut down; the error could be triggered by having a failing
UPDATEorINSERTstatement on a transactional table, causing an implicit rollback. (Bug#32709)See also Bug#38262.
The Sun Studio compiler failed to build debug versions of the server due to use of features specific to gcc. (Bug#39451)
For a
TIMESTAMPcolumn in anInnoDBtable, testing the column with multiple conditions in theWHEREclause caused a server crash. (Bug#39353)References to local variables in stored procedures are replaced with
NAME_CONST(when written to the binary log. However, an “illegal mix of collation” error might occur when executing the log contents if the value's collation differed from that of the variable. Now information about the variable collation is written as well. (Bug#39182)name,value)Queries of the form
SELECT ... REGEXP BINARY NULLcould lead to a hung or crashed server. (Bug#39021)Statements of the form
INSERT ... SELECT .. ON DUPLICATE KEY UPDATEcould result in a server crash. (Bug#39002)col_name= DEFAULTColumn names constructed due to wild-card expansion done inside a stored procedure could point to freed memory if the expansion was performed after the first call to the stored procedure. (Bug#38823)
Repeated
CREATE TABLE ... SELECTstatements, where the created table contained anAUTO_INCREMENTcolumn, could lead to an assertion failure. (Bug#38821)For deadlock between two transactions that required a timeout to resolve, all server tables became inaccessible for the duration of the deadlock. (Bug#38804)
When inserting a string into a duplicate-key error message, the server could improperly interpret the string, resulting in a crash. (Bug#38701)
A race condition between threads sometimes caused unallocated memory to be addressed. (Bug#38692)
A server crash resulted from concurrent execution of a multiple-table
UPDATEthat used aNATURALorUSINGjoin together withFLUSH TABLES WITH READ LOCKorALTER TABLEfor the table being updated. (Bug#38691)On ActiveState Perl, mysql-test-run.pl --start-and-exit started but did not exit. (Bug#38629)
An uninitialized variable in the query profiling code was corrected (detected by Valgrind). (Bug#38560)
A server crash resulted from execution of an
UPDATEthat used a derived table together withFLUSH TABLES. (Bug#38499)Stored procedures involving substrings could crash the server on certain platforms due to invalid memory reads. (Bug#38469)
The handlerton-to-plugin mapping implementation did not free handler plugin references when the plugin was uninstalled, resulting in a server crash after several install/uninstall cycles. Also, on Mac OS X, the server crashed when trying to access an
EXAMPLEtable after theEXAMPLEplugin was installed. (Bug#37958)The server crashed if an argument to a stored procedure was a subquery that returned more than one row. (Bug#37949)
When analyzing the possible index use cases, the server was incorrectly reusing an internal structure, leading to a server crash. (Bug#37943)
Access checks were skipped for
SHOW PROCEDURE STATUSandSHOW FUNCTION STATUS, which could lead to a server crash or insufficient access checks in subsequent statements. (Bug#37908)The
<=>operator could return incorrect results when comparingNULLtoDATE,TIME, orDATETIMEvalues. (Bug#37526)The combination of a subquery with a
GROUP BY, an aggregate function calculated outside the subquery, and aGROUP BYon the outerSELECTcould cause the server to crash. (Bug#37348)The
NO_BACKSLASH_ESCAPESSQL mode was ignored forLOAD DATA INFILEandSELECT INTO ... OUTFILE. The setting is taken into account now. (Bug#37114)In some cases, references to views were confused with references to anonymous tables and privilege checking was not performed. (Bug#36086)
For crash reports on Windows, symbol names in stack traces were not correctly resolved. (Bug#35987)
ALTER EVENTchanged thePRESERVEattribute of an event even whenPRESERVEwas not specified in the statement. (Bug#35981)Host name values in SQL statements were not being checked for
'@', which is illegal according to RFC952. (Bug#35924)mysql_install_db failed on machines that had the host name set to
localhost. (Bug#35754)Dynamic plugins failed to load on i5/OS. (Bug#35743)
With the
PAD_CHAR_TO_FULL_LENGTHSQL mode enabled, aucs2CHARcolumn returned additional garbage after trailing space characters. (Bug#35720)A trigger for an
InnoDBtable activating multiple times could lead toAUTO_INCREMENTgaps. (Bug#31612)mysqldump could fail to dump views containing a large number of columns. (Bug#31434)
The server could improperly type user-defined variables used in the select list of a query. (Bug#26020)
For access to the
INFORMATION_SCHEMA.VIEWStable, the server did not check theSHOW VIEWandSELECTprivileges, leading to inconsistency between output from that table and theSHOW CREATE VIEWstatement. (Bug#22763)mysqld_safewould sometimes fail to remove the pid file for the oldmysqlprocess after a crash. As a result, the server would fail to start due to a falseA mysqld process already exists...error. (Bug#11122)
Functionality added or changed:
Important Change: mysqlbinlog now supports
--verboseand--base64-output=DECODE-ROWSoptions to display row events as commented SQL statements. (The default otherwise is to display row events encoded as base-64 strings usingBINLOGstatements.) See Section 4.6.7.2, “mysqlbinlog Row Event Display”. (Bug#31455)MySQL source distributions are now available in Zip format. (Bug#27742)
Added the
SHOW PROFILESandSHOW PROFILEstatements to display statement profile data, and the accompanyingINFORMATION_SCHEMA.PROFILINGtable. Profiling is controlled via theprofilingandprofiling_history_sizesession variables. see Section 12.5.5.33, “SHOW PROFILESSyntax”, and Section 19.26, “TheINFORMATION_SCHEMA PROFILINGTable”. (Community contribution by Jeremy Cole)The profiling feature is enabled via the
--enable-community-featuresand--enable-profilingoptions to configure. These options are enabled by default; to disable them, use--disable-community-featuresand--disable-profiling. (Bug#24795)
Bugs fixed:
Performance: Incompatible Change: Some performance problems of
SHOW ENGINE INNODB STATUSwere reduced by removingused cellsandTotal number of lock structs in row lock hash tablefrom the output. Now these values are present only if theUNIV_DEBUGsymbol is defined at MySQL build time. (Bug#36941, Bug#36942)Performance: Over-aggressive lock acquisition by
InnoDBwhen calculating free space for tablespaces could result in performance degradation when multiple threads were executing statements on multi-core machines. (Bug#38185)Important Change: Security Fix: Additional corrections were made for the symlink-related privilege problem originally addressed in MySQL 5.1.24. The original fix did not correctly handle the data directory path name if it contained symlinked directories in its path, and the check was made only at table-creation time, not at table-opening time later. (Bug#32167, CVE-2008-2079)
See also Bug#39277.
Security Enhancement: The server consumed excess memory while parsing statements with hundreds or thousands of nested boolean conditions (such as
OR (OR ... (OR ... ))). This could lead to a server crash or incorrect statement execution, or cause other client statements to fail due to lack of memory. The latter result constitutes a denial of service. (Bug#38296)Incompatible Change: There were some problems using
DllMain()hook functions on Windows that automatically do global and per-thread initialization forlibmysqld.dll:Per-thread initialization: MySQL internally counts the number of active threads, which causes a delay in
my_end()if not all threads have exited. But there are threads that can be started either by Windows internally (often in TCP/IP scenarios) or by users. Those threads do not necessarily uselibmysql.dllfunctionality but still contribute to the open-thread count. (One symptom is a five-second delay in times for PHP scripts to finish.)Process-initialization:
my_init()callsWSAStartupthat itself loads DLLs and can lead to a deadlock in the Windows loader.
To correct these problems, DLL initialization code now is not invoked from
libmysql.dllby default. To obtain the previous behavior (DLL initialization code will be called), set theLIBMYSQL_DLLINITenvironment variable to any value. This variable exists only to prevent breakage of existing Windows-only applications that do not callmysql_thread_init()and work okay today. Use ofLIBMYSQL_DLLINITis discouraged and is removed in MySQL 6.0. (Bug#37226, Bug#33031)Incompatible Change:
SHOW STATUStook a lot of CPU time for calculating the value of theInnodb_buffer_pool_pages_latchedstatus variable. Now this variable is calculated and included in the output ofSHOW STATUSonly if theUNIV_DEBUGsymbol is defined at MySQL build time. (Bug#36600)Incompatible Change: An additional correction to the original MySQL 5.1.23 fix was made to normalize directory names before adding them to the list of directories. This prevents
/etc/and/etcfrom being considered different, for example. (Bug#20748)See also Bug#38180.
Partitioning: When a partitioned table had a
TIMESTAMPcolumn defined withCURRENT_TIMESTAMPas the default but with noON UPDATEclause, the column's value was incorrectly set toCURRENT_TIMESTAMPwhen updating across partitions. (Bug#38272)Partitioning: myisamchk failed with an assertion error when analyzing a partitioned
MyISAMtable. (Bug#37537)Partitioning: A
LISTpartitionedMyISAMtable returned erroneous results when an index was present on a column in theWHEREclause andNOT INwas used on that column.Searches using the index were also much slower then if the index were not present. (Bug#35931)
Partitioning:
SELECT COUNT(*)was not correct for some partitioned tables using a storage engine that did not supportHA_STATS_RECORDS_IS_EXACT. Tables using theARCHIVEstorage engine were known to be affected.This was because
ha_partition::records()was not implemented, and so the defaulthandler::records()was used in its place. However, this is not correct behavior if the storage engine does not supportHA_STATS_RECORDS_IS_EXACT.The solution was to implement
ha_partition::records()as a wrapper around the underlying partition records.As a result of this fix, the rows column in the output of
EXPLAIN PARTITIONSnow includes the total number of records in the partitioned table. (Bug#35745)Partitioning:
MyISAMrecovery enabled with the--myisam-recoveroption did not work for partitionedMyISAMtables. (Bug#35161)Partitioning: When one user was in the midst of a transaction on a partitioned table, a second user performing an
ALTER TABLEon this table caused the server to hang. (Bug#34604)Partitioning: Attempting to execute an
INSERT DELAYEDstatement on a partitioned table produced the error Table storage engine for 'table' doesn't have this option, which did not reflect the source of the error accurately. The error message returned in such cases has been changed to DELAYED option not supported for table 'table'. (Bug#31210)Replication: Some kinds of internal errors, such as Out of memory errors, could cause the server to crash when replicating statements with user variables.
certain internal errors. (Bug#37150)
Replication: Row-based replication did not correctly copy
TIMESTAMPvalues from a big-endian storage engine to a little-endian storage engine. (Bug#37076)Replication:
INSTALL PLUGINandUNINSTALL PLUGINcaused row-based replication to fail.Note
These statements are not replicated; however, when using row-based logging, the changes they introduce in the
mysqlsystem tables are written to the binary log.Server-side cursors were not initialized properly, which could cause a server crash. (Bug#38486)
A server crash or Valgrind warnings could result when a stored procedure selected from a view that referenced a function. (Bug#38291)
A failure to clean up binary log events was corrected (detected by Valgrind). (Bug#38290)
Incorrect handling of aggregate functions when loose index scan was used caused a server crash. (Bug#38195)
Queries containing a subquery with
DISTINCTandORDER BYcould cause a server crash. (Bug#38191)The fix for Bug#20748 caused a problem such that on Unix, MySQL programs looked for options in
~/my.cnfrather than the standard location of~/.my.cnf. (Bug#38180)If the table definition cache contained tables with many
BLOBcolumns, much memory could be allocated to cachingBLOBvalues. Now a size limit on the cachedBLOBvalues is enforced. (Bug#38002)For
InnoDBtables,ORDER BY ... DESCsometimes returned results in ascending order. (Bug#37830)If a table has a
BIT NOT NULLcolumnc1with a length shorter than 8 bits and some additionalNOT NULLcolumnsc2, ..., and aSELECTquery has aWHEREclause of the form(c1 =, the query could return an unexpected result set. (Bug#37799)constant) AND c2 ...The server returned unexpected results if a right side of the
NOT INclause consisted of theNULLvalue and some constants of the same type. For example, this query might return 3, 4, 5, and so forth if a table contained those values:SELECT * FROM t WHERE NOT t.id IN (NULL, 1, 2);
Setting the session value of the
innodb_table_lockssystem variable caused a server crash. (Bug#37669)Nesting of
IF()inside ofSUM()could cause an extreme server slowdown. (Bug#37662)Killing a query that used an
EXISTSsubquery as the argument toSUM()orAVG()caused a server crash. (Bug#37627)When using indexed
ORDER BYsorting, incorrect query results could be produced if the optimizer switched from a covering index to a noncovering index. (Bug#37548)After
TRUNCATE TABLEfor anInnoDBtable, inserting explicit values into anAUTO_INCREMENTcolumn could fail to increment the counter and result in a duplicate-key error for subsequent insertion ofNULL. (Bug#37531)Within stored programs or prepared statements,
REGEXPcould return incorrect results due to improper initialization. (Bug#37337)For a
MyISAMtable withCHECKSUM = 1andROW_FORMAT = DYNAMICtable options, a data consistency check (maximum record length) could fail and cause the table to be marked as corrupted. (Bug#37310)The
max_lengthresult set metadata value was calculated incorrectly under some circumstances. (Bug#37301)If the length of a field was 3, internal
InnoDBto integer type conversion didn't work on big-endian machines in therow_search_autoinc_column()function. (Bug#36793)A query which had an
ORDER BY DESCclause that is satisfied with a reverse range scan could cause a server crash for some specific CPU/compiler combinations. (Bug#36639)The
CSVstorage engine returned success even when it failed to open a table's data file. (Bug#36638)SELECT DISTINCTfrom a simple view on anInnoDBtable, where all selected columns belong to the same unique index key, returned incorrect results. (Bug#36632)Dumping information about locks in use by sending a
SIGHUPsignal to the server or by invoking the mysqladmin debug command could lead to a server crash in debug builds or to undefined behavior in production builds. (Bug#36579)If initialization of an
INFORMATION_SCHEMAplugin failed,INSTALL PLUGINfreed some internal plugin data twice. (Bug#36399)For
InnoDBtables, theDATA_FREEcolumn of theINFORMATION_SCHEMA.TABLESdisplayed free space in kilobytes rather than bytes. Now it displays bytes. (Bug#36278)When the fractional part in a multiplication of
DECIMALvalues overflowed, the server truncated the first operand rather than the longest. Now the server truncates so as to produce more precise multiplications. (Bug#36270)The mysql client failed to recognize comment lines consisting of
--followed by a newline. (Bug#36244)The server could crash with an assertion failure (or cause the client to get a “Packets out of order” error) when the expected query result was that it should terminate with a “Subquery returns more than 1 row” error. (Bug#36135)
The
UUID()function returned UUIDs with the wrong time; this was because the offset for the time part in UUIDs was miscalculated. (Bug#35848)The configure script did not allow
utf8_hungarian_cito be specified as the default collation. (Bug#35808)On 64-bit systems, assigning values of 2 63 – 1 or larger to
key_buffer_sizecaused memory overruns. (Bug#35616)For
InnoDBtables,REPLACEstatements used “traditional” style locking, regardless of the setting ofinnodb_autoinc_lock_mode. NowREPLACEworks the same way as “simple inserts” instead of using the old locking algorithm. (REPLACEstatements are treated in the same way as asINSERTstatements.) (Bug#35602)Freeing of an internal parser stack during parsing of complex stored programs caused a server crash. (Bug#35577, Bug#37269, Bug#37228)
mysqlbinlog left temporary files on the disk after shutdown, leading to the pollution of the temporary directory, which eventually caused mysqlbinlog to fail. This caused problems in testing and other situations where mysqlbinlog might be invoked many times in a relatively short period of time. (Bug#35543)
Index scans performed with the
sort_union()access method returned wrong results, caused memory to be leaked, and caused temporary files to be deleted when the limit set bysort_buffer_sizewas reached. (Bug#35477, Bug#35478)Table checksum calculation could cause a server crash for
FEDERATEDtables withBLOBcolumns containingNULLvalues. (Bug#34779)A significant slowdown occurred when many
SELECTstatements that return many rows fromInnoDBtables were running concurrently. (Bug#34409)mysql_install_db failed if the server was running with an SQL mode of
TRADITIONAL. This program now resets the SQL mode internally to avoid this problem. (Bug#34159)Changes to build files were made to enable the MySQL distribution to compile on Microsoft Visual C++ Express 2008. (Bug#33907)
Fast
ALTER TABLEoperations were not fast for columns that used multibyte character sets. (Bug#33873)The internal functions
my_getsystime(),my_micro_time(), andmy_micro_time_and_time()did not work correctly on Windows. One symptom was that uniqueness ofUUID()values could be compromised. (Bug#33748)Cached queries that used 256 or more tables were not properly cached, so that later query invalidation due to a
TRUNCATE TABLEfor one of the tables caused the server to hang. (Bug#33362)mysql_upgrade attempted to use the
/procfile system even on systems that do not have it. (Bug#31605)mysql_install_db failed if the default storage engine was
NDB. Now it explicitly usesMyISAMas the storage engine when running mysqld --bootstrap. (Bug#31315)Several MySQL programs could fail if the
HOMEenvironment variable had an empty value. (Bug#30394)On NetWare, mysql_install_db could appear to execute normally even if it failed to create the initial databases. (Bug#30129)
The Serbian translation for the
ER_INCORRECT_GLOBAL_LOCAL_VARerror was corrected. (Bug#29738)TRUNCATE TABLEforInnoDBtables returned a count showing too many rows affected. Now the statement returns 0 forInnoDBtables. (Bug#29507)The BUILD/check-cpu build script failed if gcc had a different name (such as gcc.real on Debian). (Bug#27526)
In some cases, the parser interpreted the
;character as the end of input and misinterpreted stored program definitions. (Bug#26030)The
FLUSH PRIVILEGESstatement did not produce an error when it failed. (Bug#21226)After executing a prepared statement that accesses a stored function, the next execution would fail to find the function if the stored function cache was flushed in the meantime. (Bug#12093, Bug#21294)
Functionality added or changed:
Bugs fixed:
Partitioning: Incompatible Change: On Mac OS X with
lower_case_table_names = 2, the server could not read partitioned tables whose names contained uppercase letters.Partitioned tables using mixed case names should be renamed or dropped before upgrading to this version of the server on Mac OS X. (Bug#37402)
Important Change: Partitioning: The statements
ANALYZE TABLE,CHECK TABLE,OPTIMIZE TABLE, andREPAIR TABLEare now supported for partitioned tables.Also as a result of this fix, the following statements which were disabled in MySQL 5.1.24 have been re-enabled:
ALTER TABLE ... ANALYZE PARTITIONALTER TABLE ... CHECK PARTITIONALTER TABLE ... OPTIMIZE PARTITIONALTER TABLE ... REPAIR PARTITION
See also Bug#39434.
Replication: Issuing a
DROP DATABASEwhile any temporary tables were open caused the server to switch to statement-based mode. (Bug#38773)Replication: The
--replicate-options were not evaluated correctly when replicating multi-table updates.*-tableAs a result of this fix, replication of multi-table updates no longer fails when an update references a missing table but does not update any of its columns. (Bug#37051)
The fix for Bug#33812 had the side effect of causing the mysql client not to be able to read some dump files produced with mysqldump. To address this, that fix was reverted. (Bug#38158)
Functionality added or changed:
Important Change: Incompatible Change: The
FEDERATEDstorage engine is now disabled by default in binary distributions. The engine is still available and can be enabled by starting the server with the--federatedoption. (Bug#37069)mysqltest was changed to be more robust in the case of a race condition that can occur for rapid disconnect/connect sequences with the server. The account used by mysqltest could reach its allowed simultaneous-sessions user limit if the connect attempt occurred before the server had fully processed the preceding disconnect. mysqltest now checks specificaly for a user-limits error when it connects; if that error occurs, it delays briefly before retrying. (Bug#23921)
Bugs fixed:
Replication: Row-based replication broke for
utf8CHARcolumns longer than 85 characters. (Bug#37426)Replication: Performing an insert on a table having an
AUTO_INCREMENTcolumn and anINSERTtrigger that was being replicated from a master running MySQL 5.0 or any version of MySQL 5.1 up to and including MySQL 5.1.11 to a slave running MySQL 5.1.12 or later caused the replication slave to crash. (Bug#36443)See also Bug#33029.
Some binary distributions had a duplicate “-64bit” suffix in the file name. (Bug#37623)
NOT INsubqueries that selectedMIN()orMAX()values but produced an empty result could cause a server crash. (Bug#37004)ha_innodb.sowas incorrectly installed in thelib/mysqldirectory rather than inlib/mysql/plugin. (Bug#36434)An empty bit-string literal (
b'') caused a server crash. Now the value is parsed as an empty bit value (which is treated as an empty string in string context or 0 in numeric context). (Bug#35658)The code for detecting a byte order mark (BOM) caused mysql to crash for empty input. (Bug#35480)
The mysql client incorrectly parsed statements containing the word “delimiter” in mid-statement.
The fix for this bug had the side effect of causing the problem reported in Bug#38158, so it was reverted in MySQL 5.1.27. (Bug#33812)
Functionality added or changed:
Incompatible Change: A change has been made to the way that the server handles prepared statements. This affects prepared statements processed at the SQL level (using the
PREPAREstatement) and those processed using the binary client-server protocol (using themysql_stmt_prepare()C API function).Previously, changes to metadata of tables or views referred to in a prepared statement could cause a server crash when the statement was next executed, or perhaps an error at execute time with a crash occurring later. For example, this could happen after dropping a table and recreating it with a different definition.
Now metadata changes to tables or views referred to by prepared statements are detected and cause automatic repreparation of the statement when it is next executed. Metadata changes occur for DDL statements such as those that create, drop, alter, rename, or truncate tables, or that analyze, optimize, or repair tables. Repreparation also occurs after referenced tables or views are flushed from the table definition cache, either implicitly to make room for new entries in the cache, or explicitly due to
FLUSH TABLES.Repreparation is automatic, but to the extent that it occurs, performance of prepared statements is diminished.
Table content changes (for example, with
INSERTorUPDATE) do not cause repreparation, nor doSELECTstatements.An incompatibility with previous versions of MySQL is that a prepared statement may now return a different set of columns or different column types from one execution to the next. For example, if the prepared statement is
SELECT * FROM t1, alteringt1to contain a different number of columns causes the next execution to return a number of columns different from the previous execution.Older versions of the client library cannot handle this change in behavior. For applications that use prepared statements with the new server, an upgrade to the new client library is strongly recommended.
Along with this change to statement repreparation, the default value of the
table_definition_cachesystem variable has been increased from 128 to 256. The purpose of this increase is to lessen the chance that prepared statements will need repreparation due to referred-to tables/views having been flushed from the cache to make room for new entries.A new status variable,
Com_stmt_reprepare, has been introduced to track the number of repreparations. (Bug#27420, Bug#27430, Bug#27690)Important Change: Some changes were made to
CHECK TABLE ... FOR UPGRADEandREPAIR TABLEwith respect to detection and handling of tables with incompatible.frmfiles (files created with a different version of the MySQL server). These changes also affect mysqlcheck because that program usesCHECK TABLEandREPAIR TABLE, and thus also mysql_upgrade because that program invokes mysqlcheck.If your table was created by a different version of the MySQL server than the one you are currently running,
CHECK TABLE ... FOR UPGRADEindicates that the table has an.frmfile with an incompatible version. In this case, the result set returned byCHECK TABLEcontains a line with aMsg_typevalue oferrorand aMsg_textvalue ofTable upgrade required. Please do "REPAIR TABLE `tbl_name`" to fix it!REPAIR TABLEwithoutUSE_FRMupgrades the.frmfile to the current version.If you use
REPAIR TABLE ...USE_FRMand your table was created by a different version of the MySQL server than the one you are currently running,REPAIR TABLEwill not attempt to repair the table. In this case, the result set returned byREPAIR TABLEcontains a line with aMsg_typevalue oferrorand aMsg_textvalue ofFailed repairing incompatible .FRM file.Previously, use of
REPAIR TABLE ...USE_FRMwith a table created by a different version of the MySQL server risked the loss of all rows in the table.
mysql_upgrade now has a
--tmpdiroption to enable the location of temporary files to be specified. (Bug#36469)mysqldump now adds the
LOCALqualifier to theFLUSH TABLESstatement that is sent to the server when the--master-dataoption is enabled. This prevents theFLUSH TABLESstatement from replicating to slaves, which is disadvantageous because it would cause slaves to block while the statement executes. (Bug#35157)See also Bug#38303.
Bugs fixed:
Important Change: The server no longer issues warnings for truncation of excess spaces for values inserted into
CHARcolumns. This reverts a change in the previous release that caused warnings to be issued. (Bug#30059)Replication:
CREATE PROCEDUREandCREATE FUNCTIONstatements containing extended comments were not written to the binary log correctly, causing parse errors on the slave. (Bug#36570)See also Bug#32575.
Replication: When flushing tables, there was a slight chance that the flush occurred between the processing of one table map event and the next. Since the tables were opened one by one, subsequent locking of tables would cause the slave to crash. This problem was observed when replicating
NDBCLUSTERorInnoDBtables, when executing multi-table updates, and when a trigger or a stored routine performed an (additional) insert on a table so that two tables were effectively being inserted into in the same statement. (Bug#36197)Replication:
CREATE VIEWstatements containing extended comments were not written to the binary log correctly, causing parse errors on the slave. Now, all comments are stripped from such statements before being written to the binary log. (Bug#32575)See also Bug#36570.
On Windows 64-bit systems, temporary variables of
longtypes were used to storeulongvalues, causing key cache initialization to receive distorted parameters. The effect was that settingkey_buffer_sizeto values of 2GB or more caused memory exhaustion to due allocation of too much memory. (Bug#36705)Multiple-table
UPDATEstatements that used a temporary table could fail to update all qualifying rows or fail with a spurious duplicate-key error. (Bug#36676)A
REGEXPmatch could return incorrect rows when the previous row matched the expression and usedCONCAT()with an empty string. (Bug#36488)mysqltest ignored the value of
--tmpdirin one place. (Bug#36465)When updating an existing instance (for example, from MySQL 5.0 to 5.1, or 5.1 to 6.0), the Instance Configuration Wizard unnecessarily prompted for a
rootpassword when there was an existingrootpassword. (Bug#36305)Conversion of a
FLOAT ZEROFILLvalue to string could cause a server crash if the value wasNULL. (Bug#36139)On Windows, the installer attempted to use JScript to determine whether the target data directory already existed. On Windows Vista x64, this resulted in an error because the installer was attempting to run the JScript in a 32-bit engine, which wasn't registered on Vista. The installer no longer uses JScript but instead relies on a native WiX command. (Bug#36103)
mysqltest was performing escape processing for the
--replace_resultcommand, which it should not have been. (Bug#36041)An error in calculation of the precision of zero-length items (such as
NULL) caused a server crash for queries that employed temporary tables. (Bug#36023)For
EXPLAIN EXTENDED, execution of an uncorrelatedINsubquery caused a crash if the subquery required a temporary table for its execution. (Bug#36011)The
MERGEstorage engine did a table scan forSELECT COUNT(*)statements when it could calculate the number of records from the underlying tables. (Bug#36006)The server crashed inside
NOT INsubqueries with an impossibleWHEREorHAVINGclause, such asNOT IN (SELECT ... FROM t1, t2, ... WHERE 0). (Bug#36005)The Event Scheduler was not designed to work under the embedded server. It is now disabled for the embedded server, and the
event_schedulersystem variable is not displayed. (Bug#35997)Grouping or ordering of long values in unindexed
BLOBorTEXTcolumns with thegbkorbig5character set crashed the server. (Bug#35993)SET GLOBAL debug=''resulted in a Valgrind warning inDbugParse(), which was reading beyond the end of the control string. (Bug#35986)The “prefer full scan on clustered primary key over full scan of any secondary key” optimizer rule introduced by Bug#26447 caused a performance regression for some queries, so it has been disabled. (Bug#35850)
The server ignored any covering index used for
refaccess of a table in a query withORDER BYif this index was incompatible with theORDER BYlist and there was another covering index compatible with this list. As a result, suboptimal execution plans were chosen for some queries that used anORDER BYclause. (Bug#35844)mysql_upgrade did not properly update the
mysql.eventtable. (Bug#35824)An incorrect error and message was produced for attempts to create a
MyISAMtable with an index (.MYI) file name that was already in use by some otherMyISAMtable that was open at the same time. For example, this might happen if you use the same value of theINDEX DIRECTORYtable option for tables belonging to different databases. (Bug#35733)Enabling the
read_onlysystem variable while autocommit mode was enabled causedSELECTstatements for transactional storage engines to fail. (Bug#35732)The combination of
GROUP_CONCAT(),DISTINCT, andLEFT JOINcould crash the server when the right table is empty. (Bug#35298)Some binaries produced stack corruption messages due to being built with versions of bison older than 2.1. Builds are now created using bison 2.3. (Bug#34926)
The
log_outputsystem variable could be set to an illegal value. (Bug#34820)On Windows 64-bit builds, an apparent compiler bug caused memory overruns for code in
innobase/mem/*. Removed optimizations so as not to trigger this problem. (Bug#34297)Several additional configuration scripts in the
BUILDdirectory now are included in source distributions. These may be useful for users who wish to build MySQL from source. (See Section 2.10.3, “Installing from the Development Source Tree”, for information about what they do.) (Bug#34291)Executing a
FLUSH PRIVILEGESstatement after creating a temporary table in themysqldatabase with the same name as one of the MySQL system tables caused the server to crash.Note
While it is possible to shadow a system table in this way, the temporary table exists only for the current user and connection, and does not effect any user privileges.
UNIONconstructs cannot containSELECT ... INTOexcept in the finalSELECT. However, if aUNIONwas used in a subquery and anINTOclause appeared in the top-level query, the parser interpreted it as having appeared in theUNIONand raised an error. (Bug#32858)Assignment of relative path names to
general_log_fileorslow_query_log_filedid not always work. (Bug#32748)The
mysql.serverstable was not created during installation on Windows. (Bug#28680, Bug#32797)The
jptest suite was not working. (Bug#28563)The internal
init_time()library function was renamed tomy_init_time()to avoid conflicts with external libraries. (Bug#26294)The parser used signed rather than unsigned values in some cases that caused legal lengths in column declarations to be rejected. (Bug#15776)
Functionality added or changed:
Important Change: MySQL Cluster: Packaging: Beginning with this release, standard MySQL 5.1 binaries are no longer built with support for the
NDBCLUSTERstorage engine, and theNDBCLUSTERcode included in 5.1 mainline sources is no longer guaranteed to be maintained or supported. Those using MySQL Cluster in MySQL 5.1.23 and earlier MySQL 5.1 mainline releases should upgrade to MySQL Cluster NDB 6.2.15 or a later MySQL Cluster NDB 6.2 or 6.3 release. (Bug#36193)Important Change: The
FEDERATEDstorage engine is not included in binary distributions of MySQL 5.1.24. (It will be included again in 5.1.25.)Replication: Introduced the
slave_exec_modesystem variable to control whether idempotent or strict mode is used for replication conflict resolution. Idempotent mode suppresses duplicate-key, no-key-found, and some other errors, and is needed for circular replication, multi-master replication, and some other complex replication setups when using MySQL Cluster. Strict mode is the default. (Bug#31609)Replication: When running the server with
--binlog-format=MIXEDor--binlog-format=STATEMENT, a query that referred to a system variable used the slave's value when replayed on the slave. This meant that, if the value of a system variable was inserted into a table, the slave differed from the master. Now, statements that refer to a system variable are marked as “unsafe”, which means that:When the server is using
--binlog-format=MIXED, the row-based format is used automatically to replicate these statements.When the server is using
--binlog-format=STATEMENT, these statements produce a warning.
See also Bug#34732.
The
PROCESSprivilege now is required to start or stop theInnoDBmonitor tables (see Section 13.6.13.2, “SHOW ENGINE INNODB STATUSand theInnoDBMonitors”). Previously, no privilege was required. (Bug#34053)For binary
.tar.gzpackages, mysqld and other binaries now are compiled with debugging symbols included to enable easier use with a debugger. If you do not need debugging symbols and are short on disk space, you can use strip to remove the symbols from the binaries. (Bug#33252)Formerly, when the MySQL server crashed, the generated stack dump was numeric and required external tools to properly resolve the names of functions. This is not very helpful to users having a limited knowledge of debugging techniques. In addition, the generated stack trace contained only the names of functions and was formatted differently for each platform due to different stack layouts.
Now it is possible to take advantage of newer versions of the GNU C Library provide a set of functions to obtain and manipulate stack traces from within the program. On systems that use the ELF binary format, the stack trace contains important information such as the shared object where the call was generated, an offset into the function, and the actual return address. Having the function name also makes possible the name demangling of C++ functions.
The library generates meaningful stack traces on the following platforms: i386, x86_64, PowerPC, IA64, Alpha, and S390. On other platforms, a numeric stack trace is still produced, and the use of the resolve_stack_dump utility is still required. (Bug#31891)
mysqltest now has
mkdirandrmdircommands for creating and removing directories. (Bug#31004)The server uses less memory when loading privileges containing table grants. (Patch provided by Google.) (Bug#25175)
Added the
Uptime_since_flush_statusstatus variable, which indicates the number of seconds since the most recentFLUSH STATUSstatement. (Community contribution by Jeremy Cole) (Bug#24822)SHOW OPEN TABLESnow supportsFROMandLIKEclauses. (Bug#12183)The new read-only global system variables
report_host,report_password,report_port, andreport_usersystem variables provide runtime access to the values of the corresponding--report-host,--report-password,--report-port, and--report-useroptions.Formerly it was possible to specify an
innodb_flush_methodvalue offdatasyncto obtain the default flush behavior of usingfdatasync()for flushing. This is no longer possible because it can be confusing that a value offdatasynccauses use offsync()rather thanfdatasync().The use of
InnoDBhash indexes now can be controlled by setting the newinnodb_adaptive_hash_indexsystem variable at server startup. By default, this variable is enabled. See Section 13.6.10.4, “Adaptive Hash Indexes”.
Bugs fixed:
Performance:
InnoDBadaptive hash latches could be held too long during filesort operations, resulting in a server crash. Now the hash latch is released when a query onInnoDBtables performs a filesort. This eliminates the crash and may provide significant performance improvements on systems on which many queries using filesorts with temporary tables are being performed. (Bug#32149)Performance:
InnoDBexhibited thread thrashing with more than 50 concurrent connections under an update-intensive workload. (Bug#22868)Important Change: Security Fix: It was possible to circumvent privileges through the creation of
MyISAMtables employing theDATA DIRECTORYandINDEX DIRECTORYoptions to overwrite existing table files in the MySQL data directory. Use of the MySQL data directory inDATA DIRECTORYandINDEX DIRECTORYis now disallowed. This is now also true of these options when used with partitioned tables and individual partitions of such tables.Note
Additional fixes were made in MySQL 5.1.28.
See also Bug#39277.
Security Fix: A client that connects to a malicious server could be tricked by the server into sending files from the client host to the server. This occurs because the
libmysqlclientclient library would respond to aFETCH LOCAL FILErequest from the server even if the request is sent for statements from the client other thanLOAD DATA LOCAL INFILE. The client library has been modified to respond to aFETCH LOCAL FILErequest from the server only if is is sent in response to aLOAD DATA LOCAL INFILEstatement from the client.The client library now also checks whether
CLIENT_LOCAL_FILEis set and refuses to send a local file if not.Note
Binary distributions ship with the
local-infilecapability enabled. Applications that do not use this functionality should disable it to be safe.Important Change: Security Enhancement: On Windows Vista and Windows Server 2008, a user without administrative privileges does not have write permissions to the
Program Filesdirectory where MySQL and the associated data files are normally installed. Using data files located in the standardProgram Filesinstallation directory could therefore cause MySQL to fail, or lead to potential security issues in an installed instance.To address the problem, on Windows XP, Windows Vista and Windows Server 2008, the datafiles and data file configuration are now set to the Microsoft recommended
AppDatafolder. TheAppDatafolder is typically located within the user's home directory.Important
When upgrading an existing 5.1.23 or 6.0.4 installation of MySQL you must take a backup of your data and configuration file (
my.inibefore installing the new version. To migrate your data, either extract the data and re-import (using mysqldump, then upgrade and re-import using mysql), or back up your data, upgrade to the new version, and copy your existing data files from your olddatadirdirectory to the new directory located withinAppData.Failure to back up your data and follow these procedures may lead to data loss.
Incompatible Change: In MySQL 5.1.23, the
last_errnoandlast_errormembers of theNETstructure inmysql_com.hwere renamed toclient_last_errnoandclient_last_error. This was found to cause problems for connectors that use the internalNETstructure for error handling. The change has been reverted. (Bug#34655)See also Bug#12713.
Incompatible Change: It was possible to use
FRAC_SECONDas a synonym forMICROSECONDwithDATE_ADD(),DATE_SUB(), andINTERVAL; now, usingFRAC_SECONDwith anything other thanTIMESTAMPADD()orTIMESTAMPDIFF()produces a syntax error.It is now possible (and preferable) to use
MICROSECONDwithTIMESTAMPADD()andTIMESTAMPDIFF(), andFRAC_SECONDis now deprecated. (Bug#33834)Incompatible Change: The
UPDATEstatement allowedNULLto be assigned toNOT NULLcolumns (the implicit default value for the column data type was assigned). This was changed so that on error occurs.This change was reverted, because the original report was determined not to be a bug: Assigning
NULLto aNOT NULLcolumn in anUPDATEstatement should produce an error only in strict SQL mode and set the column to the implicit default with a warning otherwise, which was the original behavior. See Section 10.1.4, “Data Type Default Values”, and Bug#39265. (Bug#33699)Incompatible Change: For packages that are built within their own prefix (for example,
/usr/local/mysql) the plugin directory will belib/plugin. For packages that are built to be installed into a system-wide prefix (such as RPM packages with a prefix of/usr), the plugin directory will belib/mysql/pluginto ensure a clean/usr/libhierarchy. In both cases, the$pkglibdirconfiguration setting is used at build time to set the plugin directory.The current plugin directory location is available as the value of the
plugin_dirsystem variable as before, but the mysql_config script now has a--plugindiroption that can be used externally to the server by third-party plugin writers to obtain the default plugin directory path name and configure their installation directory appropriately. (Bug#31736)Incompatible Change: The
utf8_general_cianducs2_general_cicollations did not sort the letter "U+00DF SHARP S" equal to's'.As a result of this bug fix, indexes must be rebuilt for columns that use the
utf8_general_ciorucs2_general_cicollation for columns that contain SHARP S. See Section 2.12.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#27877)See also Bug#37046.
Important Change: Partitioning: The following statements did not function correctly with corrupted or crashed tables and have been disabled:
ALTER TABLE ... ANALYZE PARTITIONALTER TABLE ... CHECK PARTITIONALTER TABLE ... OPTIMIZE PARTITIONALTER TABLE ... REPAIR PARTITION
ALTER TABLE ... REBUILD PARTITIONis unaffected by this change and continues to be available. This statement andALTER TABLE ... REORGANIZE PARTITIONmay be used to analyze and optimize partitioned tables, since these operations cause the partition files to be rebuilt. (Bug#20129)See also Bug#39434.
Important Change: Replication: When the master crashed during an update on a transactional table while in
autocommitmode, the slave failed. This fix causes every transaction (includingautocommittransactions) to be recorded in the binlog as starting with aBEGINand ending with aCOMMITorROLLBACK. (Bug#26395)Important Change:
InnoDBfree space information is now shown in theData_freecolumn ofSHOW TABLE STATUSand in theDATA_FREEcolumn of theINFORMATION_SCHEMA.TABLEStable. (Bug#32440)See also Bug#11379.
Important Change: The server handled truncation of values having excess trailing spaces into
CHAR,VARCHAR, andTEXTcolumns in different ways. This behavior has now been made consistent for columns of all three of these types, and now follows the existing behavior ofVARCHARcolumns in this regard; that is, aNoteis always issued whenever such truncation occurs.This change does not affect columns of these three types when using a binary encoding;
BLOBcolumns are also unaffected by the change, since they always use a binary encoding. (Bug#30059)Important Change: An
AFTER UPDATEtrigger was not invoked when theUPDATEdid not make any changes to the table for which the trigger was defined. NowAFTER UPDATEtriggers behave the same in this regard as doBEFORE UPDATEtriggers, which are invoked whether theUPDATEmakes any changes in the table or not. (Bug#23771)Replication: Important Note: Network timeouts between the master and the slave could result in corruption of the relay log. This fix rectifies a long-standing replication issue when using unreliable networks, including replication over wide area networks such as the Internet. If you experience reliability issues and see many You have an error in your SQL syntax errors on replication slaves, we strongly recommend that you upgrade to a MySQL version which includes this fix. (Bug#26489)
Partitioning: In some cases, matching rows from a partitioned
MyISAMusing aBITcolumn as the primary key were not found by queries. (Bug#34358)Partitioning: Enabling
innodb_file_per_tableproduced problems with partitioning and tablespace operations on partitionedInnoDBtables, in some cases leading to corrupt partitions or causing the server to crash. (Bug#33429)Partitioning: A table defined using
PARTITION BY KEYand having aBITcolumn referenced in the partitioning key did not behave correctly; some rows could be inserted into the wrong partition, causing wrong results to be returned from queries. (Bug#33379)Partitioning: For
InnoDBtables, there was a race condition involving the data dictionary and repartitioning. (Bug#33349)Partitioning: When
ALTER TABLE DROP PARTITIONwas executed on a table on which there was a trigger, the statement failed with an error. This occurred even if the trigger did not reference any tables. (Bug#32943)Partitioning: Currently, all partitions of a partitioned table must use the same storage engine. One may optinally specify the storage engine on a per-partition basis; however, where this is the done, the storage engine must be the same as used by the table as a whole.
ALTER TABLEdid not enforce these rules correctly, the result being that incaccurate error messages were shown when trying to use the statement to change the storage engine used by an individual partition or partitions. (Bug#31931)Partitioning: Using the
DATA DIRECTORYandINDEX DIRECTORYoptions for partitions withCREATE TABLEorALTER TABLEstatements appeared to work on Windows, although they are not supported by MySQL on Windows systems, and subsequent attempts to use the tables referenced caused errors. Now these options are disabled on Windows, and attempting to use them generates a warning. (Bug#30459)Replication: The failure of a
CREATE TABLE ... ENGINE=InnoDB ... SELECTstatement caused the slave to lose data. (Bug#35762)Replication: When using row-based replication, a slave could crash at startup because it received a row-based replication event that
InnoDBcould not handle due to an incorrect test of the query string provided by MySQL, which wasNULLfor row-based replication events. (Bug#35226)Replication:
insert_idwas not written to the binary log for inserts intoBLACKHOLEtables. (Bug#35178)Replication: When using statement-based replication and a
DELETE,UPDATE, orINSERT ... SELECTstatement using aLIMITclause is encountered, a warning that the statement is not safe to replicate in statement mode is now issued; when usingMIXEDmode, the statement is now replicated using the row-based format. (Bug#34768)Replication: mysqlbinlog did not output the values of
auto_increment_incrementandauto_increment_offsetwhen both were equal to their default values (for both of these variables, the default is 1). This meant that a binary log recorded by a client using the defaults for both variables and then replayed on another client using its own values for either or both of these variables produced erroneous results. (Bug#34732)See also Bug#31168.
Replication: When the Windows version of mysqlbinlog read 4.1 binlogs containing
LOAD DATA INFILEstatements, it output backslashes as path separators, causing problems for client programs expecting forward slashes. In such cases, it now converts\\to/in directory paths. (Bug#34355)Replication:
SHOW SLAVE STATUSfailed when slave I/O was about to terminate. (Bug#34305)Replication: The character sets and collations used for constant identifiers in stored procedures were not replicated correctly. (Bug#34289)
Replication: mysqlbinlog from a 5.1 or later MySQL distribution could not read binary logs generated by a 4.1 server when the logs contained
LOAD DATA INFILEstatements. (Bug#34141)This regression was introduced by Bug#32407.
Replication: A
CREATE USER,DROP USER, orRENAME USERstatement that fails on the master, or that is a duplicate of any of these statements, is no longer written to the binlog; previously, either of these occurrences could cause the slave to fail.See also Bug#29749.
Replication:
SHOW BINLOG EVENTScould fail when the binlog contained one or more events whose size was close to the value ofmax_allowed_packet. (Bug#33413)Replication: An extraneous
ROLLBACKstatement was written to the binary log by a connection that did not use any transactional tables. (Bug#33329)Replication: mysqlbinlog failed to release all of its memory after terminating abnormally. (Bug#33247)
Replication: When a stored routine or trigger, running on a master that used MySQL 5.0 or MySQL 5.1.11 or earlier, performed an insert on an
AUTO_INCREMENTcolumn, theinsert_idvalue was not replicated correctly to a slave running MySQL 5.1.12 or later (including any MySQL 6.0 release). (Bug#33029)See also Bug#19630.
Replication: The error message generated due to lack of a default value for an extra column was not sufficiently informative. (Bug#32971)
Replication: When a user variable was used inside an
INSERTstatement, the corresponding binlog event was not written to the binlog correctly. (Bug#32580)Replication: When using row-based replication, deletes from a table with a foreign key constraint failed on the slave. (Bug#32468)
Replication: The
--base64-outputoption for mysqlbinlog was not honored for all types of events. This interfered in some cases with performing point-in-time recovery. (Bug#32407)Replication: SQL statements containing comments using
--syntax were not replayable by mysqlbinlog, even though such statements replicated correctly. (Bug#32205)Replication: When using row-based replication from a master running MySQL 5.1.21 or earlier to a slave running 5.1.22 or later, updates of integer columns failed on the slave with Error in Unknown event: row application failed. (Bug#31583)
This regression was introduced by Bug#21842.
Replication: Replicating write, update, or delete events from a master running MySQL 5.1.15 or earlier to a slave running 5.1.16 or later caused the slave to crash. (Bug#31581)
Replication: When using row-based replication, the slave stopped when attempting to delete nonexistent rows from a slave table without a primary key. In addition, no error was reported when this occurred. (Bug#31552)
Replication: Errors due to server ID conflicts were reported only in the slave's error log; now these errors are also shown in the
Server_IO_Statecolumn in the output ofSHOW SLAVE STATUS. (Bug#31316)Replication:
STOP SLAVEdid not stop connection attempts properly. If the IO slave thread was attempting to connect,STOP SLAVEwaited for the attempt to finish, sometimes for a long period of time, rather than stopping the slave immediately. (Bug#31024)See also Bug#30932.
Replication: Issuing a
DROP VIEWstatement caused replication to fail if the view did not actually exist. (Bug#30998)Replication: Replication of
LOAD DATA INFILEcould fail whenread_buffer_sizewas larger thanmax_allowed_packet. (Bug#30435)Replication: Replication crashed with the
NDBstorage engine when mysqld was started with--character-set-server=ucs2. (Bug#29562)Replication: The effects of scheduled events were not always correctly reproduced on the slave when using row-based replication. (Bug#29020)
Replication: Setting
server_iddid not update its value for the current session. (Bug#28908)Replication: Some older servers wrote events to the binary log using different numbering from what is currently used, even though the file format number in the file is the same. Slaves running MySQL 5.1.18 and later could not read these binary logs properly. Binary logs from these older versions now are recognized and event numbers are mapped to the current numbering so that they can be interpreted properly. (Bug#27779, Bug#32434)
This regression was introduced by Bug#22583.
Replication:
MASTER_POS_WAIT()did not returnNULLwhen the server was not a slave. (Bug#26622)Replication: The nonspecific error message Wrong parameters to function register_slave resulted when
START SLAVEfailed to register on the master due to excess length of any the slave server options--report-host,--report-user, or--report-password. An error message specific to each of these options is now returned in such cases. The new error messages are:Failed to register slave: too long 'report-host'
Failed to register slave: too long 'report-user'
Failed to register slave; too long 'report-password'
See also Bug#19328.
Replication:
PURGE BINARY LOGS TOandPURGE BINARY LOGS BEFOREdid not handle missing binary log files correctly or in the same way. Now for both of these statements, if any files listed in the.indexfile are missing from the file system, the statement fails with an error. (Bug#18199, Bug#18453)Replication:
START SLAVE UNTIL MASTER_LOG_POS=issued on a slave that was usingposition--log-slave-updatesand that was involved in circular replication would cause the slave to run and stop one event later than that specified by the value ofposition. (Bug#13861)Manually replacing a binary log file with a directory having the same name caused an error that was not handled correctly. (Bug#35675)
Using
LOAD DATA INFILEwith a view could crash the server. (Bug#35469)Selecting from
INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTScould cause a server crash. (Bug#35406)See also Bug#35108.
For a
TEMPORARYtable,DELETEwith noWHEREclause could fail when preceded byDELETEstatements with aWHEREclause. (Bug#35392)If the server crashed with an
InnoDBerror due to unavailability of undo slots, errors could persist during rollback when the server was restarted: There are twoUNDOslot caches (forINSERTandUPDATE). If all slots end up in one of the slot caches, a request for a slot from the other slot cache would fail. This can happen if the request is for anUPDATEslot and all slots are in theINSERTslot cache, or vice versa. (Bug#35352)In some cases, when too many clients tried to connect to the server, the proper
SQLSTATEcode was not returned. (Bug#35289)Memory-allocation failures for attempts to set
key_buffer_sizeto large values could result in a server crash. (Bug#35272)For
InnoDBtables,ALTER TABLE DROPfailed if the name of the column to be dropped began with “foreign”. (Bug#35220)Queries could return different results depending on whether
ORDER BYcolumns were indexed. (Bug#35206)When a view containing a reference to
DUALwas created, the reference was removed when the definition was stored, causing some queries against the view to fail with invalid SQL syntax errors. (Bug#35193)SELECT ... FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTScaused the server to crash if the table referenced by a foreign key had been dropped. This issue was observed on Windows platforms only. (Bug#35108)See also Bug#35406.
Debugging symbols were missing for some executables in Windows binary distributions. (Bug#35104)
Nonconnection threads were being counted in the value of the
Max_used_connectionsstatus variable. (Bug#35074)A query that performed a
ref_or_nulljoin where the second table used a key having one or columns that could beNULLand had a column value that wasNULLcaused the server to crash. (Bug#34945)This regression was introduced by Bug#12144.
For some queries, the optimizer used an ordered index scan for
GROUP BYorDISTINCTwhen it was supposed to use a loose index scan, leading to incorrect results. (Bug#34928)Creating a foreign key on an
InnoDBtable that was created with an explicitAUTO_INCREMENTvalue caused that value to be reset to 1. (Bug#34920)mysqldump failed to return an error code when using the
--master-dataoption without binary logging being enabled on the server. (Bug#34909)Under some circumstances, the value of
mysql_insert_id()following aSELECT ... INSERTstatement could return an incorrect value. This could happen when the lastSELECT ... INSERTdid not involve anAUTO_INCREMENTcolumn, but the value ofmysql_insert_id()was changed by some previous statements. (Bug#34889)Table and database names were mixed up in some places of the subquery transformation procedure. This could affect debugging trace output and further extensions of that procedure. (Bug#34830)
If
fsync()returnedENOLCK,InnoDBcould treat this as fatal and cause abnormal server termination.InnoDBnow retries the operation. (Bug#34823)CREATE SERVERandALTER SERVERcould crash the server if out-of-memory conditions occurred. (Bug#34790)DROP SERVERdoes not release memory cached for server structures created byCREATE SERVER, so repeated iterations of these statements resulted in a memory leak.FLUSH PRIVILEGESnow releases the memory allocated forCREATE SERVER. (Bug#34789)A malformed URL used for a
FEDERATEDtable'sCONNECTIONoption value in aCREATE TABLEstatement was not handled correctly and could crash the server. (Bug#34788)Queries such as
SELECT ROW(1, 2) IN (SELECT t1.a, 2) FROM t1 GROUP BY t1.a(combining row constructors and subqueries in theFROMclause) could lead to assertion failure or unexpected error messages. (Bug#34763)Using
NAME_CONST()with a negative number and an aggregate function caused MySQL to crash. This could also have a negative impact on replication. (Bug#34749)A memory-handling error associated with use of
GROUP_CONCAT()in subqueries could result in a server crash. (Bug#34747)For an indexed integer column
col_nameand a valueNthat is one greater than the maximum value allowed for the data type ofcol_name, conditions of the formWHEREfailed to return rows where the value ofcol_name<Ncol_nameis. (Bug#34731)N- 1A server running with the
--debugoption could attempt to dereference a null pointer when opening tables, resulting in a crash. (Bug#34726)Assigning an “incremental” value to the
debugsystem variable did not add the new value to the current value. For example, if the currentdebugvalue was'T', the statementSET debug = '+P'resulted in a value of'P'rather than the correct value of'P:T'. (Bug#34678)For debug builds, reading from
INFORMATION_SCHEMA.TABLESorINFORMATION_SCHEMA.COLUMNScould cause assertion failures. This could happen under rare circumstances whenINFORMATION_SCHEMAfails to get information about a table (for example, when a connection is killed). (Bug#34656)Executing a
TRUNCATEstatement on a table having both a foreign key reference and aDELETEtrigger crashed the server. (Bug#34643)Some subqueries using an expression that included an aggregate function could fail or in some cases lead to a crash of the server. (Bug#34620)
Dangerous pointer arithmetic crashed the server on some systems. (Bug#34598)
Creating a view inside a stored procedure could lead to a crash of the MySQL Server. (Bug#34587)
A server crash could occur if
INFORMATION_SCHEMAtables built in memory were swapped out to disk during query execution. (Bug#34529)CAST(AVG(produced incorrect results for non-arg) AS DECIMAL)DECIMALarguments. (Bug#34512)The per-thread debugging settings stack was not being deallocated before thread termination, resulting in a stack memory leak. (Bug#34424)
Executing an
ALTER VIEWstatement on a table crashed the server. (Bug#34337)InnoDBcould crash if overflow occurred for anAUTO_INCREMENTcolumn. (Bug#34335)For
InnoDB, exporting and importing a table could corruptTINYBLOBcolumns, and a subsequentALTER TABLEcould corruptTINYTEXTcolumns as well. (Bug#34300)DEFAULT 0was not allowed for theYEARdata type. (Bug#34274)Under some conditions, a
SET GLOBAL innodb_commit_concurrencyorSET GLOBAL innodb_autoextend_incrementstatement could fail. (Bug#34223)mysqldump attempts to set the
character_set_resultssystem variable after connecting to the server. This failed for pre-4.1 servers that have no such variable, but mysqldump did not account for this and 1) failed to dump database contents; 2) failed to produce any error message alerting the user to the problem. (Bug#34192)Use of stored functions in the
WHEREclause forSHOW OPEN TABLEScaused a server crash. (Bug#34166)For a
FEDERATEDtable with an index on a nullable column, accessing the table could crash a server, return an incorrect result set, or returnERROR 1030 (HY000): Got error 1430 from storage engine. (Bug#33946)Passing anything other than an integer argument to a
LIMITclause in a prepared statement would fail. (This limitation was introduced to avoid replication problems; for example, replicating the statement with a string argument would cause a parse failure in the slave). Now, arguments to theLIMITclause are converted to integer values, and these converted values are used when logging the statement. (Bug#33851)An internal buffer in mysql was too short. Overextending it could cause stack problems or segmentation violations on some architectures. (This is not a problem that could be exploited to run arbitrary code.) (Bug#33841)
A query using
WHERE (column1=', wherestring1' AND column2=constant1) OR (column1='string2' AND column2=constant2)col1used a binary collation andstring1matchedstring2except for case, failed to match any records even when matches were found by a query using the equivalent clauseWHERE column2=. (Bug#33833)constant1OR column2=constant2Large unsigned integers were improperly handled for prepared statements, resulting in truncation or conversion to negative numbers. (Bug#33798)
Reuse of prepared statements could cause a memory leak in the embedded server. (Bug#33796)
The server crashed when executing a query that had a subquery containing an equality X=Y where Y referred to a named select list expression from the parent select. The server crashed when trying to use the X=Y equality for
ref-based access. (Bug#33794)Some queries using a combination of
IN,CONCAT(), and an implicit type conversion could return an incorrect result. (Bug#33764)In some cases a query that produced a result set when using
ORDER BY ASCdid not return any results when this was changed toORDER BY DESC. (Bug#33758)Disabling concurrent inserts caused some cacheable queries not to be saved in the query cache. (Bug#33756)
ORDER BY ... DESCsorts could produce misordered results. (Bug#33697)The server could crash when
REPEATor another control instruction was used in conjunction with labels and aLEAVEinstruction. (Bug#33618)The parser allowed control structures in compound statements to have mismatched beginning and ending labels. (Bug#33618)
make_binary_distribution passed the
--print-libgcc-fileoption to the C compiler, but this does not work with the ICC compiler. (Bug#33536)Threads created by the event scheduler were incorrectly counted against the
max_connectionsthread limit, which could lead to client lockout. (Bug#33507)Dropping a function after dropping the function's creator could cause the server to crash. (Bug#33464)
Certain combinations of views, subselects with outer references and stored routines or triggers could cause the server to crash. (Bug#33389)
SET GLOBAL myisam_max_sort_file_size=DEFAULTsetmyisam_max_sort_file_sizeto an incorrect value. (Bug#33382)See also Bug#31177.
ENUM- orSET-valued plugin variables could not be set from the command line. (Bug#33358)Loading plugins via command-line options to mysqld could cause an assertion failure. (Bug#33345)
SLEEP(0)failed to return on 64-bit Mac OS X due to a bug inpthread_cond_timedwait(). (Bug#33304)Using Control-R in the mysql client caused it to crash. (Bug#33288)
For
MyISAMtables,CHECK TABLE(non-QUICK) and any form ofREPAIR TABLEincorrected treated rows as corrupted under the combination of the following conditions:The table had dynamic row format
The table had a
CHAR(notVARCHAR) column longer than 127 bytes (for multi-byte character sets this could be less than 127 characters)The table had rows with a signifcant length of more than 127 bytes significant length in that
CHARcolumn (that is, a byte beyond byte position 127 must be a nonspace character)
This problem affected
CHECK TABLE,REPAIR TABLE,OPTIMIZE TABLE,ALTER TABLE.CHECK TABLEreported and marked the table as crashed if any row was present that fulfilled the third condition. The other statements deleted these rows. (Bug#33222)Granting the
UPDATEprivilege on one column of a view caused the server to crash. (Bug#33201)For
DECIMALcolumns used with theROUND(orX,D)TRUNCATE(function with a nonconstant value ofX,D)D, adding anORDER BYfor the function result produced misordered output. (Bug#33143)The
CSVengine did not honor update requests forBLOBcolumns when the new column value had the same length as the value to be updated. (Bug#33067)After receiving a
SIGHUPsignal, the server could crash, and user-specified log options were ignored when reopening the logs. (Bug#33065)When MySQL was built with OpenSSL, the SSL library was not properly initialized with information of which endpoint it was (server or client), causing connection failures. (Bug#33050)
Under some circumstances a combination of aggregate functions and
GROUP BYin aSELECTquery over a view could lead to incorrect calculation of the result type of the aggregate function. This in turn could lead to incorrect results, or to crashes on debug builds of the server. (Bug#33049)For
DISTINCTqueries, MySQL 4.0 and 4.1 stopped reading joined tables as soon as the first matching row was found. However, this optimization was lost in MySQL 5.0, which instead read all matching rows. This fix for this regression may result in a major improvement in performance forDISTINCTqueries in cases where many rows match. (Bug#32942)Repeated creation and deletion of views within prepared statements could eventually crash the server. (Bug#32890)
See also Bug#34587.
Incorrect assertions could cause a server crash for
DELETEtriggers for transactional tables. (Bug#32790)In some cases where setting a system variable failed, no error was sent to the client, causing the client to hang. (Bug#32757)
Enabling the
PAD_CHAR_TO_FULL_LENGTHSQL mode caused privilege-loading operations (such asFLUSH PRIVILEGES) to include trailing spaces from grant table values stored inCHARcolumns. Authentication for incoming connections failed as a result. Now privilege loading does not include trailing spaces, regardless of SQL mode. (Bug#32753)The
SHOW ENGINE INNODB STATUSandSHOW ENGINE INNODB MUTEXstatements incorrectly required theSUPERprivilege rather than thePROCESSprivilege. (Bug#32710)Inserting strings with a common prefix into a table that used the
ucs2character set corrupted the table. (Bug#32705)Tables in the
mysqldatabase that stored the currentsql_modevalue as part of stored program definitions were not updated with newer mode values (NO_ENGINE_SUBSTITUTION,PAD_CHAR_TO_FULL_LENGTH). This causes various problems defining stored programs if those modes were included in the currentsql_modevalue. (Bug#32633)A view created with a string literal for one of the columns picked up the connection character set, but not the collation. Comparison to that field therefore used the default collation for that character set, causing an error if the connection collation was not compatible with the default collation. The problem was caused by text literals in a view being dumped with a character set introducer even when this was not necessary, sometimes leading to a loss of collation information. Now the character set introducer is dumped only if it was included in the original query. (Bug#32538)
See also Bug#21505.
Queries using
LIKEon tables having indexedCHARcolumns using either of theeucjpmsorujischaracter sets did not return correct results. (Bug#32510)Executing a prepared statement associated with a materialized cursor sent to the client a metadata packet with incorrect table and database names. The problem occurred because the server sent the name of the temporary table used by the cursor instead of the table name of the original table.
The same problem occured when selecting from a view, in which case the name of the table name was sent, rather than the name of the view. (Bug#32265)
On Windows, mysqltest_embedded.exe did not properly execute the
sendcommand. (Bug#32044)A variable named
read_onlycould be declared even though that is a reserved word. (Bug#31947)On Windows, the build process failed with four parallel build threads. (Bug#31929)
Queries testing numeric constants containing leading zeroes against
ZEROFILLcolumns were not evaluated correctly. (Bug#31887)If an error occurred during file creation, the server sometimes did not remove the file, resulting in an unused file in the file system. (Bug#31781)
When upgrading from MySQL 5.1.19 to any version between MySQL 5.1.20 to MySQL 5.1.23, the MySQL Instance Configuration Wizard would fail to account for the change in name for the mysqld-nt.exe to mysqld.exe, causing MySQL to fail to start properly after the upgrade. (Bug#31674)
The server returned the error message Out of memory; restart server and try again when the actual problem was that the sort buffer was too small. Now an appropriate error message is returned in such cases. (Bug#31590)
A table having an index that included a
BLOBorTEXTcolumn, and that was originally created with a MySQL server using version 4.1 or earlier, could not be opened by a 5.1 or later server. (Bug#31331)The
-,*, and/operators and the functionsPOW()andEXP()could misbehave when used with floating-point numbers. Previously they might return+INF,-INF, orNaNin cases of numeric overflow (including that caused by division by zero) or when invalid arguments were used. NowNULLis returned in all such cases. (Bug#31236)The
mysql_change_user()C API function caused globalCom_status variable values to be incorrect. (Bug#31222)xxxWhen sorting privilege table rows, the server treated escaped wildcard characters (
\%and\_) the same as unescaped wildcard characters (%and_), resulting in incorrect row ordering. (Bug#31194)On Windows,
SHOW PROCESSLISTcould display process entries with aStatevalue of*** DEAD ***. (Bug#30960)ROUND(orX,D)TRUNCATE(for nonconstant values ofX,D)Dcould crash the server if these functions were used in anORDER BYthat was resolved usingfilesort. (Bug#30889)Resetting the query cache by issuing a
SET GLOBAL query_cache_size=0statement caused the server to crash if it concurrently was saving a new result set to the query cache. (Bug#30887)Manifest problems prevented MySQLInstanceConfig.exe from running on Windows Vista. (Bug#30823)
If an alias was used to refer to the value returned by a stored function within a subselect, the outer select recognized the alias but failed to retrieve the value assigned to it in the subselect. (Bug#30787)
Binary logging for a stored procedure differed depending on whether or not execution occurred in a prepared statement. (Bug#30604)
An orphaned PID file from a no-longer-running process could cause mysql.server to wait for that process to exit even though it does not exist. (Bug#30378)
The
Table_locks_waitedwaited variable was not incremented in the cases that a lock had to be waited for but the waiting thread was killed or the request was aborted. (Bug#30331)The
Com_create_functionstatus variable was not incremented properly. (Bug#30252)View metadata returned from
INFORMATION_SCHEMA.VIEWSwas changed by the fix for Bug#11986, causing the information returned in MySQL 5.1 to differ from that returned in 5.0. (Bug#30217)mysqld displayed the
--enable-pstackoption in its help message even if MySQL was configured without--with-pstack. (Bug#29836)The mysql_config command would output
CFLAGSvalues that were incompatible with C++ for the HP-UX platform. (Bug#29645)Views were treated as insertable even if some base table columns with no default value were omitted from the view definition. (This is contrary to the condition for insertability that a view must contain all columns in the base table that do not have a default value.) (Bug#29477)
myisamchk always reported the character set for a table as
latin1_swedish_ci (8)regardless of the table' actual character set. (Bug#29182)InnoDBcould return an incorrect rows-updated value forUPDATEstatements. (Bug#29157)The MySQL preferences pane did not work to start or stop MySQL on Mac OS X 10.5 (Leopard). (Bug#28854)
For upgrading to a new major version using RPM packages (such as 4.1 to 5.0), if the installation procedure found an existing MySQL server running, it could fail to shut down the old server, but also erroneously removed the server's socket file. Now the procedure checks for an existing server package from a different vendor or major MySQL version. In such case, it refuses to install the server and recommends how to safely remove the old packages before installing the new ones. (Bug#28555)
mysqlhotcopy silently skipped databases with names consisting of two alphanumeric characters. (Bug#28460)
No information was written to the general query log for the
COM_STMT_CLOSE,COM_STMT_RESET, andCOM_STMT_SEND_LONG_DATAcommands. (These occur when a client invokes themysql_stmt_close(),mysql_stmt_reset()andmysql_stmt_send_long_data()C API functions.) (Bug#28386)Previously, the parser accepted the ODBC
{ OJ ... LEFT OUTER JOIN ...}syntax for writing left outer joins. The parser now allows{ OJ ... }to be used to write other types of joins, such asINNER JOINorRIGHT OUTER JOIN. This helps with compatibility with some third-party applications, but is not official ODBC syntax. (Bug#28317)The
FEDERATEDstorage engine did not perform identifier quoting for column names that are reserved words when sending statements to the remote server. (Bug#28269)The SQL parser did not accept an empty
UNION=()clause. This meant that, when there were no underlying tables specified for aMERGEtable,SHOW CREATE TABLEand mysqldump both output statements that could not be executed.Now it is possible to execute a
CREATE TABLEorALTER TABLEstatement with an emptyUNION=()clause. However,SHOW CREATE TABLEand mysqldump do not output theUNION=()clause if there are no underlying tables specified for aMERGEtable. This also means it is now possible to remove the underlying tables for aMERGEtable usingALTER TABLE ... UNION=(). (Bug#28248)It was possible to exhaust memory by repeatedly running
index_mergequeries and never performing anyFLUSH TABLESstatements. (Bug#27732)When
utf8was set as the connection character set, usingSPACE()with a non-Unicode column produced an error. (Bug#27580)See also Bug#23637.
The parser rules for the
SHOW PROFILEstatement were revised to work with older versions of bison. (Bug#27433)resolveip failed to produce correct results for host names that begin with a digit. (Bug#27427)
In
ORDER BYclauses, mixing aggregate functions and nongrouping columns is not allowed if theONLY_FULL_GROUP_BYSQL mode is enabled. However, in some cases, no error was thrown because of insufficient checking. (Bug#27219)For the
--record_log_posoption, mysqlhotcopy now determines the slave status information from the result ofSHOW SLAVE STATUSby using theRelay_Master_Log_FileandExec_Master_Log_Posvalues rather than theMaster_Log_FileandRead_Master_Log_Posvalues. This provides a more accurate indication of slave execution relative to the master. (Bug#27101)The MySQL Instance Configuration Wizard would not allow you to choose a service name, even though the criteria for the service name were valid. The code that checks the name has been updated to support the correct criteria of any string less than 256 character and not containing either a forward or backward slash character. (Bug#27013)
Memory corruption, a crash of the MySQL server, or both, could take place if a low-level I/O error occurred while an
ARCHIVEtable was being opened. (Bug#26978)DROP DATABASEfailed for attempts to drop databases with names that contained the legacy#mysql50#name prefix. (Bug#26703)config-win.hunconditionally definedboolasBOOL, causing problems on systems whereboolis 1 byte andBOOLis 4 bytes. (Bug#26461)On Windows, for distributions built with debugging support, mysql could crash if the user typed Control-C. (Bug#26243)
The XPath
boolean()function did not cast string and nodeset values correctly in some cases. It now returnsTRUEfor any nonempty string or nodeset and 0 for aNULLstring, as specified in the XPath standard.. (Bug#26051)When symbolic links were disabled, either with a server startup option or by enabling the
NO_DIR_IN_CREATESQL mode,CREATE TABLEsilently ignored theDATA DIRECTORYandINDEX DIRECTORYtable options. Now the server issues a warning if symbolic links are disabled when these table options are used. (Bug#25677)Attempting to create an index with a prefix on a
DECIMALcolumn appeared to succeed with an inaccurate warning message. Now, this action fails with the error Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys. (Bug#25426)mysqlcheck -A -r did not correctly identify all tables that needed repairing. (Bug#25347)
On Windows, an error in
configure.jscaused installation of source distributions to fail. (Bug#25340)The
Qcache_free_blocksstatus variable did not display a value of 0 if the query cache was disabled. (Bug#25132)The client library had no way to return an error if no connection had been established. This caused problems such as
mysql_library_init()failing silently if noerrmsg.sysfile was available. (Bug#25097)On Mac OS X, the StartupItem for MySQL did not work. (Bug#25008)
For Windows 64-bit builds, enabling shared-memory support caused client connections to fail. (Bug#24992)
mysql did not use its completion table. Also, the table contained few entries. (Bug#24624)
If a user installed MySQL Server and set a password for the
rootuser, and then uninstalled and reinstalled MySQL Server to the same location, the user could not use the MySQL Instance Config wizard to configure the server because the uninstall operation left the previous data directory intact. The config wizard assumed that any new install (not an upgrade) would have the default data directory where therootuser has no password. The installer now writes a registry key namedFoundExistingDataDir. If the installer finds an existing data directory, the key will have a value of 1, otherwise it will have a value of 0. When MySQLInstanceConfig.exe is run, it will attempt to read the key. If it can read the key, and the value is 1 and there is no existing instance of the server (indicating a new installation), the Config Wizard will allow the user to input the old password so the server can be configured. (Bug#24215)Logging of statements to log tables was incorrect for statements that contained
utf8-incompatible binary strings. Incompatible sequences are hex-encoded now. (Bug#23924)The MySQL header files contained some duplicate macro definitions that could cause compilation problems. (Bug#23839)
SHOW COLUMNSon aTEMPOARYtable caused locking issues. (Bug#23588)For distributions compiled with the bundled
libeditlibrary, there were difficulties using the mysql client to enter input for non-ASCII or multi-byte characters. (Bug#23097)perror reported incomplete or inaccurate information. (Bug#23028, Bug#25177)
After stopping and starting the event scheduler, disabled events could remain in the execution queue. (Bug#22738)
The server produced a confusing error message when attempting to open a table that required a storage engine that was not loaded. (Bug#22708)
For views or stored programs created with an invalid
DEFINERvalue, the error message was confusing (did not tie the problem to theDEFINERclause) and has been improved. (Bug#21854)Warnings for deprecated syntax constructs used in stored routines make sense to report only when the routine is being created, but they were also being reported when the routine was parsed for loading into the execution cache. Now they are reported only at routine creation time. (Bug#21801)
On Mac OS X, mysqld did not react to Ctrl-C when run under gdb, even when run with the
--gdboption. (Bug#21567)CREATE ... SELECTdid not always setDEFAULTcolumn values in the new table. (Bug#21380)mysql_config output did not include
-lmygccon some platforms when it was needed. (Bug#21158)mysql-stress-test.pl and mysqld_multi.server.sh were missing from some binary distributions. (Bug#21023, Bug#25486)
The
BENCHMARK()function, invoked with more than 2147483648 iterations (the size of a signed 32-bit integer), terminated prematurely. (Bug#20752)mysqldumpslow returned a confusing error message when no configuration file was found. (Bug#20455)
MySQLInstanceConfig.exe could lose the
innodb_data_home_dirsetting when reconfiguring an instance. (Bug#19797)DROP DATABASEdid not drop orphanedFOREIGN KEYconstraints. (Bug#18942)CREATE TABLEallowed 0 as the default value for aTIMESTAMPcolumn when the server was running inNO_ZERO_DATEmode. (Bug#18834)A
SETcolumn whose definition specified 64 elements could not be updated using integer values. (Bug#15409)If a
SELECTcalls a stored function in a transaction, and a statement within the function fails, that statement should roll back. Furthermore, ifROLLBACKis executed after that, the entire transaction should be rolled back. Before this fix, the failed statement did not roll back when it failed (even though it might ultimately get rolled back by aROLLBACKlater that rolls back the entire transaction). (Bug#12713)See also Bug#34655.
The parser incorrectly allowed
SQLSTATE '00000'to be specified for a condition handler. (This is incorrect because the condition must be a failure condition and'00000'indicates success.) (Bug#8759)MySQLInstanceConfig.exe did not save the
innodb_data_home_dirvalue to themy.inifile under certain circumstances. (Bug#6627)
Functionality added or changed:
Important Change: Partitioning: Security Fix: It was possible, by creating a partitioned table using the
DATA DIRECTORYandINDEX DIRECTORYoptions to gain privileges on other tables having the same name as the partitioned table. As a result of this fix, any table-levelDATA DIRECTORYorINDEX DIRECTORYoptions are now ignored for partitioned tables. (Bug#32091, CVE-2007-5970)Incompatible Change: In MySQL 5.1.6, when log tables were implemented, the default log destination for the general query and slow query log was
TABLE. This default has been changed toFILE, which is compatible with MySQL 5.0, but incompatible with earlier releases of MySQL 5.1 from 5.1.6 to 5.1.20. If you are upgrading from MySQL 5.0 to 5.1.21 or higher, no logging option changes should be necessary. However, if you are upgrading from 5.1.6 through 5.1.20 to 5.1.21 or higher and were usingTABLElogging, use the--log-output=TABLEoption explicitly to preserve your server's table-logging behavior.The MySQL 5.1.23 fix is in addition to a fix in 5.1.21 because it turned out that the default was set in two places, only one of which was fixed the first time. (Bug#29993)
Incompatible Change
The parser accepted statements that contained
/* ... */that were not properly closed with*/, such asSELECT 1 /* + 2. Statements that contain unclosed/*-comments now are rejected with a syntax error.This fix has the potential to cause incompatibilities. Because of Bug#26302, which caused the trailing
*/to be truncated from comments in views, stored routines, triggers, and events, it is possible that objects of those types may have been stored with definitions that now will be rejected as syntactically invalid. Such objects should be dropped and re-created so that their definitions do not contain truncated comments. (Bug#28779)MySQL Cluster: The following improvements have been made in the ndb_size.pl utility:
The script can now be used with multiple databases; lists of databases and tables can also be excluded from analysis.
Schema name information has been added to index table calculations.
The database name is now an optional parameter, the exclusion of which causes all databases to be examined.
If selecting from
INFORMATION_SCHEMAfails, the script now attempts to fall back toSHOW TABLES.A
--real_table_nameoption has been added; this designates a table to handle unique index size calculations.The report title has been amended to cover cases where more than one database is being analyzed.
Support for a
--socketoption was also added.For more information, see ndb_size.pl. (Bug#28683, Bug#28253)
MySQL Cluster: Mapping of
NDBerror codes to MySQL storage engine error codes has been improved. (Bug#28423)MySQL Cluster: The output from the cluster management client showing the progress of data node starts has been improved. (Bug#23354)
Partitioning: Error messages for partitioning syntax errors have been made more descriptive. (Bug#29368)
Replication: Replication of the following SQL functions now switches to row-based logging in
MIXEDmode, and generates a warning inSTATEMENTmode:CURRENT_USER()and its aliasCURRENT_USER
See Section 5.2.4.3, “Mixed Binary Logging Format”, for more information. (Bug#12092, Bug#28086, Bug#30244)
mysqldump information at the top of the output now shows the same information as mysqldump invoked with the
-Voption, namely the mysqldump version number, the MySQL server version, and the distribution. (Bug#32350)mysqltest now has a
change_usercommand to change the user for the current connection. (It invokes themysql_change_user()C API function.) (Bug#31608)mysql-test-run.pl now allows a suite name prefix to be specified in command-line arguments that name test cases. The test name syntax now is
[. For example, mysql-test-run.pl binlog.mytest runs thesuite_name.]test_name[.suffix]mytest.testtest in thebinlogtest suite. (Bug#31400)The
--event-scheduleroption without a value disabled the event scheduler. Now it enables the event scheduler. (Bug#31332)mysqldump produces a
-- Dump completed oncomment at the end of the dump ifDATE--commentsis given. The date causes dump files for identical data take at different times to appear to be different. The new options--dump-dateand--skip-dump-datecontrol whether the date is added to the comment.--skip-dump-datesuppresses date printing. The default is--dump-date(include the date in the comment). (Bug#31077)Server parser performance was improved for expression parsing by lowering the number of state transitions and reductions needed. (Bug#30625)
Server parser performance was improved for identifier lists, expression lists, and UDF expression lists. (Bug#30333)
Server parser performance was improved for boolean expressions. (Bug#30237)
The
LAST_EXECUTEDcolumn of theINFORMATION_SCHEMA.EVENTStable now indicates when the event started executing rather than when it finished executing. As a result, theENDScolumn is never less thanLAST_EXECUTED. (Bug#29830)The
mysql_odbc_escape_string()C API function has been removed. It has multi-byte character escaping issues, doesn't honor theNO_BACKSLASH_ESCAPESSQL mode and is not needed anymore by Connector/ODBC as of 3.51.17. (Bug#29592)If a
MyISAMtable is created with noDATA DIRECTORYoption, the.MYDfile is created in the database directory. By default, ifMyISAMfinds an existing.MYDfile in this case, it overwrites it. The same applies to.MYIfiles for tables created with noINDEX DIRECTORYoption. To suppress this behavior, start the server with the new--keep_files_on_createoption, in which caseMyISAMwill not overwrite existing files and returns an error instead. (Bug#29325)The default value of the
connect_timeoutsystem variable was increased from 5 to 10 seconds. This might help in cases where clients frequently encounter errors of the formLost connection to MySQL server at '. (Bug#28359)XXX', system error:errnoMySQL now can be compiled with gcc 4.2.x. There was a problem involving a conflict with the
min()andmax()macros inmy_global.h. (Bug#28184)mysql-test-run.pl now supports a
--combinationoption for specifying options to the mysqld server. This option is similar to--mysqldbut should be given two or more times. mysql-test-run.pl executes multiple test runs, using the options for each instance of--combinationin successive runs.For test runs specific to a given test suite, an alternative to the use of
--combinationis to create acombinationsfile in the suite directory. The file should contain a section of options for each test run.The argument for the mysql-test-run.pl
--do-testand--skip-testoptions is now interpreted as a Perl regular expression if there is a pattern metacharacter in the argument value. This allows more flexible specification of which tests to perform or skip.
Bugs fixed:
Performance: If a
LIMITclause was present, the server could fail to consider indexes that could be used forORDER BYorGROUP BY. (Bug#28404)Security Fix: Replication: It was possible for any connected user to issue a
BINLOGstatement, which could be used to escalate privileges.Use of the
BINLOGstatement now requires theSUPERprivilege. (Bug#31611, CVE-2007-6313)Security Fix: Three vulnerabilities in yaSSL versions 1.7.5 and earlier were discovered that could lead to a server crash or execution of unauthorized code. The exploit requires a server with yaSSL enabled and TCP/IP connections enabled, but does not require valid MySQL account credentials. The exploit does not apply to OpenSSL.
Warning
The proof-of-concept exploit is freely available on the Internet. Everyone with a vulnerable MySQL configuration is advised to upgrade immediately.
Security Fix: Using
RENAME TABLEagainst a table with explicitDATA DIRECTORYandINDEX DIRECTORYoptions can be used to overwrite system table information by replacing the symbolic link points. the file to which the symlink points.MySQL will now return an error when the file to which the symlink points already exists. (Bug#32111, CVE-2007-5969)
Security Fix:
ALTER VIEWretained the originalDEFINERvalue, even when altered by another user, which could allow that user to gain the access rights of the view. NowALTER VIEWis allowed only to the original definer or users with theSUPERprivilege. (Bug#29908)Security Fix: When using a
FEDERATEDtable, the local server could be forced to crash if the remote server returned a result with fewer columns than expected. (Bug#29801)Security Enhancement: It was possible to force an error message of excessive length which could lead to a buffer overflow. This has been made no longer possible as a security precaution. (Bug#32707)
Incompatible Change: It is no longer possible to create
CSVtables withNULLcolumns. However, for backwards compatibility, you can continue to use such tables that were created in previous MySQL releases. (Bug#32050)Incompatible Change: With
ONLY_FULL_GROUP_BYSQL mode enabled, queries such asSELECT a FROM t1 HAVING COUNT(*)>2were not being rejected as they should have been.This fix results in the following behavior:
There is a check against mixing group and nongroup columns only when
ONLY_FULL_GROUP_BYis enabled.This check is done both for the select list and for the
HAVINGclause if there is one.
This behavior differs from previous versions as follows:
Previously, the
HAVINGclause was not checked whenONLY_FULL_GROUP_BYwas enabled; now it is checked.Previously, the select list was checked even when
ONLY_FULL_GROUP_BYwas not enabled; now it is checked only whenONLY_FULL_GROUP_BYis enabled.
Incompatible Change: Inserting a row with a
NULLvalue for aDATETIMEcolumn results in aCSVfile that the storage engine cannot read.All
CSVtables now need to be defined with each column marked asNOT NULL. An error is raised if you try to create aCSVtable with columns that are not defined withNOT NULL. (Bug#31473, Bug#32817)Incompatible Change:
SET PASSWORDstatements now cause an implicit commit, and thus are prohibited within stored functions and triggers. (Bug#30904)Incompatible Change: The
mysql_install_dbscript could fail to locate some components (including resolveip) during execution if the--basediroption was specified on the command-line or within themy.cnffile. This was due to a conflict when comparing the compiled-in values and the supplied values.The
--source-installcommand-line option to the script has been removed and replaced with the--srcdiroption. mysql_install_db now locates components either using the compiled-in options, the--basediroption or--srcdiroption. (Bug#30759)Incompatible Change: Multiple-table
DELETEstatements containing ambiguous aliases could have unintended side effects such as deleting rows from the wrong table. Example:DELETE FROM t1 AS a2 USING t1 AS a1 INNER JOIN t2 AS a2;
Now alias declarations can be declared only in the
table_referencespart. Elsewhere in the statement, alias references are allowed but not alias declarations. Statements containing aliases that are no longer allowed must be rewritten. (Bug#30234)See also Bug#27525.
Incompatible Change: Within a stored routine, it is no longer allowable to declare a cursor for a
SHOWorDESCRIBEstatement. This happened to work in some instances, but is no longer supported. In many cases, a workaround for this change is to use the cursor with aSELECTquery to read from anINFORMATION_SCHEMAtable that produces the same information as theSHOWstatement. (Bug#29223)Incompatible Change: It was possible to create a view having a column whose name consisted of an empty string or space characters only.
One result of this bug fix is that aliases for columns in the view
SELECTstatement are checked to ensure that they are legal column names. In particular, the length must be within the maximum column length of 64 characters, not the maximum alias length of 256 characters. This can cause problems for replication or loading dump files. For additional information and workarounds, see Section D.4, “Restrictions on Views”. (Bug#27695)See also Bug#31202.
Incompatible Change: Several type-preserving functions and operators returned an incorrect result type that does not match their argument types:
COALESCE(),IF(),IFNULL(),LEAST(),GREATEST(),CASE. These now aggregate using the precise SQL types of their arguments rather than the internal type. In addition, the result type of theSTR_TO_DATE()function is nowDATETIMEby default. (Bug#27216)Incompatible Change:
GRANTandREVOKEstatements now cause an implicit commit, and thus are prohibited within stored functions and triggers. (Bug#21975, Bug#21422, Bug#17244)Incompatible Change: It was possible for option files to be read twice at program startup, if some of the standard option file locations turned out to be the same directory. Now duplicates are removed from the list of files to be read.
Also, users could not override system-wide settings using
~/.my.cnfbecausewas read last. The latter file now is read earlier so thatSYSCONFDIR/my.cnf~/.my.cnfcan override system-wide settings.The fix for this problem had a side effect such that on Unix, MySQL programs looked for options in
~/my.cnfrather than the standard location of~/.my.cnf. That problem was addressed as Bug#38180. (Bug#20748)Incompatible Change: A number of problems existed in the implementation of
MERGEtables that could cause problems. The problems are summarized below:Bug#26379 - Combination of
FLUSH TABLEandREPAIR TABLEcorrupts aMERGEtable. This was caused in a number of situations:A thread trying to lock a
MERGEtable performs busy waiting whileREPAIR TABLEor a similar table administration task is ongoing on one or more of itsMyISAMtables.A thread trying to lock a
MERGEtable performs busy waiting until all threads that didREPAIR TABLEor similar table administration tasks on one or more of itsMyISAMtables inLOCK TABLESsegments doUNLOCK TABLES. The difference against problem #1 is that the busy waiting takes place after the administration task. It is terminated byUNLOCK TABLESonly.Two
FLUSH TABLESwithin aLOCK TABLESsegment can invalidate the lock. This does not require aMERGEtable. The firstFLUSH TABLEScan be replaced by any statement that requires other threads to reopen the table. In 5.0 and 5.1 a singleFLUSH TABLEScan provoke the problem.
Bug#26867 - Simultaneously executing
LOCK TABLESandREPAIR TABLEon aMERGEtable would result in memory/cpu hogging.Trying DML on a
MERGEtable, which has a child locked and repaired by another thread, made an infinite loop in the server.Bug#26377 - Deadlock with
MERGEandFLUSH TABLELocking a
MERGEtable and its children in parent-child order and flushing the child deadlocked the server.Truncating a
MERGEchild, while theMERGEtable was in use, let the truncate fail instead of waiting for the table to become free.Bug#25700 -
MERGEbase tables get corrupted byOPTIMIZE TABLE,ANALYZE TABLE, orREPAIR TABLE.Repairing a child of an open
MERGEtable corrupted the child. It was necessary toFLUSHthe child first.Bug#30275 -
MERGEtables:FLUSH TABLESorUNLOCK TABLEScauses server to crash.Flushing and optimizing locked
MERGEchildren crashed the server.Bug#19627 - temporary merge table locking
Use of a temporary
MERGEtable with nontemporary children could corrupt the children.Temporary tables are never locked. Creation of tables with nontemporary children of a temporary
MERGEtable is now prohibited.Bug#27660 -
Falcon:MERGEtable possibleIt was possible to create a
MERGEtable with non-MyISAMchildren.Bug#30273 -
MERGEtables: Can't lock file (errno: 155)This was a Windows-only bug. Table administration statements sometimes failed with "Can't lock file (errno: 155)".
The fix introduces the following changes in behavior:
This patch changes the behavior of temporary
MERGEtables. TemporaryMERGEmust have temporary children. The old behavior was wrong. A temporary table is not locked. Hence even nontemporary children were not locked. See Bug#19627.You cannot change the union list of a nontemporary
MERGEtable whenLOCK TABLESis in effect. The following does not work:CREATE TABLE m1 ... ENGINE=MRG_MYISAM ...; LOCK TABLES t1 WRITE, t2 WRITE, m1 WRITE; ALTER TABLE m1 ... UNION=(t1,t2) ...;
However, you can do this with a temporary
MERGEtable.You cannot create a
MERGEtable withCREATE ... SELECT, neither as a temporaryMERGEtable, nor as a nontemporaryMERGEtable. For example,CREATE TABLE m1 ... ENGINE=MRG_MYISAM ... SELECT ...;causes the error message: table is not BASE TABLE.
(Bug#19627, Bug#25038, Bug#25700, Bug#26377, Bug#26379, Bug#26867, Bug#27660, Bug#30275, Bug#30491)
Important Change: MySQL Cluster:
AUTO_INCREMENTcolumns had the following problems when used inNDBtables:The
AUTO_INCREMENTcounter was not updated correctly when such a column was updated.AUTO_INCREMENTvalues were not prefetched beyond statement boundaries.AUTO_INCREMENTvalues were not handled correctly withINSERT IGNOREstatements.After being set,
ndb_autoincrement_prefetch_szshowed a value of 1, regardless of the value it had actually been set to.
As part of this fix, the behavior of
ndb_autoincrement_prefetch_szhas changed. Setting this to less than 32 no longer has any effect on prefetching within statements (where IDs are now always obtained in batches of 32 or more), but only between statements. The default value for this variable has also changed, and is now1. (Bug#25176, Bug#31956, Bug#32055)Partitioning: Important Note: An apostrophe or single quote character (
') used in theDATA DIRECTORY,INDEX DIRECTORY, orCOMMENTfor aPARTITIONclause caused the server to crash. When used as part of aCREATE TABLEstatement, the crash was immediate. When used in anALTER TABLEstatement, the crash did not occur until trying to perform aSELECTor DML statement on the table. In either case, the server could not be completely restarted until the.frmfile corresponding to the newly created or altered table was deleted.Note
Upgrading to the current (or later) release solves this problem only for tables that are newly created or altered. Tables created or altered in previous versions of the server to include
'characters inPARTITIONoptions must still be removed by deleting the corresponding.frmfiles and re-creating them afterwards.Important Note: The
RENAME DATABASEstatement was removed and replaced withALTER DATABASE. Thedb_nameUPGRADE DATA DIRECTORY NAMERENAME DATABASEstatement was intended for upgrading database directory names to the encoding format used in 5.1 for representing identifiers in the file system (see Section 8.2.3, “Mapping of Identifiers to File Names”). However, the statement was found to be dangerous because it could result in loss of database contents. See Section 12.1.32, “RENAME DATABASESyntax”, and Section 12.1.1, “ALTER DATABASESyntax”. (Bug#17565, Bug#21741, Bug#28360)Replication: MySQL Cluster: Row-based replication from or to a big-endian machine where the table used the
NDBstorage engine failed, if the same table on the other machine was either non-NDBor the other machine was little-endian. (Bug#29549, Bug#30790)MySQL Cluster: An improperly reset internal signal was observed as a hang when using events in the
NDBAPI but could result in various errors. (Bug#33206)MySQL Cluster: Incorrectly handled parameters could lead to a crash in the Transaction Coordinator during a node failure, causing other data nodes to fail. (Bug#33168)
MySQL Cluster: A memory leak occurred if a subscription start request was received by the subscription manager before the node making the request was fully connected to the cluster. (Bug#32652)
MySQL Cluster: A local checkpoint could sometimes be started before the previous LCP was restorable from a global checkpoint. (Bug#32519)
MySQL Cluster: High numbers of API nodes on a slow or congested network could cause connection negotiation to time out prematurely, leading to the following issues:
Excessive retries
Excessive CPU usage
Partially connected API nodes
MySQL Cluster: When a mysqld acting as a cluster SQL node starts the
NDBCLUSTERstorage engine, there is a delay during which some necessary data structures cannot be initialized until after it has connected to the cluster, and all MySQL Cluster tables should be opened as read-only. This worked correctly when theNDBbinlog thread was running, but when it was not running, Cluster tables were not opened as read-only even when the data structures had not yet been set up. (Bug#32275, Bug#33763)MySQL Cluster: The failure of a master node could lead to subsequent failures in local checkpointing. (Bug#32160)
MySQL Cluster: The management server was slow to respond when no data nodes were connected to the cluster. This was most noticeable when running
SHOWin the management client. (Bug#32023)MySQL Cluster: An error with an
ifstatement insql/ha_ndbcluster.cccould potentially lead to an infinite loop in case of failure when working withAUTO_INCREMENTcolumns inNDBtables. (Bug#31810)MySQL Cluster: The
NDBstorage engine code was not safe for strict-alias optimization in gcc 4.2.1. (Bug#31761)MySQL Cluster: It was possible in some cases for a node group to be “lost” due to missed local checkpoints following a system restart. (Bug#31525)
MySQL Cluster: A query against a table with
TEXTorBLOBcolumns that would return more than a certain amount of data failed with Got error 4350 'Transaction already aborted' from NDBCLUSTER. (Bug#31482)This regression was introduced by Bug#29102.
MySQL Cluster:
NDBtables having names containing nonalphanumeric characters (such as “$”) were not discovered correctly. (Bug#31470)MySQL Cluster: A node failure during a local checkpoint could lead to a subsequent failure of the cluster during a system restart. (Bug#31257)
MySQL Cluster: A cluster restart could sometimes fail due to an issue with table IDs. (Bug#30975)
MySQL Cluster: When handling
BLOBcolumns, the addition of read locks to the lock queue was not handled correctly. (Bug#30764)MySQL Cluster: Discovery of
NDBtables did not work correctly withINFORMATION_SCHEMA. (Bug#30667)MySQL Cluster: A file system close operation could fail during a node or system restart. (Bug#30646)
MySQL Cluster: Transaction timeouts were not handled well in some circumstances, leading to excessive number of transactions being aborted unnecessarily. (Bug#30379)
MySQL Cluster: The cluster management client could not connect, and would hang instead. This issue affected Mac OS X 64-bit only. (Bug#30366)
MySQL Cluster: Attempting to restore a backup made on a cluster host using one endian to a machine using the other endian could cause the cluster to fail. (Bug#29674)
MySQL Cluster: Log event requests to ndb_mgmd could time out, causing it to fail. (Bug#29621)
MySQL Cluster: In some cases, the cluster managment server logged entries multiple times following a restart of mgmd. (Bug#29565)
MySQL Cluster: ndb_mgm
--helpdid not display any information about the-aoption. (Bug#29509)MySQL Cluster: An interpreted program of sufficient size and complexity could cause all cluster data nodes to shut down due to buffer overruns. (Bug#29390)
MySQL Cluster: ndb_size.pl failed on tables with
FLOATcolumns whose definitions included commas (for example,FLOAT(6,2)). (Bug#29228)MySQL Cluster: The error message for
NDBerror code 275 (Out of transaction records for complete phase) was missing. (Bug#29139)MySQL Cluster: Reads on
BLOBcolumns were not locked when they needed to be to guarantee consistency. (Bug#29102)See also Bug#31482.
MySQL Cluster: A query using joins between several large tables and requiring unique index lookups failed to complete, eventually returning Uknown Error after a very long period of time. This occurred due to inadequate handling of instances where the Transaction Coordinator ran out of
TransactionBufferMemory, when the cluster should have returned NDB error code 4012 (Request ndbd time-out). (Bug#28804)MySQL Cluster: There was a short interval during the startup process prior to the beginning of heartbeat detection such that, were an API or management node to reboot or a network failure to occur, data nodes could not detect this, with the result that there could be a lingering connection. (Bug#28445)
MySQL Cluster: The description of the
--printoption provided in the output from ndb_restore--helpwas incorrect. (Bug#27683)MySQL Cluster: Restoring a backup made on a cluster host using one endian to a machine using the other endian failed for
BLOBandDATETIMEcolumns. (Bug#27543, Bug#30024)MySQL Cluster: An invalid subselect on an
NDBtable could cause mysqld to crash. (Bug#27494)MySQL Cluster: An attempt to perform a
SELECT ... FROM INFORMATION_SCHEMA.TABLESwhose result included information aboutNDBtables for which the user had no privileges crashed the MySQL Server on which the query was performed. (Bug#26793)MySQL Cluster: Performing
DELETEoperations after a data node had been shut down could lead to inconsistent data following a restart of the node. (Bug#26450)MySQL Cluster:
UPDATE IGNOREcould sometimes fail onNDBtables due to the use of unitialized data when checking for duplicate keys to be ignored. (Bug#25817)MySQL Cluster: The cluster log was formatted inconsistently and contained extraneous newline characters. (Bug#25064)
MySQL Cluster: A restart of the cluster failed when more than 1 REDO phase was in use. (Bug#22696)
MySQL Cluster: When inserting a row into an
NDBtable with a duplicate value for a nonprimary unique key, the error issued would reference the wrong key.This improves on an initial fix for this issue made in MySQL 5.1.13. (Bug#21072)
MySQL Cluster: An insufficiently descriptive and potentially misleading Error 4006 (Connect failure - out of connection objects...) was produced when either of the following two conditions occurred:
There were no more transaction records in the transaction coordinator
An
NDBobject in the NDB API was initialized with insufficient parallelism
Separate error messages are now generated for each of these two cases. (Bug#11313)
Partitioning: Replication: Replication of partitioned tables using the
InnoDBstorage engine failed withbinlog-format=ROWorbinlog-format=MIXED. (Bug#28430)Partitioning: It was possible to partition a table to which a foreign key referred. (Bug#32948)
Partitioning: A query of the form
SELECTagainst a partitionedcol1FROMtableGROUP BY (SELECTcol2FROMtableLIMIT 1);tablehaving aSETcolumn crashed the server. (Bug#32772)Partitioning:
SHOW CREATE TABLEmisreported the value ofAUTO_INCREMENTfor partitioned tables using either of theInnoDBorARCHIVEstorage engines. (Bug#32247)Partitioning: Selecting from
INFORMATION_SCHEMA.PARTITIONSwhile partition management statements (for example,ALTER TABLE ... ADD PARTITION) were executing caused the server to crash. (Bug#32178)Partitioning: An error in the internal function
mysql_unpack_partition()led to a fatal error in subsequent calls toopen_table_from_share(). (Bug#32158)Partitioning: Repeated updates of a table that was partitioned by
KEYon aTIMESTAMPcolumn eventually crashed the server. (Bug#32067)Partitioning: Changing the storage engine used by a table having subpartitions led to a server crash. (Bug#31893)
Partitioning:
ORDER BY ... DESCdid not always work correctly when selecting from partitioned tables. (Bug#31890)See also Bug#31001.
Partitioning: Selecting from a table partitioned by
KEYon aVARCHARcolumn whose size was greater than 65530 caused the server to crash. (Bug#31705)Partitioning:
INSERT DELAYEDon a partitioned table crashed the server. The server now rejects the statement with an error. (Bug#31210)Partitioning: Using
ALTER TABLEto partition an existing table having anAUTO_INCREMENTcolumn could crash the server. (Bug#30878)This regression was introduced by Bug#27405.
Partitioning:
ALTER TABLE ... COALESCE PARTITIONon a table partitioned by[LINEAR] HASHor[LINEAR] KEYcaused the server to crash. (Bug#30822)Partitioning:
LIKEqueries on tables partitioned byKEYand using third-party storage engines could return incomplete results. (Bug#30480)Partitioning: It was not possible to insert the greatest possible value for a given data type into a partitioned table. For example, consider a table defined as shown here:
CREATE TABLE t (c BIGINT UNSIGNED) PARTITION BY RANGE(c) ( PARTITION p0 VALUES LESS THAN MAXVALUE );The largest possible value for a
BIGINT UNSIGNEDcolumn is 18446744073709551615, but the statementINSERT INTO t VALUES (18446744073709551615);would fail, even though the same statement succeeded weretnot a partitioned table.In other words,
MAXVALUEwas treated as being equal to the greatest possible value, rather than as a least upper bound. (Bug#29258)Cluster Replication: Replication: A node failure during replication could lead to buckets out of order; now active subscribers are checked for, rather than empty buckets. (Bug#31701)
Cluster Replication: Replication: Incorrect handling of
INSERTplusDELETEoperations with regard to local checkpoints caused data node failures in multi-master replication setups. (Bug#30914)Replication: When dropping a database containing a stored procedure while using row-cased replication, the delete of the stored procedure from the
mysql.proctable was recorded in the binary log following theDROP DATABASEstatement. To correct this issue,DROP DATABASEnow uses statement-based replication. (Bug#32435)Replication: It was possible for the name of the relay log file to exceed the amount of memory reserved for it, possibly leading to a crash of the server. (Bug#31836)
See also Bug#28597.
Replication: Corruption of log events caused the server to crash on 64-bit Linux systems having 4 GB or more of memory. (Bug#31793)
Replication: Trying to replicate an update of a row that was missing on the slave led to a failure on the slave. (Bug#31702)
Replication: Use of the
@@hostnamesystem variable in inserts inmysql_system_tables_data.sqldid not replicate. The workaround is to select its value into a user variable (which does replicate) and insert that. (Bug#31167)Replication: Table names were displayed as binary “garbage” characters in slave error messages. The issue was observed on 64-bit Windows but may have effected other platforms. (Bug#30854)
Replication: One thread could read uninitialized memory from the stack of another thread. This issue was only known to occur in a mysqld process acting as both a master and a slave. (Bug#30752)
Replication: It was possible to set
SQL_SLAVE_SKIP_COUNTERsuch that the slave would jump into the middle of a transaction. This fix improves on one made for this bug in MySQL 5.1.20; the previous fix insured that the slave could not be made to jump into the middle of an event group, but the slave failed to recognize thatBEGIN,COMMIT, andROLLBACKstatements could begin or end an event group. (Bug#28618)See also Bug#12691.
Replication: Due a previous change in how the default name and location of the binary log file were determined, replication failed following some upgrades. (Bug#28597, Bug#28603)
See also Bug#31836.
This regression was introduced by Bug#20166.
Replication: Stored procedures having
BITparameters were not replicated correctly. (Bug#26199)Replication: Issuing
SHOW SLAVE STATUSas mysqld was shutting down could cause a crash. (Bug#26000)Replication: If a temporary error occured inside an event group on an event that was not the first event of the group, the slave could get caught in an endless loop because the retry counter was reset whenever an event was executed successfully. (Bug#24860)
Replication: An
UPDATEstatement using a stored function that modified a nontransactional table was not logged if it failed. This caused the copy of the nontransactional table on the master have a row that the copy on the slave did not.In addition, when an
INSERT ... ON DUPLICATE KEY UPDATEstatement encountered a duplicate key constraint, but theUPDATEdid not actually change any data, the statement was not logged. As a result of this fix, such statements are now treated the same for logging purposes as otherUPDATEstatements, and so are written to the binary log. (Bug#23333)See also Bug#12713.
Replication: A replication slave sometimes failed to reconnect because it was unable to run
SHOW SLAVE HOSTS. It was not necessary to run this statement on slaves (since the master should track connection IDs), and the execution of this statement by slaves was removed. (Bug#21132)Replication: A replication slave sometimes stopped for changes that were idempotent (that is, such changes should have been considered “safe”), even though it should have simply noted that the change was already done, and continued operation. (Bug#19958)
Replication: Replicating from a master table to a slave table where the size of a
CHARorVARCHARcolumn was a different size would cause mysqld to crash. For more information on replicating with different column definitions, see Section 16.3.1.5, “Replication with Differing Tables on Master and Slave”.Cluster Replication: A replication slave could return “garbage” data that was not in recognizable row format due to a problem with the internal
all_set()method. (Bug#33375)Cluster Replication: Memory was mistakenly freed for
NdbBlobobjects when adding an index while replicating the cluster, which could cause mysqld to crash. (Bug#33142)See also Bug#18106.
Cluster Replication: Under certain conditions, the slave stopped processing relay logs. This resulted in the logs never being cleared and the slave eventually running out of disk space. (Bug#31958)
Cluster Replication: Replicating
NDBtables with extraVARCHARcolumns on the master caused the slave to fail. (Bug#31646)See also Bug#29549.
Cluster Replication: When the master mysqld crashed or was restarted, no
LOST_EVENTSentry was made in the binlog. (Bug#31484)See also Bug#21494.
Cluster Replication: An issue with the
mysql.ndb_apply_statustable could causeNDBschema autodiscovery to fail in certain rare circumstances. (Bug#20872)Cluster API: A call to
CHECK_TIMEDOUT_RET()inmgmapi.cppshould have been a call toDBUG_CHECK_TIMEDOUT_RET(). (Bug#30681)API: When the language option was not set correctly, API programs calling
mysql_server_init()crashed. This issue was observed only on Windows platforms. (Bug#31868)Corrected a typecast involving
boolon Mac OS X 10.5 (Leopard), which evaluated differently from earlier Mac OS X versions. (Bug#38217)Use of uninitialized memory for
filesortin a subquery caused a server crash. (Bug#33675)CREATE TABLE ... SELECTcreated tables that for date columns used the obsoleteField_datetype instead ofField_newdate. (Bug#33256)Some valid
SELECTstatements could not be used as views due to incorrect column reference resolution. (Bug#33133)The fix for Bug#11230 and Bug#26215 introduced a significant input-parsing slowdown for the mysql client. This has been corrected. (Bug#33057)
The correct data type for a
NULLcolumn resulting from aUNIONcould be determined incorrectly in some cases: 1) Not correctly inferred asNULLdepending on the number of selects; 2) Not inferred correctly asNULLif one select used a subquery. (Bug#32848)For queries containing
GROUP_CONCAT(DISTINCT, there was a limitation that thecol_listORDER BYcol_list)DISTINCTcolumns had to be the same asORDER BYcolumns. Incorrect results could be returned if this was not true. (Bug#32798)SHOW EVENTSand selecting from theINFORMATION_SCHEMA.EVENTStable failed if the current database wasINFORMATION_SCHEMA. (Bug#32775)Use of the
cp932character set withCAST()in anORDER BYclause could cause a server crash. (Bug#32726)A subquery using an
IS NULLcheck of a column defined asNOT NULLin a table used in theFROMclause of the outer query produced an invalid result. (Bug#32694)mysqld_safe looked for error messages in the wrong location. (Bug#32679)
Specifying a nonexistent column for an
INSERT DELAYEDstatement caused a server crash rather than producing an error. (Bug#32676)An issue with the
NO_ENGINE_SUBSTITUTIONsql_modedatabase can cause the creation of stored routines to fail. If you are having problems with creating stored routines while using thissql_modevalue, remove this value from yoursql_modesetting. (Bug#32633)Use of
CLIENT_MULTI_QUERIEScausedlibmysqldto crash. (Bug#32624)The
INTERVAL()function incorrectly handledNULLvalues in the value list. (Bug#32560)Use of a
NULL-returningGROUP BYexpression in conjunction withWITH ROLLUPcould cause a server crash. (Bug#32558)See also Bug#31095.
ORDER BY UpdateXML(...)caused the server to crash in queries whereUpdateXML()returnedNULL. (Bug#32557)A
SELECT ... GROUP BYquery failed with an assertion if the length of thebit_columnBITcolumn used for theGROUP BYwas not an integer multiple of 8. (Bug#32556)Using
SELECT INTO OUTFILEwith 8-bitENCLOSED BYcharacters led to corrupted data when the data was reloaded using LOAD DATA INFILE. This was becauseSELECT INTO OUTFILEfailed to escape the 8-bit characters. (Bug#32533)For
FLUSH TABLES WITH READ LOCK, the server failed to properly detect write-locked tables when running with low-priority updates, resulting in a crash or deadlock. (Bug#32528)The rules for valid column names were being applied differently for base tables and views. (Bug#32496)
A query of the form
SELECT @crashed the server. (Bug#32482)user_variable:=constantASaliasFROMtableGROUP BYaliasWITH ROLLUPSending several
KILL QUERYstatements to target a connection runningSELECT SLEEP()could freeze the server. (Bug#32436)ssl-ciphervalues in option files were not being read bylibmysqlclient. (Bug#32429)Repeated execution of a query containing a
CASEexpression and numerousANDandORrelations could crash the server. The root cause of the issue was determined to be that the internalSEL_ARGstructure was not properly initialized when created. (Bug#32403)Referencing within a subquery an alias used in the
SELECTlist of the outer query was incorrectly permitted. (Bug#32400)If a global read lock acquired with
FLUSH TABLES WITH READ LOCKwas in effect, executingALTER TABLEcould cause a server crash. (Bug#32395)An
ORDER BYquery on a view created using aFEDERATEDtable as a base table caused the server to crash. (Bug#32374)Comparison of a
BIGINT NOT NULLcolumn with a constant arithmetic expression that evaluated to NULL mistakenly caused the error Column '...' cannot be null (error 1048). (Bug#32335)Assigning a 65,536-byte string to a
TEXTcolumn (which can hold a maximum of 65,535 bytes) resulted in truncation without a warning. Now a truncation warning is generated. (Bug#32282)The
LAST_DAY()function returns aDATEvalue, but internally the value did not have the time fields zeroed and calculations involving the value could return incorrect results. (Bug#32270)MIN()andMAX()could return incorrect results when an index was present if a loose index scan was used. (Bug#32268)Some uses of user variables in a query could result in a server crash. (Bug#32260)
Memory corruption could occur due to large index map in
Range checked for each recordstatus reported byEXPLAIN SELECT. The problem was based in an incorrectly calculated length of the buffer used to store a hexadecimal representation of an index map, which could result in buffer overrun and stack corruption under some circumstances. (Bug#32241)Various test program cleanups were made: 1) mytest and
libmysqltestwere removed. 2) bug25714 displays an error message when invoked with incorrect arguments or the--helpoption. 3) mysql_client_test exits cleanly with a proper error status. (Bug#32221)The default grant tables on Windows contained information for host
production.mysql.com, which should not be there. (Bug#32219)Under certain conditions, the presence of a
GROUP BYclause could cause anORDER BYclause to be ignored. (Bug#32202)For comparisons of the form
date_col OP datetime_const(whereOPis=,<,>,<=, or>=), the comparison is done usingDATETIMEvalues, per the fix for Bug#27590. However that fix caused any index ondate_colnot to be used and compromised performance. Now the index is used again. (Bug#32198)DATETIMEarguments specified in numeric form were treated byDATE_ADD()asDATEvalues. (Bug#32180)Killing a statement could lead to a race condition in the server. (Bug#32148)
InnoDBdoes not supportSPATIALindexes, but could crash when asked to handle one. Now an error is returned. (Bug#32125)The server crashed on optimizations involving a join of
INTandMEDIUMINTcolumns and a system variable in theWHEREclause. (Bug#32103)mysql-test-run.pl used the
--useroption when starting mysqld, which produces warnings if the current user is notroot. Now--useris added only forroot. (Bug#32078)mysqlslap was missing from the MySQL 5.1.22 Linux RPM packages. (Bug#32077)
With
lower_case_table_namesset,CREATE TABLE LIKEwas treated differently bylibmysqldthan by the nonembedded server. (Bug#32063)Within a subquery,
UNIONwas handled differently than at the top level, which could result in incorrect results or a server crash. (Bug#32036, Bug#32051)On 64-bit platforms, assignments of values to enumeration-valued storage engine-specific system variables were not validated and could result in unexpected values. (Bug#32034)
A
DELETEstatement with a subquery in theWHEREclause would sometimes ignore an error during subquery evaluation and proceed with the delete operation. (Bug#32030)Using dates in the range
'0000-00-01'to'0000-00-99'range in theWHEREclause could result in an incorrect result set. (These dates are not in the supported range forDATE, but different results for a given query could occur depending on position of records containing the dates within a table.) (Bug#32021)User-defined functions are not loaded if the server is started with the
--skip-grant-tablesoption, but the server did not properly handle this case and issued an Out of memory error message instead. (Bug#32020)If a user-defined function was used in a
SELECTstatement, and an error occurred during UDF initialization, the error did not terminate execution of theSELECT, but rather was converted to a warning. (Bug#32007)HOUR(),MINUTE(), andSECOND()could return nonzero values forDATEarguments. (Bug#31990)Changing the SQL mode to cause dates with “zero” parts to be considered invalid (such as
'1000-00-00') could result in indexed and nonindexed searches returning different results for a column that contained such dates. (Bug#31928)The server used unnecessarily large amounts of memory when user variables were used as an argument to
CONCAT()orCONCAT_WS(). (Bug#31898)In debug builds, testing the result of an
INsubquery againstNULLcaused an assertion failure. (Bug#31884)mysql-test-run.pl sometimes set up test scenarios in which the same port number was passed to multiple servers, causing one of them to be unable to start. (Bug#31880)
SHOW CREATE TRIGGERcaused a server crash. (Bug#31866)The server crashed after insertion of a negative value into an
AUTO_INCREMENTcolumn of anInnoDBtable. (Bug#31860)For
libmysqldapplications, handling ofmysql_change_user()calls left some pointers improperly updated, leading to server crashes. (Bug#31850)Using
ORDER BYled to the wrong result when using theARCHIVEon a table with aBLOBwhen the table cache was full. The table could also be reported as crashed after the query had completed, even though the table data was intact. (Bug#31833)Comparison results for
BETWEENwere different from those for operators like<and>forDATETIME-like values with trailing extra characters such as'2007-10-01 00:00:00 GMT-6'.BETWEENtreated the values asDATETIME, whereas the other operators performed a binary-string comparison. Now they all uniformly use aDATETIMEcomparison, but generate warnings for values with trailing garbage. (Bug#31800)Name resolution for correlated subqueries and
HAVINGclauses failed to distinguish which of two was being performed when there was a reference to an outer aliased field. This could result in error messages about aHAVINGclause for queries that had no such clause. (Bug#31797)The server could crash during
filesortforORDER BYbased on expressions withINET_NTOA()orOCT()if those functions returnedNULL. (Bug#31758)For tables with certain definitions,
UPDATEstatements could fail to find the correct record to update and report an error when the record did in fact exist. (Bug#31747)For a fatal error during a filesort in
find_all_keys(), the error was returned without the necessary handler uninitialization, causing an assertion failure. (Bug#31742)mysqlslap failed to commit after the final record load. (Bug#31704)
The examined-rows count was not incremented for
constqueries. (Bug#31700)The server crashed if a thread was killed while locking the
general_logtable at the beginning of statement processing. (Bug#31692)The
mysql_change_user()C API function was subject to buffer overflow. (Bug#31669)For
SELECT ... INTO OUTFILE, if theENCLOSED BYstring is empty and theFIELDS TERMINATED BYstring started with a special character (one ofn,t,r,b,0,Z, orN), every occurrence of the character within field values would be duplicated. (Bug#31663)SHOW COLUMNSandDESCRIBEdisplayednullas the column type for a view with no valid definer. This caused mysqldump to produce a nonreloadable dump file for the view. (Bug#31662)The mysqlbug script did not include the correct values of
CFLAGSandCXXFLAGSthat were used to configure the distribution. (Bug#31644)Queries that include a comparison of an
INFORMATION_SCHEMAtable column toNULLcaused a server crash. (Bug#31633)EXPLAIN EXTENDEDforSELECTfromINFORMATION_SCHEMAtables caused an assertion failure. (Bug#31630)ucs2does not work as a client character set, but attempts to use it as such were not rejected. Nowcharacter_set_clientcannot be set toucs2. This also affects statements such asSET NAMESandSET CHARACTER SET. (Bug#31615)A buffer used when setting variables was not dimensioned to accommodate the trailing
'\0'byte, so a single-byte buffer overrun was possible. (Bug#31588)HAVINGcould treat lettercase of table aliases incorrectly iflower_case_table_nameswas enabled. (Bug#31562)Spurious duplicate-key errors could occur for multiple-row inserts into an
InnoDBtable that activate a trigger. (Bug#31540)Using
ALTER EVENTto rename a disabled event caused it to become enabled. (Bug#31539)The fix for Bug#24989 introduced a problem such that a
NULLthread handler could be used during a rollback operation. This problem is unlikely to be seen in practice. (Bug#31517)The length of the result from
IFNULL()could be calculated incorrectly because the sign of the result was not taken into account. (Bug#31471)Queries that used the
refaccess method or index-based subquery execution over indexes that haveDECIMALcolumns could fail with an errorColumn. (Bug#31450)col_namecannot be nullInnoDBnow tracks locking and use of tables by MySQL only after a table has been successfully locked on behalf of a transaction. Previously, the locked flag was set and the table in-use counter was updated before checking whether the lock on the table succeeded. A subsequent failure in obtaining a lock on the table led to an inconsistent state as the table was neither locked nor in use. (Bug#31444)SELECT 1 REGEX NULLcaused an assertion failure for debug servers. (Bug#31440)The
UpdateXML()function did not check for the validity of all its arguments; in some cases, this could lead to a crash of the server. (Bug#31438)The
mysql_change_user()C API function caused advisory locks (obtained withGET_LOCK()) to malfunction. (Bug#31418)NDB libraries and include files were missing from some binary tar file distributions. (Bug#31414)
Executing
RENAMEwhile tables were open for use withHANDLERstatements could cause a server crash. (Bug#31409)mysql-test-run.pl tried to create files in a directory where it could not be expected to have write permission. mysqltest created
.rejectfiles in a directory other than the one where test results go. (Bug#31398)For a table that had been opened with
HANDLERand marked for reopening after being closed withFLUSH TABLES,DROP TABLEdid not properly discard the handler. (Bug#31397)Automatically allocated memory for string options associated with a plugin was not freed if the plugin did not get installed. (Bug#31382)
INFORMATION_SCHEMA.TABLESwas returning incorrect information. (Bug#31381)For
InnoDBtables withREAD COMMITTEDisolation level, semi-consistent reads used forUPDATEstatements skipped rows locked by another transaction, rather than waiting for the locks to be released. Consequently, rows that possibly should have been updated were never examined. (Bug#31310)For an almost-full
MyISAMtable, an insert that failed could leave the table in a corrupt state. (Bug#31305)myisamchk --unpack could corrupt a table that when unpacked has static (fixed-length) row format. (Bug#31277)
CONVERT(would fail on invalid input, but processing was not aborted for theval, DATETIME)WHEREclause, leading to a server crash. (Bug#31253)Allocation of an insufficiently large group-by buffer following creation of a temporary table could lead to a server crash. (Bug#31249)
Use of
DECIMAL(inn,n) ZEROFILLGROUP_CONCAT()could cause a server crash. (Bug#31227)When a
TIMESTAMPwith a nonzero time part was converted to aDATEvalue, no warning was generated. This caused index lookups to assume that this is a valid conversion and was returning rows that match a comparison between aTIMESTAMPvalue and aDATEkeypart. Now a warning is generated so thatTIMESTAMPwith a nonzero time part will not matchDATEvalues. (Bug#31221)Server variables could not be set to their current values on Linux platforms. (Bug#31177)
See also Bug#6958.
WIth small values of
myisam_sort_buffer_size,REPAIR TABLEforMyISAMtables could cause a server crash. (Bug#31174)If
MAKETIME()returnedNULLwhen used in anORDER BYthat was evaluated usingfilesort, a server crash could result. (Bug#31160)Data in
BLOBorGEOMETRYcolumns could be cropped when performing aUNIONquery. (Bug#31158)LAST_INSERT_ID()execution could be handled improperly in subqueries. (Bug#31157)An assertion designed to detect a bug in the
ROLLUPimplementation would incorrectly be triggered when used in a subquery context with noncacheable statements. (Bug#31156)Selecting spatial types in a
UNIONcould cause a server crash. (Bug#31155)Use of
GROUP_CONCAT(DISTINCTcaused an assertion failure. (Bug#31154)bit_column)The server crashed in the parser when running out of memory. Memory handling in the parser has been improved to gracefully return an error when out-of-memory conditions occur in the parser. (Bug#31153)
MySQL declares a
UNIQUEkey as aPRIMARYkey if it doesn't haveNULLcolumns and is not a partial key, and thePRIMARYkey must alway be the first key. However, in some cases, a nonfirst key could be reported asPRIMARY, leading to an assert failure byInnoDB. This is fixed by correcting the key sort order. (Bug#31137)mysqldump failed to handle databases containing a ‘
-’ character in the name. (Bug#31113)Starting the server using
--read-onlyand with the Event Scheduler enabled caused it to crash.Note
This issue occurred only when the server had been built with certain nonstandard combinations of configure options.
GROUP BY NULL WITH ROLLUPcould cause a server crash. (Bug#31095)See also Bug#32558.
A rule to prefer
filesortover an indexedORDER BYwhen accessing all rows of a table was being used even if aLIMITclause was present. (Bug#31094)REGEXPoperations could cause a server crash for character sets such asucs2. Now the arguments are converted toutf8if possible, to allow correct results to be produced if the resulting strings contain only 8-bit characters. (Bug#31081)Expressions of the form
WHERE, where the same column was named both times, could cause a server crash in the optimizer. (Bug#31075)colNOT IN (col, ...)Internal conversion routines could fail for several multi-byte character sets (
big5,cp932,euckr,gb2312,sjis) for empty strings or during evaluation ofSOUNDS LIKE. (Bug#31069, Bug#31070)Many nested subqueries in a single query could led to excessive memory consumption and possibly a crash of the server. (Bug#31048)
Using
ORDER BYwithARCHIVEtables caused a server crash. (Bug#31036)A server crash could occur when a non-
DETERMINISTICstored function was used in aGROUP BYclause. (Bug#31035)The
MOD()function and the%operator crashed the server for a divisor less than 1 with a very long fractional part. (Bug#31019)Transactions were committed prematurely when
LOCK TABLEandSET autocommit = 0were used together. (Bug#30996)On Windows, the
pthread_mutex_trylock()implementation was incorrect. (Bug#30992)A character set introducer followed by a hexadecimal or bit-value literal did not check its argument and could return an ill-formed result for invalid input. (Bug#30986)
CHAR(did not check its argument and could return an ill-formed result for invalid input. (Bug#30982)strUSINGcharset)The result from
CHAR() did not add a leading 0x00 byte for input strings with an odd number of bytes. (Bug#30981)strUSING ucs2The
GeomFromText()function could cause a server crash if the first argument wasNULLor the empty string. (Bug#30955)MAKEDATE()incorrectly moved year values in the 100–200 range into the 1970–2069 range. (This is legitimate for 00–99, but three-digit years should be used unchanged.) (Bug#30951)When invoked with constant arguments,
STR_TO_DATE()could use a cached value for the format string and return incorrect results. (Bug#30942)GROUP_CONCAT()returned','rather than an empty string when the argument column contained only empty strings. (Bug#30897)For
MEMORYtables, lookups forNULLvalues inBTREEindexes could return incorrect results. (Bug#30885)A server crash could occur if a stored function that contained a
DROP TEMPORARY TABLEstatement was invoked by aCREATE TEMPORARY TABLEstatement that created a table of the same name. (Bug#30882)Calling
NAME_CONST()with nonconstant arguments triggered an assertion failure. Nonconstant arguments are now disallowed. (Bug#30832)For a spatial column with a regular (non-
SPATIAL) index, queries failed if the optimizer tried to use the index. (Bug#30825)Values for the
--tc-heuristic-recoveroption incorrectly were treated as values for the--myisam-stats-methodoption. (Bug#30821)INFORMATION_SCHEMA.SCHEMATAwas returning incorrect information. (Bug#30795)The optimizer incorrectly optimized conditions out of the
WHEREclause in some queries involving subqueries and indexed columns. (Bug#30788)Improper calculation of
CASEexpression results could lead to value truncation. (Bug#30782)On Windows, the
pthread_mutex_trylock()implementation was incorrect. One symptom was that invalidating the query cache could cause a server crash. (Bug#30768)A multiple-table
UPDATEinvolving transactional and nontransactional tables caused an assertion failure. (Bug#30763)User-supplied names foreign key names might not be set to the right key, leading to foreign keys with no name. (Bug#30747)
Under some circumstances,
CREATE TABLE ... SELECTcould crash the server or incorrectly report that the table row size was too large. (Bug#30736)Using the
MIN()orMAX()function to select one part of a multi-part key could cause a crash when the function result wasNULL. (Bug#30715)The embedded server did not properly check column-level privileges. (Bug#30710)
INFORMATION_SCHEMA.VIEWS.VIEW_DEFINITIONwas incorrect for views that were defined to select from otherINFORMATION_SCHEMAtables. (Bug#30689)Issuing an
ALTER SERVERstatement to update the settings for aFEDERATEDserver would cause the mysqld to crash. (Bug#30671)The optimizer could ignore
ORDER BYin cases when the result set is ordered byfilesort, resulting in rows being returned in incorrect order. (Bug#30666)A different execution plan was displayed for
EXPLAINthan would actually have been used for theSELECTbecause the test of sort keys forORDER BYdid not consider keys mentioned inIGNORE KEYS FOR ORDER BY. (Bug#30665)The
thread_handlingsystem variable was treated as having aSESSIONvalue and as being settable at runtime. Now it has only aGLOBALread-only value. (Bug#30651)On Windows,
LIMITarguments greater than 232 did not work correctly. (Bug#30639)MyISAMtables could not exceed 4294967295 (232 – 1) rows on Windows. (Bug#30638)A failed
HANDLER ... READoperation could leave the table in a locked state. (Bug#30632)mysql-test-run.pl could not run mysqld with
rootprivileges. (Bug#30630)The mysqld_safe script contained a syntax error. (Bug#30624)
The optimization that uses a unique index to remove
GROUP BYdid not ensure that the index was actually used, thus violating theORDER BYthat is implied byGROUP BY. (Bug#30596)SHOW STATUS LIKE 'Ssl_cipher_list'from a MySQL client connected via SSL returned an empty string rather than a list of available ciphers. (Bug#30593)For
MEMORYtables,DELETEstatements that remove rows based on an index read could fail to remove all matching rows. (Bug#30590)Using
GROUP BYon an expression of the formcaused a server crash due to incorrect calculation of number of decimals. (Bug#30587)timestamp_colDIVnumberExecuting a
SELECT COUNT(*)query on anInnoDBtable partitioned byKEYthat used aDOUBLEcolumn as the partitioning key caused the server to crash. (Bug#30583)The options available to the
CHECK TABLEstatement were also allowed inOPTIMIZE TABLEandANALYZE TABLEstatements, but caused corruption during their execution. These options were never supported for these statements, and an error is now raised if you try to apply these options to these statements. (Bug#30495)A self-referencing trigger on a partitioned table caused the server to crash instead of failing with an error. (Bug#30484)
The
mysql_change_user()C API function did not correctly reset the character set variables to the values they had just after initially connecting. (Bug#30472)When expanding a
*in aUSINGorNATURALjoin, the check for table access for both tables in the join was done using only the grant information of the first table. (Bug#30468)When casting a string value to an integer, cases where the input string contained a decimal point and was long enough to overrun the
unsigned long longtype were not handled correctly. The position of the decimal point was not taken into account which resulted in miscalculated numbers and incorrect truncation to appropriate SQL data type limits. (Bug#30453)Versions of mysqldump from MySQL 4.1 or higher tried to use
START TRANSACTION WITH CONSISTENT SNAPSHOTif the--single-transactionand--master-dataoptions were given, even with servers older than 4.1 that do not support consistent snapshots. (Bug#30444)With
libmysqld, use of prepared statements and the query cache at the same time caused problems. (Bug#30430)Issuing a
DELETEstatement having both anORDER BYclause and aLIMITclause could cause mysqld to crash. (Bug#30385)For
CREATE ... SELECT ... FROM, where the resulting table contained indexes, addingSQL_BUFFER_RESULTto theSELECTpart caused index corruption in the table. (Bug#30384)The
Last_query_coststatus variable value can be computed accurately only for simple “flat” queries, not complex queries such as those with subqueries orUNION. However, the value was not consistently being set to 0 for complex queries. (Bug#30377)The optimizer made incorrect assumptions about the value of the
is_membervalue for user-defined functions, sometimes resulting in incorrect ordering of UDF results. (Bug#30355)Queries that had a
GROUP BYclause and selectedCOUNT(DISTINCTreturned incorrect results. (Bug#30324)bit_column)Some valid
euc-krcharacters having the second byte in the ranges[0x41..0x5A]and[0x61..0x7A]were rejected. (Bug#30315)When loading a dynamic plugin on FreeBSD, the plugin would fail to load. This was due to a build error where the required symbols would be not exported correctly. (Bug#30296)
Simultaneous
ALTER TABLEstatements forBLACKHOLEtables caused 100% CPU use due to locking problems. (Bug#30294)Setting certain values on a table using a spatial index could cause the server to crash. (Bug#30286)
Tables with a
GEOMETRYcolumn could be marked as corrupt if you added a non-SPATIALindex on aGEOMETRYcolumn. (Bug#30284)Flushing a merge table between the time it was opened and its child table were actually attached caused the server to crash. (Bug#30273)
This regression was introduced by Bug#26379.
The query cache does not support retrieval of statements for which column level access control applies, but the server was still caching such statements, thus wasting memory. (Bug#30269)
Using
DISTINCTorGROUP BYon aBITcolumn in aSELECTstatement caused the column to be cast internally as an integer, with incorrect results being returned from the query. (Bug#30245)GROUP BYonBITcolumns produced incorrect results. (Bug#30219)Short-format mysql commands embedded within
/*! ... */comments were parsed incorrectly by mysql, which discarded the rest of the comment including the terminating*/characters. The result was a malformed (unclosed) comment. Now mysql does not discard the*/characters. (Bug#30164)If the server crashed during an
ALTER TABLEstatement, leaving a temporary file in the database directory, a subsequentDROP DATABASEstatement failed due to the presence of the temporary file. (Bug#30152)When mysqldump wrote
DROP DATABASEstatements within version-specific comments, it included the terminating semicolon in the wrong place, causing following statements to fail when the dump file was reloaded. (Bug#30126)It was not possible for client applications to distinguish between auto-set and auto-updated
TIMESTAMPcolumn values.To rectify this problem, a new
ON_UPDATE_NOW_FLAGflag is set by Field_timestamp constructors whenever a column should be set toNOWonUPDATE, and theget_schema_column_record()function now reports whether a timestamp column is set toNOWonUPDATE. In addition, such columns now displayon update CURRENT_TIMESTAMPin theExtracolumn in the output fromSHOW COLUMNS. (Bug#30081)Some
INFORMATION_SCHEMAtables are intended for internal use, but could be accessed by usingSHOWstatements. (Bug#30079)On some 64-bit systems, inserting the largest negative value into a
BIGINTcolumn resulted in incorrect data. (Bug#30069)mysqlslap did not properly handle multiple result sets from stored procedures. (Bug#29985)
Specifying the
--without-geometryoption for configure caused server compilation to fail. (Bug#29972)Statements within stored procedures ignored the value of the
low_priority_updatessystem variable. (Bug#29963)See also Bug#26162.
With auto-reconnect enabled, row fetching for a prepared statement could crash after reconnect occurred because loss of the statement handler was not accounted for. (Bug#29948)
mysqldump
--skip-events--all-databasesdumped data from themysqld.eventtable, and when restoring from this dump, events were created in spite of the--skip-eventsoption. (Bug#29938)When mysqlslap was given a query to execute from a file via a
--query=option, it executed the query one too many times. (Bug#29803)file_nameconfigure did not find
nsson some Linux platforms. (Bug#29658)It was possible when creating a partitioned table using
CREATE TABLE ... SELECTto refer in thePARTITION BYclause to columns in the table being selected from, which could cause the server to crash. An example of such a statement is:CREATE TABLE t1 (b INT) PARTITION BY RANGE(t2.b) ( PARTITION p1 VALUES LESS THAN (10), PARTITION p2 VALUES LESS THAN (20) ) SELECT * FROM t2;The fix is to disallow references in
PARTITION BYclauses to columns not in the table being created. (Bug#29444)If a view used a function in its
SELECTstatement, the columns from the view were not inserted into theINFORMATION_SCHEMA.COLUMNStable. (Bug#29408)The mysql client program now ignores Unicode byte order mark (BOM) characters at the beginning of input files. Previously, it read them and sent them to the server, resulting in a syntax error.
Presence of a BOM does not cause mysql to change its default character set. To do that, invoke mysql with an option such as
--default-character-set=utf8. (Bug#29323)For transactional tables, an error during a multiple-table
DELETEstatement did not roll back the statement. (Bug#29136)The
logandlog_slow_queriessystem variables were displayed bySHOW VARIABLESbut could not be accessed in expressions as@@logand@@log_slow_queries. Also, attempting to set them withSETproduced an incorrectUnknown system variablemessage. Now these variables are treated as synonyms forgeneral_logandslow_query_log, which means that they can be accessed in expressions and their values can be changed withSET. (Bug#29131)Denormalized double-precision numbers cannot be handled properly by old MIPS pocessors. For IRIX, this is now handled by enabling a mode to use a software workaround. (Bug#29085)
SHOW VARIABLESdid not display therelay_log,relay_log_index, orrelay_log_info_filesystem variables. (Bug#28893)When doing a
DELETEon a table that involved aJOINwithMyISAMorMERGEtables and theJOINreferred to the same table, the operation could fail reportingERROR 1030 (HY000): Got error 134 from storage engine. This was because scans on the table contents would change because of rows that had already been deleted. (Bug#28837)Killing an SSL connection on platforms where MySQL is compiled with
-DSIGNAL_WITH_VIO_CLOSE(Windows, Mac OS X, and some others) could crash the server. (Bug#28812)SHOW VARIABLESdid not correctly display the value of thethread_handlingsystem variable. (Bug#28785)On Windows, mysql_upgrade created temporary files in
C:\and did not clean them up. (Bug#28774)Index hints specified in view definitions were ignored when using the view to select from the base table. (Bug#28702)
Views do not have indexes, so index hints do not apply. Use of index hints when selecting from a view is now disallowed. (Bug#28701)
After changing the SQL mode to a restrictive value that would make already-inserted dates in a column be considered invalid, searches returned different results depending on whether the column was indexed. (Bug#28687)
When running the MySQL Instance Configuration Wizard, a race condition could exist that would fail to connect to a newly configured instance. This was because mysqld had not completed the startup process before the next stage of the installation process. (Bug#28628)
A
SELECTin one connection could be blocked byINSERT ... ON DUPLICATE KEY UPDATEin another connection even whenlow_priority_updatesis set. (Bug#28587)mysql_upgrade could run binaries dynamically linked against incorrect versions of shared libraries. (Bug#28560)
The result from
CHAR()was incorrectly assumed in some contexts to return a single-byte result. (Bug#28550)mysqldump reversed the event name and program name in one of its error messages. (Bug#28535)
The parser confused user-defined function (UDF) and stored function creation for
CREATE FUNCTIONand required that there be a default database when creating UDFs, although there is no such requirement. (Bug#28318, Bug#29816)Fast-mutex locking was not thread-safe and optimization-safe on some platforms, which could cause program failures such as out-of-memory errors. (Bug#28284)
The result of a comparison between
VARBINARYandBINARYcolumns differed depending on whether theVARBINARYcolumn was indexed. (Bug#28076)The metadata in some
MYSQL_FIELDmembers could be incorrect when a temporary table was used to evaluate a query. (Bug#27990)Partition pruning was not used for queries having
<=or>=conditions in theWHEREclause on a table usingTO_DAYS()in the partitioning expression. (Bug#27927)mysqlbinlog produced incorrectly formatted
DATETIMEandTIMESTAMPvalues. (Bug#27894)Failure to log to the
general_logorslow_loglog tables were not logged to the error log at all or were logged incorrectly. (Bug#27858)An
ORDER BYat the end of aUNIONaffected individualSELECTstatements rather than the overall query result. (Bug#27848)comp_err created files with permissions such that they might be inaccessible during make install operations. (Bug#27789)
SHOW COLUMNSreturnedNULLinstead of the empty string for theDefaultvalue of columns that had no default specified. (Bug#27747)With recent versions of DBD::mysql, mysqlhotcopy generated table names that were doubly qualified with the database name. (Bug#27694)
The anonymous accounts were not being created during MySQL installation. (Bug#27692)
Some
SHOWstatements andINFORMATION_SCHEMAqueries could expose information not allowed by the user's access privileges. (Bug#27629)ALTER TABLEdid not cause the table to be rebuilt. (Bug#27610)tbl_nameROW_FORMAT=format_typeA race condition between killing a statement and the thread executing the statement could lead to a situation such that the binary log contained an event indicating that the statement was killed, whereas the statement actually executed to completion. (Bug#27571)
Some character mappings in the
ascii.xmlfile were incorrect.As a result of this bug fix, indexes must be rebuilt for columns that use the
ascii_general_cicollation for columns that contain any of these characters:'`','[','\',']','~'. See Section 2.12.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#27562)Some queries using the
NAME_CONST()function failed to return either a result or an error to the client, causing it to hang. This was due to the fact that there was no check to insure that both arguments to this function were constant expressions. (Bug#27545, Bug#32559)With the
read_onlysystem variable enabled,CREATE DATABASEandDROP DATABASEwere allowed to users who did not have theSUPERprivilege. (Bug#27440)For an event with an
ON COMPLETIONvalue ofPRESERVE, anALTER EVENTstatement that specified noON COMPLETIONoption caused the value to becomeNOT PRESERVE. (Bug#27407)MySQL failed to generate or retrieve an
AUTO_INCREMENTprimary key forInnoDBtables with user-defined partitioning. (Bug#27405)Changes to the
sql_modesystem variable were not tracked byINSERT DELAYED. (Bug#27358)A
SELECTwith more than 31 nested dependent subqueries returned an incorrect result. (Bug#27352)The
ExtractValue()andUpdateXML()functions performed extremely slowly for large amounts of XML data (greater than 64 KB). These functions now execute approximately 2000 times faster than previously. (Bug#27287)On Windows, writes to the debug log were using
freopen()instead offflush(), resulting in slower performance. (Bug#27099)For a table that used different full-text parsers for different
FULLTEXTindexes,SHOW CREATE TABLEdisplayed the first parser name for all of them. (Bug#27040)STR_TO_DATE()displayed an error message that referred toSTR_TO_TIME(). (Bug#27014)The
mysql_insert_id()C API function sometimes returned different results forlibmysqldandlibmysqlclient. (Bug#26921)Symbolic links on Windows could fail to work. (Bug#26811)
mysqld sometimes miscalculated the number of digits required when storing a floating-point number in a
CHARcolumn. This caused the value to be truncated, or (when using a debug build) caused the server to crash. (Bug#26788)See also Bug#12860.
LOAD DATA INFILEran very slowly when reading large files into partitioned tables. (Bug#26527)It makes no sense to attempt to use
ALTER TABLE ... ORDER BYto order anInnoDBtable if there is a user-defined clustered index, because rows are always ordered by the clustered index. Such attempts now are ignored and produce a warning.Also, in some cases,
InnoDBincorrectly used a secondary index when the clustered index would produce a faster scan.EXPLAINoutput now indicates use of the clustered index (for tables that have one) as lines with atypevalue ofindex, akeyvalue ofPRIMARY, and withoutUsing indexin theExtravalue. (Bug#26447)See also Bug#35850.
Using
HANDLERto open a table having a storage engine not supported byHANDLERproperly returned an error, but also improperly prevented the table from being dropped by other connections. (Bug#25856)For a prepared statement
stmt, changing the default database followingPREPAREbut beforestmtEXECUTEcausedstmtstmtto be recorded incorrectly in the binary log. (Bug#25843)CREATE TABLE LIKEdid not work when the source table was anINFORMATION_SCHEMAtable. (Bug#25629)Threads that were calculating the estimated number of records for a range scan did not respond to the
KILLstatement. That is, if arangejoin type is possible (even if not selected by the optimizer as a join type of choice and thus not shown byEXPLAIN), the query in thestatisticsstate (shown by theSHOW PROCESSLIST) did not respond to theKILLstatement. (Bug#25421)For
InnoDBtables,CREATE TABLE a AS SELECT * FROM Awould fail. (Bug#25164)For mysql --show-warnings, warnings were in some cases not displayed. (Bug#25146)
The
returnscolumn of themysql.proctable wasCHAR(64), which is not long enough to store long data types such asENUMtypes. The column has been changed toLONGBLOBand a warning is generated if truncation occurs when storing a row into theproctable. (Bug#24923)If the expected precision of an arithmetic expression exceeded the maximum precision supported by MySQL, the precision of the result was reduced by an unpredictable or arbitrary amount, rather than to the maximum precision. In some cases, exceeding the maximum supported precision could also lead to a crash of the server. (Bug#24907)
For Vista installs, MySQLInstanceConfig.exe did not add the default MySQL port to the firewall exceptions. It now provides a checkbox that enables the user a choice of whether to do this. (Bug#24853)
A
CREATE TRIGGERstatement could cause a deadlock or server crash if it referred to a table for which a table lock had been acquired withLOCK TABLES. (Bug#23713)For storage engines that do not redefine
handler::index_next_same()and are capable of indexes, statements that include aWHEREclause might select incorrect data. (Bug#22351)The parser treated the
INTERVAL()function incorrectly, leading to situations where syntax errors could result depending on which side of an arithmetic operator the function appeared. (Bug#22312)Entries in the general query log were truncated at 1000 characters. (Bug#21557)
A memory leak occurred when
CREATE TEMPORARY TABLE .. SELECTwas invoked from a stored function that in turn was called fromCREATE TABLE ... SELECT. (Bug#21136)It was possible to execute
CREATE TABLE t1 ... SELECT ... FROM t2with theCREATEprivilege fort1andSELECTprivilege fort2, even in the absence of theINSERTprivilege fort1. (Bug#20901)Worked around an icc problem with an incorrect machine instruction being generated in the context of software pre-fetching after a subroutine got in-lined. (Upgrading to icc 10.0.026 makes the workaround unnecessary.) (Bug#20803)
If a column selected by a view referred to a stored function, the data type reported for the column in
INFORMATION_SCHEMA.COLUMNScould be incorrect. (Bug#20550)The
mysql_change_user()C API function changed the value of thesql_big_selectssession variable. (Bug#20023)See also Bug#40363.
Host names sometimes were treated as case sensitive in account-management statements (
CREATE USER,GRANT,REVOKE, and so forth). (Bug#19828)Issuing an SQL
KILLof the active connection caused an error on Mac OS X. (Bug#19723)The
readlinelibrary has been updated to version 5.2. This addresses issues in the mysql client where history and editing within the client would fail to work as expected. (Bug#18431)The
-lmtmalloclibrary was removed from the output of mysql_config on Solaris, as it caused problems when buildingDBD::mysql(and possibly other applications) on that platform that tried to use dlopen() to access the client library. (Bug#18322)MySQLInstanceConfig.exe failed to grant certain privileges to the
'root'@'%'account. (Bug#17303)The
Aborted_clientsstatus variable was incremented twice if a client exited without callingmysql_close(). (Bug#16918)Use of
GRANTstatements with grant tables from an old version of MySQL could cause a server crash. (Bug#16470)Clients were ignoring the TCP/IP port number specified as the default port via the --with-tcp-port configuration option. (Bug#15327)
Parameters of type
DATETIMEorDATEin stored procedures were silently converted toVARBINARY. (Bug#13675)Zero-padding of exponent values was not the same across platforms. (Bug#12860)
Values of types
REAL ZEROFILL,DOUBLE ZEROFILL,FLOAT ZEROFILL, were not zero-filled when converted to a character representation in the C prepared statement API. (Bug#11589)mysql stripped comments from statements sent to the server. Now the
--commentsor--skip-commentsoption can be used to control whether to retain or strip comments. The default is--skip-comments. (Bug#11230, Bug#26215)Several buffer-size system variables were either being handled incorrectly for large values (for settings larger than 4GB, they were truncated to values less than 4GB without a warning), or were limited unnecessarily to 4GB even on 64-bit systems. The following changes were made:
For
key_buffer_size, values larger than 4GB are allowed on 64-bit platforms.For
join_buffer_size,sort_buffer_size, andmyisam_sort_buffer_size, values larger than 4GB are allowed on 64-bit platforms (except Windows, for which large values are truncated to 4GB with a warning).
In addition, settings for
read_buffer_sizeandread_rnd_buffer_sizeare limited to 2GB on all platforms. Larger values are truncated to 2GB with a warning. (Bug#5731, Bug#29419, Bug#29446)Executing
DISABLE KEYSandENABLE KEYSon a nonempty table would cause the size of the index file for the table to grow considerable. This was because theDISABLE KEYSoperation would only mark the existing index, without deleting the index blocks. TheENABLE KEYSoperation would re-create the index, adding new blocks, while the previous index blocks would remain. Existing indexes are now dropped and recreated when theENABLE KEYSstatement is executed. (Bug#4692)Grant table checks failed in
libmysqld.
Functionality added or changed:
There is a new
innodb_autoinc_lock_modesystem variable to configure the locking behavior thatInnoDBuses for generating auto-increment values. The default behavior now is slightly different from before, which involves a minor incompatibility for multiple-row inserts that specify an explicit value for the auto-increment column in some but not all rows. See Section 13.6.4.3, “AUTO_INCREMENTHandling inInnoDB”.
Bugs fixed:
MySQL Cluster: Replication: (Replication): Multi-master replication setups did not handle
--log-slave-updatescorrectly. (Bug#30017)MySQL Cluster: Backups of
TIMESTAMPcolumns made with ndb_restore on a MySQL Cluster using data nodes hosts of one endian could not be used to restore the cluster's data to data node hosts of the other endian. (Bug#30134)Replication: Row-based replication from a pre-5.1.22 MySQL Server to a MySQL 5.1.22 was unstable due to an uninitialized variable. (Bug#31076)
Replication: Operations that used the time zone replicated the time zone only for successful operations, but did not replicate the time zone for errors that need to know it. (Bug#29536)
For an
InnoDBtable if aSELECTwas ordered by the primary key and also had aWHERE field = valueclause on a different field that was indexed, aDESCorder instruction would be ignored. (Bug#31001)mysql_install_db could fail to find its message file. (Bug#30678)
Memory corruption occurred for some queries with a top-level
ORoperation in theWHEREcondition if they contained equality predicates and other sargable predicates in disjunctive parts of the condition. (Bug#30396)CONNECTION_ID()always returned 0 for the embedded server (libmysqld). (Bug#30389)The server created temporary tables for filesort operations in the working directory, not in the directory specified by the
tmpdirsystem variable. (Bug#30287)Using
KILL QUERYorKILL CONNECTIONto kill aSELECTstatement caused a server crash if the query cache was enabled. (Bug#30201)mysqldump from the MySQL 5.1.21 distribution could not be used to create a dump from a MySQL 5.1.20 or older server. (Bug#30123)
Under some circumstances, a UDF initialization function could be passed incorrect argument lengths. (Bug#29804)
When using a combination of
HANDLER... READandDELETEon a table, MySQL continued to open new copies of the table every time, leading to an exhaustion of file descriptors. (Bug#29474)This regression was introduced by Bug#21587.
The
mysql_list_fields()C API function incorrectly setMYSQL_FIELD::decimalsfor some view columns. (Bug#29306)Tables using the
InnoDBstorage engine incrementedAUTO_INCREMENTvalues incorrectly withON DUPLICATE KEY UPDATE. (Bug#28781)Nonrange queries of the form
SELECT ... FROM ... WHEREsometimes were unnecessarily blocked waiting for a lock if another transaction was usingkeypart1=constant, ...,keypartN=constantORDER BY ... FOR UPDATESELECT ... FOR UPDATEon the same table. (Bug#28570)On Windows, symbols for yaSSL and taocrypt were missing from
mysqlclient.lib, resulting in unresolved symbol errors for clients linked against that library. (Bug#27861)Read lock requests that were blocked by a pending write lock request were not allowed to proceed if the statement requesting the write lock was killed. (Bug#21281)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
Note
Subsequent to release, it was discovered that on some platforms, mysql_install_db could fail to find its message file, resulting in error messages of the following form:
shell> mysql_install_db
Installing MySQL system tables...
070830 9:33:24 [ERROR] Can't find messagefile 'path/share/english/errmsg.sys'
070830 9:33:24 [ERROR] Aborting
To deal with this problem, specify a
--language option to specify the
proper path name to the language file directory. For example:
shell> mysql_install_db --language=/path/to/share/english/
This problem is corrected in MySQL 5.1.22.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: In MySQL 5.1.6, when log tables were implemented, the default log destination for the general query and slow query log was
TABLE. This default has been changed toFILE, which is compatible with MySQL 5.0, but incompatible with earlier releases of MySQL 5.1 from 5.1.6 to 5.1.20. If you are upgrading from MySQL 5.0 to 5.1.21 or higher, no logging option changes should be necessary. However, if you are upgrading from 5.1.6 through 5.1.20 to 5.1.21 or higher and were usingTABLElogging, use the--log-output=TABLEoption explicitly to preserve your server's table-logging behavior.A further fix for this issue was made in MySQL 5.1.23. (Bug#29993)
Incompatible Change: The
innodb_log_arch_dirsystem variable (which has been deprecated since MySQL 5.0.24) has been removed and should no longer be used.Incompatible Change: On Windows only, the mysqld-nt has been removed from this release and all future releases. The mysqld server now includes named-pipe support as standard, and you do not have to use the mysqld-nt version to enable named-pipe support.
Important Change: The default mysqld_safe logging behavior now is
--skip-syslograther than--syslog, which is compatible with the default behavior of writing an error log file for releases prior to 5.1.20.Replication: The SQL thread on a slave now is always allowed to enter
InnoDBeven if this would exceed the limit imposed by theinnodb_thread_concurrencysystem variable. In cases of high load on the slave server (wheninnodb_thread_concurrencyis reached), this change helps the slave stay more up to date with the master; in the previous behavior, the SQL thread was competing for resources with all client threads active on the slave server. (Bug#25078)Replication: Replication between master and slaves now supports different column numbers within a table on both master and slave. The rules for replication where the table definitions are different has also changed. This supercedes the functionality for replication from the master table to a slave table with more columns that was added in MySQL 5.1.12. For more information, see Section 16.3.1.5, “Replication with Differing Tables on Master and Slave”.
Several programs now accept
--debug-checkand--debug-infooptions: mysql, mysqladmin, mysqlbinlog, mysqlcheck, mysqldump, mysqlimport, mysqlshow, mysqlslap, mysqltest, mysql_upgrade. (Note: mysql, mysqladmin, mysqlcheck, mysqldump, mysqlimport, mysqlshow, and mysqltest already accepted--debug-info.)--debug-checkprints debugging information at program exit.--debug-infois similar but also prints memory and CPU usage statistics. This patch also corrects a problem for mysql that--debug-infodid not display statistics at exit time. (Bug#30127)The
--syslogoption that was introduced in 5.1.20 for mysqld_safe (to send error output tosyslog) did not work correctly: Error output was buffered and not logged immediately. This has been corrected. In addition, some feature changes were made:Important
The default mysqld_safe logging behavior now is
--skip-syslograther than--syslog, which is compatible with the default behavior of writing an error log file for releases prior to 5.1.20.A new option,
--syslog-tag=, modifies the default tags written by mysqld_safe and mysqld to syslog to betagmysqld_safe-andtagmysqld-rather than the default tags oftagmysqld_safeandmysqld.
Transaction support in the
FEDERATEDstorage engine has been disabled due to issues with multiple active transactions and sessions on the sameFEDERATEDtable. (Bug#29875)Previously, prepared statements processed using
PREPAREandEXECUTEwere not subject to caching in the query cache if they contained any?parameter markers. This limitation has been lifted. (Bug#29318)It is now possible to set
long_query_timein microseconds or to 0. Setting this value to 0 causes all queries to be recorded in the slow query log.Currently, fractional values can be used only when logging to files. We plan to provide this functionality for logging to tables when time-related data types are enhanced to support microsecond resolution. (Bug#25412)
INFORMATION_SCHEMAimplementation changes were made that optimize certain types of queries forINFORMATION_SCHEMAtables so that they execute more quickly. Section 7.2.20, “INFORMATION_SCHEMAOptimization”, provides guidelines on how to take advantage of these optimizations by writing queries that minimize the need for the server to access the file system to obtain the information contained inINFORMATION_SCHEMAtables. By writing queries that enable the server to avoid directory scans or opening table files, you will obtain better performance. (Bug#19588)Log table locking was redesigned, eliminating several lock-related problems:
Truncating
mysql.slow_login a stored procedure after use of a cursor caused the thread to lock.Flushing a log table resulted in unnecessary warnings.
The server would hang when performing concurrent
ALTER TABLEorTRUNCATE TABLEstatements against the log tables.Changing the value of the
general_logsystem variable while a global read lock was in place resulted in deadlock.
The changes provide better-defined interface characteristics. See Section 5.2.1, “Selecting General Query and Slow Query Log Output Destinations”. (Bug#17876, Bug#23044, Bug#25422, Bug#29129)
Added the
--commit,--detach,--post-system, and--pre-systemoptions for mysqlslap.A new option,
--syslog-tag=, modifies the default tags written by mysqld_safe and mysqld to syslog to betagmysqld_safe-andtagmysqld-rather than the default tags oftagmysqld_safeandmysqld.Two options relating to slow query logging have been added for mysqld.
--log-slow-slave-statementscauses slow statements executed by a replication slave to be written to the slow query log;min_examined_row_limitcan be used to cause queries which examine fewer than the stated number of rows not to be logged.
Bugs fixed:
Incompatible Change: Failure to consider collation when comparing space characters could result in incorrect index entry order, leading to incorrect comparisons, inability to find some index values, misordered index entries, misordered
ORDER BYresults, or tables thatCHECK TABLEreports as having corrupt indexes.As a result of this bug fix, indexes must be rebuilt for columns that use any of these character sets:
eucjpms,euc_kr,gb2312,latin7,macce,ujis. See Section 2.12.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#29461)Incompatible Change: Several issues were identified for stored programs (stored procedures and functions, triggers, and events) and views containing non-ASCII symbols. These issues involved conversion errors due to incomplete character set information when translating these objects to and from stored format, such as:
Parsing the original object definition so that it can be stored.
Compiling the stored definition into executable form when the object is invoked.
Retrieval of object definitions from
INFORMATION_SCHEMAtables.Displaying the object definition in
SHOWstatements. This issue also affected mysqldump, which usesSHOW.
The fix for the problems is to store character set information from the object creation context so that this information is available when the object needs to be used later. The context includes the client character set, the connection character set and collation, and the collation of the database with which the object is associated.
As a result of the patch, several tables have new columns:
In the
mysqldatabase, theprocandeventtables now have these columns:character_set_client,collation_connection,db_collation,body_utf8.In
INFORMATION_SCHEMA, theVIEWStable now has these columns:CHARACTER_SET_CLIENT,COLLATION_CONNECTION. TheROUTINES,TRIGGERS, andEVENTStables now have these columns:CHARACTER_SET_CLIENT,COLLATION_CONNECTION,DATABASE_COLLATION.
These columns store the session values of the
character_set_clientandcollation_connectionsystem variables, and the collation of the database with which the object is associated. The values are those in effect at object creation time. (The saved database collation is not the value of thecollation_databasesystem variable, which applies to the default database; the database that contains the object is not necessarily the default database.)Several
SHOWstatements now display additional columns corresponding to the new table columns. These statements are:SHOW CREATE EVENT,SHOW CREATE FUNCTION,SHOW CREATE PROCEDURE,SHOW CREATE VIEW,SHOW EVENTS,SHOW FUNCTION STATUS,SHOW PROCEDURE STATUS,SHOW TRIGGERS.A new statement,
SHOW CREATE TRIGGERis introduced and is used by mysqldump for producingCREATE TRIGGERstatements.Subsequent to the patch just described, it was discovered that the patch broke mysql_upgrade; this has been corrected.
Important
The fixes for the problems just describe affect all existing stored programs and views. (For example, you will see warnings about “no creation context.”) To avoid warnings from the server about the use of old definitions from any release prior to 5.1.21, you should dump stored programs and views with mysqldump after upgrading to 5.1.21, and then reload them to recreate them with new definitions. Invoke mysqldump with a
--default-character-setoption that names the non-ASCII character set that was used for the definitions when the objects were originally defined.(Bug#25221, Bug#21249, Bug#30027, Bug#16291, Bug#11986, Bug#25212, Bug#19443, Bug#30029)
MySQL Cluster: Replication: (Replication): Inconsistencies could occur between the master and the slave when replicating Disk Data tables. (Bug#19259, Bug#19227)
MySQL Cluster:
DELETE FROM, where thetableWHEREprimary_keyIN (value_list)value_listcontained more than one value, called from anAFTER DELETEtrigger on anNDBtable, caused mysqld to crash. (Bug#30337)MySQL Cluster: When restarting a data node, queries could hang during that node's start phase 5, and continue only after the node had entered phase 6. (Bug#29364)
MySQL Cluster: Replica redo logs were inconsistently handled during a system restart. (Bug#29354)
MySQL Cluster: When a node failed to respond to a
COPY_GCIsignal as part of a global checkpoint, the master node was killed instead of the node that actually failed. (Bug#29331)MySQL Cluster: An invalid comparison made during
REDOvalidation that could lead to an Error while reading REDO log condition. (Bug#29118)MySQL Cluster: The wrong data pages were sometimes invalidated following a global checkpoint. (Bug#29067)
MySQL Cluster: If at least 2 files were involved in
REDOinvalidation, then file 0 of page 0 was not updated and so pointed to an invalid part of the redo log. (Bug#29057)MySQL Cluster: If a storage engine has its own logging capability, then any statement using both this engine and some other engine not having its own logging could not be correctly logged, due to the fact that entries from one engine could be logged before entries from the other engine were. This did not generate any error messages when it occurred.
Now, if multiple storage engines are used in a statement and at least one of them has its own logging capability, then an error message is generated and the statement is not executed.
Note
Currently, the only storage engine to have its own logging capability is
NDBCLUSTER.MySQL Cluster: Warnings and errors generated by ndb_config
--config-file=were sent tofilestdout, rather than tostderr. (Bug#25941)MySQL Cluster: When a cluster backup was terminated using the
ABORT BACKUPcommand in the management client, a misleading error message Backup aborted by application: Permanent error: Internal error was returned. The error message returned in such cases now reads Backup aborted by user request. (Bug#21052)MySQL Cluster: Large file support did not work in AIX server binaries. (Bug#10776)
Replication: The thread ID was not reset properly after execution of
mysql_change_user(), which could cause replication failure when replicating temporary tables. (Bug#29734)Replication: Storage engine error conditions in row-based replication were not correctly reported to the user. (Bug#29570)
Replication:
INSERT DELAYEDstatements on a master server are replicated as non-DELAYEDinserts on slaves (which is normal, to preserve serialization), but the inserts on the slave did not use concurrent inserts. NowINSERT DELAYEDon a slave is converted to a concurrent insert when possible, and to a normal insert otherwise. (Bug#29152)Replication: An error that happened inside
INSERT,UPDATE, orDELETEstatements performed from within a stored function or trigger could cause inconsistency between master and slave servers. (Bug#27417)Replication: Slave servers could incorrectly interpret an out-of-memory error from the master and reconnect using the wrong binary log position. (Bug#24192)
Replication: Using the
READ COMMITTEDtransaction isolation level caused mixed and statement-based replication to fail. (Bug#23051)Disk Data: Performing Disk Data schema operations during a node restart could cause forced shutdowns of other data nodes. (Bug#29501)
Disk Data: When dropping a page, the stack's bottom entry could sometime be left “cold” rather than “hot”, violating the rules for stack pruning. (Bug#29176)
Disk Data: Disk data meta-information that existed in ndbd might not be visible to mysqld. (Bug#28720)
Disk Data: The number of free extents was incorrectly reported for some tablespaces. (Bug#28642)
Cluster Replication: When executing a statement where
binlog_format = statement, the result of the statement was logged both as a statement and as rows. (Bug#29222)Cluster Replication: mysqld would segfault on startup when the
NDBstorage engine was enabled and the default character set was a strictly multi-byte character set such as UCS2.This issue does not apply to character sets that can contain single-byte characters in addition to multi-byte characters such as UTF-8.
Additional issues remain with regard to the use of multi-byte character sets in MySQL Cluster Replication; see Known Issues in MySQL Cluster Replication, for more information. (Bug#27404)
Prepared statements containing
CONNECTION_ID()could be written improperly to the binary log. (Bug#30200)Use of local variables with non-ASCII names in stored procedures crashed the server. (Bug#30120)
On Windows, client libraries lacked symbols required for linking. (Bug#30118)
--myisam-recover=''(empty option value) did not disableMyISAMrecovery. (Bug#30088)For the
SHOW TABLE TYPESstatement, the server sent incorrect output to clients, possibly causing them to crash. (Bug#30036)The
IS_UPDATABLEcolumn in theINFORMATION_SCHEMA.VIEWStable was not always set correctly. (Bug#30020)SHOWstatements were being written to the slow query log that should not have been. (Bug#30000)REPAIR TABLE ... USE_FRMcould corrupt tables. (Bug#29980)For
MyISAMtables on Windows,INSERT,DELETE, orUPDATEfollowed byALTER TABLEwithinLOCK TABLEScould cause table corruption. (Bug#29957)LOCK TABLESdid not pre-lock tables used in triggers of the locked tables. Unexpected locking behavior and statement failures similar to failed: 1100: Table 'xx' was not locked with LOCK TABLES could result. (Bug#29929)INSERT ... VALUES(CONNECTION_ID(), ...)statements were written to the binary log in such a way that they could not be properly restored. (Bug#29928)Adding
DISTINCTcould cause incorrect rows to appear in a query result. (Bug#29911)On Windows, the CMake build process did not produce the embedded server library or related binaries. (Bug#29903)
Using the
DATE()function in aWHEREclause did not return any records after encounteringNULL. However, usingTRIMorCASTproduced the correct results. (Bug#29898)SESSION_USER()returned garbage data (rather than the correct value of the empty string) when executed by a slave SQL thread. (Bug#29878)Very long prepared statements in stored procedures could cause a server crash. (Bug#29856)
If query execution involved a temporary table,
GROUP_CONCAT()could return a result with an incorrect character set. (Bug#29850)If one thread was performing concurrent inserts, other threads reading from the same table using equality key searches could see the index values for new rows before the data values had been written, leading to reports of table corruption. (Bug#29838)
Repeatedly accessing a view in a stored procedure (for example, in a loop) caused a small amount of memory to be allocated per access. Although this memory is deallocated on disconnect, it could be a problem for a long running stored procedures that make repeated access of views. (Bug#29834)
mysqldump produced output that incorrectly discarded the
NO_AUTO_VALUE_ON_ZEROvalue of thesql_modevariable after dumping triggers. (Bug#29788)An assertion failure occurred within yaSSL for very long keys. (Bug#29784)
For
MEMORYtables, theindex_mergeunion access method could return incorrect results. (Bug#29740)Comparison of
TIMEvalues using theBETWEENoperator led to string comparison, producing incorrect results in some cases. Now the values are compared as integers. (Bug#29739)For a table with a
DATEcolumndate_colsuch that selecting rows withWHEREyielded a nonempty result, addingdate_col= 'date_val00:00:00'GROUP BYcaused the result to be empty. (Bug#29729)date_colIn some cases,
INSERT INTO ... SELECT ... GROUP BYcould insert rows even if theSELECTby itself produced an empty result. (Bug#29717)Single-row inserts could report a row count greater than one. (Bug#29692)
For the embedded server, the
mysql_stmt_store_result()C API function caused a memory leak for empty result sets. (Bug#29687)EXPLAINproducedImpossible wherefor statements of the formSELECT ... FROM t WHERE c=0, wherecwas anENUMcolumn defined as a primary key. (Bug#29661)On Windows,
ALTER TABLEhung if records were locked in share mode by a long-running transaction. (Bug#29644)mysqld_safe produced error messages and did not create the error log file under some circumstances. (Bug#29634)
On 64-bit platforms, the filesort code (for queries with
GROUP BYorORDER BY) could crash due to an incorrect pointer size. (Bug#29610)A left join between two views could produce incorrect results. (Bug#29604)
Certain statements with unions, subqueries, and joins could result in huge memory consumption. (Bug#29582)
Clients using SSL could hang the server. (Bug#29579)
A slave running with
--log-slave-updateswould fail to writeINSERT DELAY IGNOREstatements to its binary log, resulting in different binary log contents on the master and slave. (Bug#29571)An incorrect result was returned when comparing string values that were converted to
TIMEvalues withCAST(). (Bug#29555)gcov coverage-testing information was not written if the server crashed. (Bug#29543)
In the
asciicharacter set, conversion of DEL (0x7F) to Unicode incorrectly resulted in QUESTION MARK (0x3F) rather than DEL. (Bug#29499)A field packet with
NULLfields caused alibmysqlclientcrash. (Bug#29494)On Windows, the mysql client died if the user entered a statement and Return after entering Control-C. (Bug#29469)
The full-text parser could enter an infinite loop if it encountered an illegal multi-byte sequence or a sequence that has no mapping to Unicode. (Bug#29464)
Searching a
FULLTEXTindex for a word with the boolean mode truncation operator could cause an infinite loop. (Bug#29445)Corrupt data resulted from use of
SELECT ... INTO OUTFILE ', wherefile_name' FIELDS ENCLOSED BY 'c'cis a digit or minus sign, followed byLOAD DATA INFILE '. (Bug#29442)file_name' FIELDS ENCLOSED BY 'c'Killing an
INSERT DELAYEDthread caused a server crash. (Bug#29431)Use of
SHOW BINLOG EVENTSfor a nonexistent log file followed byPURGE BINARY LOGScaused a server crash. (Bug#29420)Assertion failure could occur for grouping queries that employed
DECIMALuser variables with assignments to them. (Bug#29417)For
CAST(, the limits of 65 and 30 on the precision (exprAS DECIMAL(M,D))M) and scale (D) were not enforced. (Bug#29415)Deleting from a
CSVtable could corrupt it. (Bug#29411)Results for a select query that aliases the column names against a view could duplicate one column while omitting another. This bug could occur for a query over a multiple-table view that includes an
ORDER BYclause in its definition. (Bug#29392)mysqldump created a stray file when a given a too-long file name argument. (Bug#29361)
The special “zero”
ENUMvalue was coerced to the normal empty stringENUMvalue during a column-to-column copy. This affectedCREATE ... SELECTstatements andSELECTstatements with aggregate functions onENUMcolumns in theGROUP BYclause. (Bug#29360)Inserting a negative number into a
CSVtable could corrupt it. (Bug#29353)Optimization of queries with
DETERMINISTICstored functions in theWHEREclause was ineffective: A sequential scan was always used. (Bug#29338)MyISAMcorruption could occur with thecp932_japanese_cicollation for thecp932character set due to incorrect comparison for trailing space. (Bug#29333)For updates to
InnoDBtables, aTIMESTAMPcolumn with theON UPDATE CURRENT_TIMESTAMPattribute could be updated even when no values actually changed. (Bug#29310)FULLTEXTindexes could be corrupted by certaingbkcharacters. (Bug#29299)SELECT ... INTO OUTFILEfollowed byLOAD DATAcould result in garbled characters when theFIELDS ENCLOSED BYclause named a delimiter of'0','b','n','r','t','N', or'Z'due to an interaction of character encoding and doubling for data values containing the enclosed-by character. (Bug#29294)Sort order of the collation wasn't used when comparing trailing spaces. This could lead to incorrect comparison results, incorrectly created indexes, or incorrect result set order for queries that include an
ORDER BYclause. (Bug#29261)CHECK TABLEcould erroneously report table corruption for aCSVtable if multiple threads were modifying the table at the same time. (Bug#29253)Many threads accessing a
CSVtable simultaneously could cause an assertion failure. (Bug#29252)If an
ENUMcolumn contained''as one of its members (represented with numeric value greater than 0), and the column contained error values (represented as 0 and displayed as''), usingALTER TABLEto modify the column definition caused the 0 values to be given the numeric value of the nonzero''member. (Bug#29251)Calling
mysql_options()aftermysql_real_connect()could cause clients to crash. (Bug#29247)CHECK TABLEforARCHIVEtables could falsely report table corruption or cause a server crash. (Bug#29207)Mixing binary and
utf8columns in a union caused field lengths to be calculated incorrectly, resulting in truncation. (Bug#29205)AsText()could fail with a buffer overrun. (Bug#29166)Under some circumstances, a
SELECT ... FROM mysql.eventcould cause the server to crash. (Bug#29156)InnoDBrefused to start on some versions of FreeBSD with LinuxThreads. This is fixed by enabling file locking on FreeBSD. (Bug#29155)LOCK TABLESwas not atomic when more than oneInnoDBtables were locked. (Bug#29154)A network structure was initialized incorrectly, leading to embedded server crashes. (Bug#29117)
An assertion failure occurred if a query contained a conjunctive predicate of the form
in theview_column= constantWHEREclause and theGROUP BYclause contained a reference to a different view column. The fix also enables application of an optimization that was being skipped if a query contained a conjunctive predicate of the formin theview_column= constantWHEREclause and theGROUP BYclause contained a reference to the same view column. (Bug#29104)A maximum of 4TB
InnoDBfree space was reported bySHOW TABLE STATUS,which is incorrect on systems with more than 4TB space. (Bug#29097)If an
INSERT INTO ... SELECTstatement inserted into the same table that theSELECTretrieved from, and theSELECTincludedORDER BYandLIMITclauses, different data was inserted than the data produced by theSELECTexecuted by itself. (Bug#29095)Queries that performed a lookup into a
BINARYindex containing key values ending with spaces caused an assertion failure for debug builds and incorrect results for nondebug builds. (Bug#29087)The semantics of
BIGINTdepended on platform-specific characteristics. (Bug#29079)A byte-order issue in writing a spatial index to disk caused bad index files on some systems. (Bug#29070)
Creation of a legal stored procedure could fail if no default database had been selected. (Bug#29050)
REPLACE,INSERT IGNORE, andUPDATE IGNOREdid not work forFEDERATEDtables. (Bug#29019)Inserting into
InnoDBtables and executingRESET MASTERin multiple threads cause assertion failure in debug server binaries. (Bug#28983)Updates to a
CSVtable could cause a server crash or update the table with incorrect values. (Bug#28971)For a
ucs2column,GROUP_CONCAT()did not convert separators to the result character set before inserting them, producing a result containing a mixture of two different character sets. (Bug#28925)Dropping the definer of an active event caused the server to crash. (Bug#28924)
For a join with
GROUP BYand/orORDER BYand a view reference in theFROMlist, the query metadata erroneously showed empty table aliases and database names for the view columns. (Bug#28898)Creating an event using
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL ...could in some cases cause mysqld to crash. (Bug#28881)Coercion of ASCII values to character sets that are a superset of ASCII sometimes was not done, resulting in illegal mix of collations errors. These cases now are resolved using repertoire, a new string expression attribute (see Section 9.1.8, “String Repertoire”). (Bug#28875)
Executing
ALTER EVENTon an event whose definer's event creation privileges had been revoked cause the server to crash. (Bug#28873)ALTER VIEWis not supported as a prepared statement but was not being rejected.ALTER VIEWis now prohibited as a prepared statement or when called within stored routines. (Bug#28846)In strict SQL mode, errors silently stopped the SQL thread even for errors named using the
--slave-skip-errorsoption. (Bug#28839)Fast
ALTER TABLE(that works without rebuilding the table) acquired duplicate locks in the storage engine. InMyISAM, ifALTER TABLEwas issued underLOCK TABLE, it caused all data inserted afterLOCK TABLEto disappear. (Bug#28838)Runtime changes to the
log_queries_not_using_indexessystem variable were ignored. (Bug#28808)Selecting a column not present in the selected-from table caused an extra error to be produced by
SHOW ERRORS. (Bug#28677)Creating an event to be executed at a time close to the end of the allowed range (2038-01-19 03:14:07 UTC) would cause the server to crash. (Bug#28641)
For a statement of the form
CREATE t1 SELECT, the server created the column using theinteger_constantDECIMALdata type for large negative values that are within the range ofBIGINT. (Bug#28625)Starting the server with an
innodb_force_recoveryvalue of 4 did not work. (Bug#28604)For
InnoDBtables, MySQL unnecessarily sorted records in certain cases when the records were retrieved byInnoDBin the proper order already. (Bug#28591)mysql_install_db could fail to find script files that it needs. (Bug#28585)
If a stored procedure was created and invoked prior to selecting a default database with
USE, a No database selected error occurred. (Bug#28551)On Mac OS X, shared-library installation path names were incorrect. (Bug#28544)
Using the
--skip-add-drop-tableoption with mysqldump generated incorrect SQL if the database included any views. The recreation of views requires the creation and removal of temporary tables. This option suppressed the removal of those temporary tables. The same applied to--compactsince this option also invokes--skip-add-drop-table. (Bug#28524)mysqlbinlog --hexdump generated incorrect output due to omission of the “
#” comment character for some comment lines. (Bug#28293)InnoDBcould crash if the server was shut down whileinnodb_table_monitorwas running. (Bug#28254)A race condition in the interaction between
MyISAMand the query cache code caused the query cache not to invalidate itself for concurrently inserted data. (Bug#28249)A duplicate-key error message could display an incorrect key value when not all columns of the key were used to select rows for update. (Bug#28158)
Indexing column prefixes in
InnoDBtables could cause table corruption. (Bug#28138)Index creation could fail due to truncation of key values to the maximum key length rather than to a mulitiple of the maximum character length. (Bug#28125)
Instance Manager had a race condition when it received a shutdown request while a guarded mysqld instance was starting such that it could fail to stop the mysqld instance. (Bug#28030)
SELECT ... FOR UPDATEwith partitioned tables could cause a server crash. (Bug#28026)On Windows, Instance Manager would crash if an instance object failed to initialize during startup. This could happen if an incorrect mysqld path was supplied in the configuration file. (Bug#28012)
The
LOCATE()function returnedNULLif any of its arguments evaluated toNULL. Likewise, the predicate,LOCATE(, erroneously evaluated tostr,NULL) IS NULLFALSE. (Bug#27932)Dropping a user-defined function could cause a server crash if the function was still in use by another thread. (Bug#27564)
For some event-creation problems, the server displayed messages that implied the problems were errors when they were only warnings. (Bug#27406)
Unsafe aliasing in the source caused a client library crash when compiled with gcc 4 at high optimization levels. (Bug#27383)
Index-based range reads could fail for comparisons that involved contraction characters (such as
chin Czech orllin Spanish). (Bug#27345)Aggregations in subqueries that refer to outer query columns were not always correctly referenced to the proper outer query. (Bug#27333)
Error returns from the
time()system call were ignored. (Bug#27198)Phantom reads could occur under
InnoDBSERIALIZABLEisolation level. (Bug#27197)The
SUBSTRING()function returned the entire string instead of an empty string when it was called from a stored procedure and when the length parameter was specified by a variable with the value “0”. (Bug#27130)Some functions when used in partitioning expressions could cause mysqld to crash. (Bug#27084)
The server acquired a global mutex for temporary tables, although such tables are thread-specific. This affected performance by blocking other threads. (Bug#27062)
FEDERATEDtables had an artificially low maximum of key length. (Bug#26909)Updates to rows in a partitioned table could update the wrong column. (Bug#26827)
Index creation could corrupt the table definition in the
.frmfile: 1) A table with the maximum number of key segments and maximum length key name would have a corrupted.frmfile, due to incorrect calculation of the total key length. 2)MyISAMwould reject a table with the maximum number of keys and the maximum number of key segments in all keys. (It would allow one less than this total maximum.) NowMyISAMaccepts a table defined with the maximum. (Bug#26642)The Windows implementation of
pthread_join()was incorrect and could cause crashes. (Bug#26564)After the first read of a
TEMPORARYtable,CHECK TABLEcould report the table as being corrupt. (Bug#26325)If an operation had an
InnoDBtable, and two triggers,AFTER UPDATEandAFTER INSERT, competing for different resources (such as two distinctMyISAMtables), the triggers were unable to execute concurrently. In addition,INSERTandUPDATEstatements for theInnoDBtable were unable to run concurrently. (Bug#26141)A number of unsupported constructs — including prohibited constructs, the
UCASE()function, and nested function calls — were permitted in partitioning expressions. (Bug#26082, Bug#18198, Bug#29308)ALTER DATABASEdid not require at least one option. (Bug#25859)The index merge union access algorithm could produce incorrect results with
InnoDBtables. The problem could also occur for queries that usedDISTINCT. (Bug#25798)When using a
FEDERATEDtable, the value ofLAST_INSERT_ID()would not correctly update the C API interface, which would affect the autogenerated ID returned both through the C API and the MySQL protocol, affecting Connectors that used the protocol and/or C API. (Bug#25714)The server was blocked from opening other tables while the
FEDERATEDengine was attempting to open a remote table. Now the server does not check the correctness of aFEDERATEDtable atCREATE TABLEtime, but waits until the table actually is accessed. (Bug#25679)Under ActiveState Perl,
mysql-test-run.plcould kill itself when attempting to kill other processes. (Bug#25657)Several
InnoDBassertion failures were corrected. (Bug#25645)A query with
DISTINCTin the select list to which the loose-scan optimization for grouping queries was applied returned an incorrect result set when the query was used with theSQL_BIG_RESULToption. (Bug#25602)For a multiple-row insert into a
FEDERATEDtable that refers to a remote transactional table, if the insert failed for a row due to constraint failure, the remote table would contain a partial commit (the rows preceding the failed one) instead of rolling back the statement completely. This occurred because the rows were treated as individual inserts.Now
FEDERATEDperforms bulk-insert handling such that multiple rows are sent to the remote table in a batch. This provides a performance improvement and enables the remote table to perform statement rollback properly should an error occur. This capability has the following limitations:The size of the insert cannot exceed the maximum packet size between servers. If the insert exceeds this size, it is broken into multiple packets and the rollback problem can occur.
Bulk-insert handling does not occur for
INSERT ... ON DUPLICATE KEY UPDATE.
The
FEDERATEDstorage engine failed silently forINSERT ... ON DUPLICATE KEY UPDATEif a duplicate key violation occurred.FEDERATEDdoes not supportON DUPLICATE KEY UPDATE, so now it correctly returns anER_DUP_KEYerror if a duplicate key violation occurs. (Bug#25511)In a stored function or trigger, when
InnoDBdetected deadlock, it attempted rollback and displayed an incorrect error message (Explicit or implicit commit is not allowed in stored function or trigger). NowInnoDBreturns an error under these conditions and does not attempt rollback. Rollback is handled outside ofInnoDBabove the function/trigger level. (Bug#24989)Dropping a temporary
InnoDBtable that had been locked withLOCK TABLEScaused a server crash. (Bug#24918)On Windows, executables did not include Vista manifests. (Bug#24732)
See also Bug#22563.
If MySQL/
InnoDBcrashed very quickly after starting up, it would not force a checkpoint. In this case,InnoDBwould skip crash recovery at next startup, and the database would become corrupt. Now, if the redo log scan atInnoDBstartup goes past the last checkpoint, crash recovery is forced. (Bug#23710)SHOW INNODB STATUScaused an assertion failure under high load. (Bug#22819)SHOW BINLOG EVENTSdisplayed incorrect values ofEnd_log_posfor events associated with transactional storage engines. (Bug#22540)When determining which transaction to kill after deadlock has been detected,
InnoDBnow adds the number of locks to a transaction's weight, and avoids killing transactions that mave modified nontransactional tables. This should reduce the likelihood of killing long-running transactions containingSELECT ... FOR UPDATEorINSERT/REPLACE INTO ... SELECTstatements, and of causing partial updates if the target is aMyISAMtable. (Bug#21293)InnoDBdisplayed an incorrect error message when aCREATE TABLEstatement exceeded theInnoDBmaximum allowable row size. (Bug#21101)Under heavy load with a large query cache, invalidating part of the cache could cause the server to freeze (that is, to be unable to service other operations until the invalidation was complete). (Bug#21074)
On Windows, the server used 10MB of memory for each connection thread, resulting in memory exhaustion. Now each thread uses 1MB. (Bug#20815)
InnoDBproduced an unnecessary (and harmless) warning:. (Bug#20090)InnoDB: Error: trying to declare trx to enterInnoDB, butInnoDB: it already is declaredIf a slave timed out while registering with the master to which it was connecting, auto-reconnect failed thereafter. (Bug#19328)
If
InnoDBreached its limit on the number of concurrent transactions (1023), it wrote a descriptive message to the error log but returned a misleading error message to the client, or an assertion failure occurred. (Bug#18828)Under ActiveState Perl,
mysql-test-run.plwould not run. (Bug#18415)The server crashed when the size of an
ARCHIVEtable grew larger than 2GB. (Bug#15787)SQL_BIG_RESULThad no effect forCREATE TABLE ... SELECT SQL_BIG_RESULT ...statements. (Bug#15130)On 64-bit Windows systems, the Config Wizard failed to complete the setup because 64-bit Windows does not resolve dynamic linking of the 64-bit
libmysql.dllto a 32-bit application like the Config Wizard. (Bug#14649)mysql_setpermission tried to grant global-only privileges at the database level. (Bug#14618)
For the general query log, logging of prepared statements executed via the C API differed from logging of prepared statements performed with
PREPAREandEXECUTE. Logging for the latter was missing thePrepareandExecutelines. (Bug#13326)The
TABLE_COMMENTcolumn ofINFORMATION_SCHEMA.TABLESand theCommentcolumn in the output ofSHOW TABLE STATUSdisplayed extraneous information forInnoDBandNDBCLUSTERtables. (Bug#11379)See also Bug#32440.
The server returned data from
SHOW CREATE TABLEstatement or aSELECTstatement on anINFORMATION_SCHEMAtable using thebinarycharacter set. (Bug#10491)Backup software can cause
ERROR_SHARING_VIOLATIONorERROR_LOCK_VIOLATIONconditions during file operations.InnoDBnow retries forever until the condition goes away. (Bug#9709)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: It is no longer possible to partition the log tables. (Bug#27816)
Incompatible Change: mysqld_safe now supports error logging to
syslogon systems that support the logger command. The new--syslogand--skip-syslogoptions can be used instead of the--log-erroroption to control logging behavior, as described in Section 4.3.2, “mysqld_safe — MySQL Server Startup Script”. The default is to usesyslog, which differs from the previous default behavior of writing an error log file.Currently, logging to
syslogmay fail to operate correctly in some cases; if so, use--skip-syslogor--log-error. To maintain the older behavior if you were using no error-logging option, use--skip-syslog. If you were using--log-error, continue to use it.Note: In 5.1.21, the default is changed to
--skip-syslog, which is compatible with releases prior to 5.1.20. (Bug#4858)Important Change: MySQL Cluster: The
TimeBetweenWatchdogCheckInitialconfiguration parameter was added to allow setting of a separate watchdog timeout for memory allocation during startup of the data nodes. See Defining MySQL Cluster Data Nodes, for more information. (Bug#28899)MySQL Cluster: The cluster management client now stores command history between sessions. (Bug#29073)
MySQL Cluster:
auto_increment_incrementandauto_increment_offsetare now supported forNDBtables. (Bug#26342)MySQL Cluster: The server source tree now includes scripts to simplify building MySQL with SCI support. For more information about SCI interconnects and these build scripts, see Configuring MySQL Cluster to use SCI Sockets. (Bug#25470)
MySQL Cluster: A new configuration parameter
ODirectcausesNDBto attempt usingO_DIRECTwrites for LCP, backups, and redo logs, often lowering CPU usage.Replication: The
sql_mode,foreign_key_checks,unique_checks, character set/collations, andsql_auto_is_nullsession variables are written to the binary log and honored during replication. See Section 5.2.4, “The Binary Log”.If a
MERGEtable cannot be opened or used because of a problem with an underlying table,CHECK TABLEnow displays information about which table caused the problem. (Bug#26976)User variables and stored procedure variables are now supported for use in XPath expressions employed as arguments to the
ExtractValue()andUpdateXML()functions.This means that:
XPath can now be used to load data from XML files using virtually any format, and so able to import data from most third party software which either has XML export functionality, or uses XML natively as a storage format.
Various complex conditions can be put on rows and columns, so one can filter for desired rows (or skip unwanted rows) when loading XML.
Various types of preprocessing using SQL functions are now possible when loading XML. For example, you can concatenate two XML tag or attribute values into a single column value using
CONCAT(), or remove some parts of the data usingREPLACE().
See Section 11.10, “XML Functions”, for more information. (Bug#26518)
Binary distributions for some platforms did not include shared libraries; now shared libraries are shipped for all platforms except AIX 5.2 64-bit. Exception: The library for the
libmysqldembedded server is not shared except on Windows. (Bug#16520, Bug#26767, Bug#13450)Added a new
PAD_CHAR_TO_FULL_LENGTHSQL mode. By default, trailing spaces are trimmed fromCHARcolumn values on retrieval. IfPAD_CHAR_TO_FULL_LENGTHis enabled, trimming does not occur and retrievedCHARvalues are padded to their full length. This mode does not apply toVARCHARcolumns, for which trailing spaces are retained on retrieval.XPath can now be used to load data from XML files using virtually any format, and so able to import data from most third party software which either has XML export functionality, or uses XML natively as a storage format.
Various complex conditions can be put on rows and columns, so one can filter for desired rows (or skip unwanted rows) when loading XML.
Various types of preprocessing using SQL functions are now possible when loading XML. For example, you can concatenate two XML tag or attribute values into a single column value using
CONCAT(), or remove some parts of the data usingREPLACE().
Bugs fixed:
Security Fix: A malformed password packet in the connection protocol could cause the server to crash. Thanks for Dormando for reporting this bug, and for providing details and a proof of concept. (Bug#28984, CVE-2007-3780)
Security Fix:
CREATE TABLE LIKEdid not require any privileges on the source table. Now it requires theSELECTprivilege.In addition,
CREATE TABLE LIKEwas not isolated from alteration by other connections, which resulted in various errors and incorrect binary log order when trying to execute concurrently aCREATE TABLE LIKEstatement and either DDL statements on the source table or DML or DDL statements on the target table. (Bug#23667, Bug#25578, CVE-2007-3781)Incompatible Change: Some error codes had error numbers in MySQL 5.1 different from the numbers in MySQL 5.0. In MySQL 5.1, error numbers have been changed to match the MySQL 5.0 values: Error codes with value of 1458 or higher have changed in MySQL 5.1 now. Client applications designed to work with MySQL 5.1 with hard-coded error code values (for example, in statements such as
if (mysql_errno(mysql) == 1463) { ... }) need to be updated in the source code. All clients designed to work with MySQL 5.1 that test error codes (for example, in statements such asif (mysql_errno(mysql) == ER_VIEW_RECURSIVE) { ... }) should be recompiled. Existing 5.0 clients should now work, without changes or recompilation, against servers for MySQL 5.1.20 or higher. (Bug#29245)Incompatible Change: When mysqldump was run with the
--delete-master-logsoption, binary log files were deleted before it was known that the dump had succeeded, not after. (The method for removing log files usedRESET MASTERprior to the dump. This also reset the binary log sequence numbering to.000001.) Now mysqldump flushes the logs (which creates a new binary log number with the next sequence number), performs the dump, and then usesPURGE BINARY LOGSto remove the log files older than the new one. This also preserves log numbering because the new log with the next number is generated and only the preceding logs are removed. However, this may affect applications if they rely on the log numbering sequence being reset. (Bug#24733)Incompatible Change: The use of an
ORDER BYorDISTINCTclause with a query containing a call to theGROUP_CONCAT()function caused results from previous queries to be redisplayed in the current result. The fix for this includes replacing aBLOBvalue used internally for sorting with aVARCHAR. This means that for long results (more than 65,535 bytes), it is possible for truncation to occur; if so, an appropriate warning is issued. (Bug#23856, Bug#28273)MySQL Cluster: Replication: (Replication): A replicated unique key allowed duplicate key inserts on the slave. (Bug#27044)
MySQL Cluster: Memory corruption could occur due to a problem in the
DBTUPkernel block. (Bug#29229)MySQL Cluster: A query having a large
IN(...)orNOT IN(...)list in theWHEREcondition on anNDBtable could cause mysqld to crash. (Bug#29185)MySQL Cluster: In the event that two data nodes in the same node group and participating in a GCP crashed before they had written their respective
P0.sysfilefiles,QMGRcould refuse to start, issuing an invalid Insufficient nodes for restart error instead. (Bug#29167)MySQL Cluster: Attempting to restore a
NULLrow to aVARBINARYcolumn caused ndb_restore to fail. (Bug#29103)MySQL Cluster: ndb_error_reporter now preserves timestamps on files. (Bug#29074)
MySQL Cluster: It is now possible to set the maximum size of the allocation unit for table memory using the
MaxAllocateconfiguration parameter. (Bug#29044)MySQL Cluster: When shutting down mysqld, the
NDBbinlog process was not shut down before log cleanup began. (Bug#28949)MySQL Cluster: ndb_mgm could hang when connecting to a nonexistent host. (Bug#28847)
MySQL Cluster: A regression in the heartbeat monitoring code could lead to node failure under high load. This issue affected MySQL 5.1.19 and MySQL Cluster NDB 6.1.10 only. (Bug#28783)
MySQL Cluster: A corrupt schema file could cause a File already open error. (Bug#28770)
MySQL Cluster: Having large amounts of memory locked caused swapping to disk. (Bug#28751)
MySQL Cluster: Setting
InitialNoOpenFilesequal toMaxNoOfOpenFilescaused an error. This was due to the fact that the actual value ofMaxNoOfOpenFilesas used by the cluster was offset by 1 from the value set inconfig.ini. (Bug#28749)MySQL Cluster: LCP files were not removed following an initial system restart. (Bug#28726)
MySQL Cluster:
UPDATE IGNOREstatements involving the primary keys of multiple tables could result in data corruption. (Bug#28719)MySQL Cluster: A race condition could result when nonmaster nodes (in addition to the master node) tried to update active status due to a local checkpoint (that is, between
NODE_FAILREPandCOPY_GCIREQevents). Now only the master updates the active status. (Bug#28717)MySQL Cluster: A fast global checkpoint under high load with high usage of the redo buffer caused data nodes to fail. (Bug#28653)
MySQL Cluster: The management client's response to
START BACKUP WAIT COMPLETEDdid not include the backup ID. (Bug#27640)Cluster Replication: Replication: When replicating
MyISAMorInnoDBtables to a MySQL Cluster, it was not possible to determine exactly what had been applied following a shutdown of the slave cluster or mysqld process. (Bug#26783)Replication:
DROP USERstatements that named multiple users, only some of which could be dropped, were replicated incorrectly. (Bug#29030)Replication: Using events in replication could cause the slave to crash. (Bug#28953)
Replication: It was possible to set
SQL_SLAVE_SKIP_COUNTERsuch that the slave would jump into the middle of an event group. (Bug#28618)See also Bug#12691.
Replication: The result of executing of a prepared statement created with
PREPARE s FROM "SELECT 1 LIMIT ?"was not replicated correctly. (Bug#28464)Replication: Recreating a view that already exists on the master would cause a replicating slave to terminate replication with a 'different error message on slave and master' error. (Bug#28244)
Replication: Binary logging of prepared statements could produce syntactically incorrect queries in the binary log, replacing some parameters with variable names rather than variable values. This could lead to incorrect results on replication slaves. (Bug#26842, Bug#12826)
Replication: Connections from one mysqld server to another failed on Mac OS X, affecting replication and
FEDERATEDtables. (Bug#26664)See also Bug#29083.
Replication: When using transactions and replication, shutting down the master in the middle of a transaction would cause all slaves to stop replicating. (Bug#22725)
Replication: Using
CREATE TABLE LIKE ...would raise an assertion when replicated to a slave. (Bug#18950)Disk Data: When loading data into a cluster following a version upgrade, the data nodes could forcibly shut down due to page and buffer management failures (that is,
ndbrequirefailures inPGMAN). (Bug#28525)Disk Data: Repeated
INSERTandDELETEoperations on a Disk Data table having one or more largeVARCHARcolumns could cause data nodes to fail. (Bug#20612)Cluster API: The timeout set using the MGM API
ndb_mgm_set_timeout()function was incorrectly interpreted as seconds rather than as milliseconds. (Bug#29063)Cluster API: An invalid error code could be set on transaction objects by
BLOBhandling code. (Bug#28724)The
TRUNCATEstatement was handled differently by the server when row-based logging was in effect, even though the binlogging format in effect does not effect the fact thatTRUNCATEis always logged as a statement. (Bug#29130)If one of the queries in a
UNIONused theSQL_CACHEoption and another query in theUNIONcontained a nondeterministic function, the result was still cached. For example, this query was incorrectly cached:SELECT NOW() FROM t1 UNION SELECT SQL_CACHE 1 FROM t1;
Long path names for internal temporary tables could cause stack overflows. (Bug#29015)
Using an
INTEGERcolumn from a table toROUND()a number produced different results than using a constant with the same value as theINTEGERcolumn. (Bug#28980)If a program binds a given number of parameters to a prepared statement handle and then somehow changes
stmt->param_countto a different number,mysql_stmt_execute()could crash the client or server. (Bug#28934)Queries using UDFs or stored functions were cached. (Bug#28921)
INSERT .. ON DUPLICATE KEY UPDATEcould under some circumstances silently update rows when it should not have. (Bug#28904)Queries that used
UUID()were incorrectly allowed into the query cache. (This should not happen becauseUUID()is nondeterministic.) (Bug#28897)Using a
VIEWcreated with a nonexistingDEFINERcould lead to incorrect results under some circumstances. (Bug#28895)For
InnoDBtables that use theutf8character set, incorrect results could occur for DML statements such asDELETEorUPDATEthat use an index on character-based columns. (Bug#28878)See also Bug#29449, Bug#30485, Bug#31395.
This regression was introduced by Bug#13195.
Non-
utf8characters could get mangled when stored inCSVtables. (Bug#28862)On Windows,
USE_TLSwas not defined formysqlclient.lib. (Bug#28860)In MySQL 5.1.15, a new error code
ER_DUP_ENTRY_WITH_KEY_NAME(1582) was introduced to replaceER_DUP_ENTRY(1062) so that the key name could be provided instead of the key number. This was unnecessary, soER_DUP_ENTRYis used again and the key name is printed. The incompatibility introduced in 5.1.15 no longer applies. (Bug#28842)A subquery with
ORDER BYandLIMIT 1could cause a server crash. (Bug#28811)Running
SHOW TABLE STATUSwhile performing a high number of inserts on partitioned tables with a great many partitions could cause the server to crash. (Bug#28806)Using
BETWEENwith nonindexed date columns and short formats of the date string could return incorrect results. (Bug#28778)Selecting
GEOMETRYcolumns in aUNIONcaused a server crash. (Bug#28763)When constructing the path to the original
.frmfile,ALTER .. RENAMEwas unnecessarily (and incorrectly) lowercasing the entire path when not on a case-insensitive file system, causing the statement to fail. (Bug#28754)The
binlog_formatsystem variable value was empty if the server was started with binary logging disabled. Now it is set toMIXED. (Bug#28752)Searches on indexed and nonindexed
ENUMcolumns could return different results for empty strings. (Bug#28729)Executing
EXPLAIN EXTENDEDon a query using a derived table over a grouping subselect could lead to a server crash. This occurred only when materialization of the derived tables required creation of an auxiliary temporary table, an example being when a grouping operation was carried out with usage of a temporary table. (Bug#28728)The result of evaluation for a view's
CHECK OPTIONoption over an updated record and records of merged tables was arbitrary and dependant on the order of records in the merged tables during the execution of theSELECTstatement. (Bug#28716)The “manager thread” of the LinuxThreads implementation was unintentionally started before mysqld had dropped privileges (to run as an unprivileged user). This caused signaling between threads in mysqld to fail when the privileges were finally dropped. (Bug#28690)
Setting an interval of
EVERY 0 SECONDfor a scheduled event caused the server to crash. (Bug#28666)For debug builds,
ALTER TABLEcould trigger an assertion failure due to occurrence of a deadlock when committing changes. (Bug#28652)Attempting to create an index on a
BITcolumn failed after modifying the column. (Bug#28631)After an upgrade, the names of stored routines referenced by views were no longer displayed by
SHOW CREATE VIEW. (Bug#28605)This regression was introduced by Bug#23491.
Conversion of U+00A5 YEN SIGN and U+203E OVERLINE from
ucs2toujisproduced incorrect results. (Bug#28600)Killing from one connection a long-running
EXPLAIN QUERYstarted from another connection caused mysqld to crash. (Bug#28598)SHOW GLOBAL VARIABLESrepeated some variable names. (Bug#28580)When one thread attempts to lock two (or more) tables and another thread executes a statement that aborts these locks (such as
REPAIR TABLE,OPTIMIZE TABLE, orCHECK TABLE), the thread might get a table object with an incorrect lock type in the table cache. The result is table corruption or a server crash. (Bug#28574)Outer join queries with
ONconditions over constant outer tables did not returnNULL-complemented rows when conditions were evaluated toFALSE. (Bug#28571)An update on a multiple-table view with the
CHECK OPTIONclause and a subquery in theWHEREcondition could cause an assertion failure. (Bug#28561)Calling the
UpdateXML()function using invalid XPath syntax caused memory corruption possibly leading to a crash of the server. (Bug#28558)PURGE MASTER LOGS BEFORE (caused a server crash. Subqueries are forbidden in thesubquery)BEFOREclause now. (Bug#28553)mysqldump calculated the required memory for a hex-blob string incorrectly causing a buffer overrun. This in turn caused mysqldump to crash silently and produce incomplete output. (Bug#28522)
When upgrading from MySQL 5.1.17 to 5.1.18, mysql_upgrade and mysql_fix_privilege_tables did not upgrade the system tables relating to the Event Scheduler correctly. (Bug#28521)
Passing a
DECIMALvalue as a parameter of a statement prepared withPREPAREresulted in an error. (Bug#28509)mysql_affected_rows()could return an incorrect result forINSERT ... ON DUPLICATE KEY UPDATEif theCLIENT_FOUND_ROWSflag was set. (Bug#28505)A query that grouped by the result of an expression returned a different result when the expression was assigned to a user variable. (Bug#28494)
Subselects returning
LONGvalues in MySQL versions later than 5.0.24a returnedLONGLONGprior to this. The previous behavior was restored. (Bug#28492)This regression was introduced by Bug#19714.
Performing
ALTER TABLE ... ADD PARTITIONorALTER TABLE DROP PARTITIONcould result in inconsistent data, or cause the server to crash, if done concurrently with other accesses to the table. (Bug#28477, Bug#28488)Forcing the use of an index on a
SELECTquery when the index had been disabled would raise an error without running the query. The query now executes, with a warning generated noting that the use of a disabled index has been ignored. (Bug#28476)The query
SELECT '2007-01-01' + INTERVALcaused mysqld to fail. (Bug#28450)column_nameDAY FROMtable_nameA server crash could happen under rare conditions such that a temporary table outgrew heap memory reserved for it and the remaining disk space was not big enough to store the table as a
MyISAMtable. (Bug#28449)Using
ALTER TABLEto move columns resulted only in the columns being renamed. The table contents were not changed. (Bug#28427)The test case for mysqldump failed with
bin-logdisabled. (Bug#28372)Attempting to
LOAD_FILEfrom an empty floppy drive under Windows, caused the server to hang. For example, if you opened a connection to the server and then issued the command SELECT LOAD_FILE('a:test');, with no floppy in the drive, the server was inaccessible until the modal pop-up dialog box was dismissed. (Bug#28366)mysqltest used a too-large stack size on PPC/Debian Linux, causing thread-creation failure for tests that use many threads. (Bug#28333)
When using a
MEMORYtable on Mac OS X, dropping a table and than creating a table with the same name could cause the information of the deleted table to remain accessible, leading to index errors. (Bug#28309)The
IS_UPDATABLEcolumn in theINFORMATION_SCHEMA.VIEWStable was not always set correctly. (Bug#28266)For
CAST()of aNULLvalue with typeDECIMAL, the return value was incorrectly initialized, producing a runtime error for binaries built using Visual C++ 2005. (Bug#28250)When the query cache was fully used, issuing
RENAME DATABASEorRENAME SCHEMAcould cause the server to hang, with 100% CPU usage. (Bug#28211)The
Bytes_receivedandBytes_sentstatus variables could hold only 32-bit values (not 64-bit values) on some platforms. (Bug#28149)Some valid identifiers were not parsed correctly. (Bug#28127)
Storing a large number into a
FLOATorDOUBLEcolumn with a fixed length could result in incorrect truncation of the number if the column's length was greater than 31. (Bug#28121)Sending debugging information from a dump of the Event Scheduler to
COM_DEBUGcould cause the server to crash. (Bug#28075)The
PARTITION_COMMENTcolumn of theINFORMATION_SCHEMA.PARTITIONStable had the wrong default value. (Bug#28007)DECIMALvalues beginning with nine9digits could be incorrectly rounded. (Bug#27984)For attempts to open a nonexistent table, the server should report
ER_NO_SUCH_TABLEbut sometimes reportedER_TABLE_NOT_LOCKED. (Bug#27907)Following an invalid call to
UpdateXML(), calling the function again (even if valid) crashed the server. (Bug#27898)A stored program that uses a variable name containing multibyte characters could fail to execute. (Bug#27876)
The server made strong assumptions about the structure of the
general_logandslow_loglog tables: It supported only the table structure defined in themysqldatabase creation scripts. The server also allowed limitedALTER TABLEoperations on the log tables, but adding anAUTO_INCREMENTcolumn did not properly initialize the column, and subsequent inserts into the table could fail to generate correct sequence numbers. Now anALTER TABLEstatement that adds anAUTO_INCREMENTcolumn populates the column correctly. In addition, when the server writes a log table row, it will set columns not present in the original table structure to their default values. (Bug#27857)ONconditions fromJOINexpressions were ignored when checking theCHECK OPTIONclause while updating a multiple-table view that included such a clause. (Bug#27827)On some systems,
udf_example.creturned an incorrect result length. Also on some systems, mysql-test-run.pl could not find the shared object built fromudf_example.c. (Bug#27741)The modification of a table by a partially completed multi-column update was not recorded in the binlog, rather than being marked by an event and a corresponding error code. (Bug#27716)
SHOW ENGINESand queries onINFORMATION_SCHEMA.ENGINESdid not use the same values for representing the same storage engine states. (Bug#27684)HASHindexes onVARCHARcolumns with binary collations did not ignore trailing spaces from strings before comparisons. This could result in duplicate records being successfully inserted into aMEMORYtable with unique key constraints. A consequence was that internalMEMORYtables used forGROUP BYcalculation contained duplicate rows that resulted in duplicate-key errors when converting those temporary tables toMyISAM, and that error was incorrectly reported as atable is fullerror. (Bug#27643)An error occurred trying to connect to mysqld-debug.exe. (Bug#27597)
A stack overrun could occur when storing
DATETIMEvalues using repeated prepared statements. (Bug#27592)If a stored function or trigger was killed, it aborted but no error was thrown, allowing the calling statement to continue without noticing the problem. This could lead to incorrect results. (Bug#27563)
When
ALTER TABLEwas used to add a newDATEcolumn with no explicit default value,'0000-00-00'was used as the default even if the SQL mode included theNO_ZERO_DATEmode to prohibit that value. A similar problem occurred forDATETIMEcolumns. (Bug#27507)ALTER TABLE ... ENABLE KEYScould cause mysqld to crash when executed on a table containing on aMyISAMtable containing billions of rows. (Bug#27029)Binary content
0x00in aBLOBcolumn sometimes became0x5C 0x00following a dump and reload, which could cause problems with data using multi-byte character sets such asGBK(Chinese). This was due to a problem withSELECT INTO OUTFILEwherebyLOAD DATAlater incorrectly interpreted0x5Cas the second byte of a multi-byte sequence rather than as theSOLIDUS(“\”) character, used by MySQL as the escape character. (Bug#26711)The server crashed when attempting to open a table having a
#mysql50#prefix in the database or table name. The server now will not open such tables. (This prefix is reserved by mysql_upgrade for accessing 5.0 tables that have names not yet encoded for 5.1.) (Bug#26402)A
FLUSH TABLES WITH READ LOCKstatement followed by aFLUSH LOGSstatement caused a deadlock if the general log or the slow query log was enabled. (Bug#26380)The query
SELECT /*2*/ user, host, db, info FROM INFORMATION_SCHEMA.PROCESSLIST WHERE (command!='Daemon' || user='event_scheduler') AND (info IS NULL OR info NOT LIKE '%processlist%') ORDER BY INFOyielded inconsistent results. (Bug#26338)For a given user variable
@v, the statementsSELECT @vandCREATE TABLE ... AS SELECT @vdid not return the same data type. (Bug#26277)Statements within triggers ignored the value of the
low_priority_updatessystem variable. (Bug#26162)See also Bug#29963.
The embedded server library displayed error messages at startup if the
mysql.plugintable was not present. This no longer occurs. (Bug#25800)On Windows, an application that called
mysql_thread_init()but forgot to callmysql_thread_end()would get this error: Error in my_thread_global_end(). (Bug#25621)Embedded
/* ... */comments were handled incorrectly within the definitions of stored programs and views, resulting in malformed definitions (the trailing*/was stripped). This also affected binary log contents. (Bug#25411, Bug#26302)Due to a race condition, executing
FLUSH PRIVILEGESin one thread could cause brief table unavailability in other threads. (Bug#24988)In
SHOW SLAVE STATUSoutput,Last_ErrnoandLast_Errorwere not set aftermaster_retry_counterrors had occurred. To provide additional information, the statement now displays four additional columns:Last_IO_Errno: The number of the last error that caused the I/O thread to stopLast_IO_Error: A description of the last error that caused the I/O thread to stopLast_SQL_Errno: The number of the last error that caused the SQL thread to stopLast_SQL_Error: A description of the last error that caused the SQL thread to stop
Also,
Last_ErrnoandLast_Errornow are aliases forLast_SQL_ErrnoandLast_SQL_Error. (Bug#24954)A too-long
shared-memory-base-namevalue could cause a buffer overflow and crash the server or clients. (Bug#24924)When mysqld was run as a Windows service, shared memory objects were not created in the global namespace and could not be used by clients to connect. (Bug#24731)
On some Linux distributions where LinuxThreads and NPTL
glibcversions both are available, statically built binaries can crash because the linker defaults to LinuxThreads when linking statically, but calls to external libraries (such aslibnss) are resolved to NPTL versions. This cannot be worked around in the code, so instead if a crash occurs on such a binary/OS combination, print an error message that provides advice about how to fix the problem. (Bug#24611)A number of
SHOWstatements caused mysqld to crash on recent versions of Solaris. This issue is believed to be present only in MySQL 5.1.12 and later. (Bug#23810)The server deducted some bytes from the
key_cache_block_sizeoption value and reduced it to the next lower 512 byte boundary. The resulting block size was not a power of two. Setting thekey_cache_block_sizesystem variable to a value that is not a power of two resulted inMyISAMtable corruption. (Bug#23068, Bug#28478, Bug#25853)Conversion errors could occur when constructing the condition for an
INpredicate. The predicate was treated as if the affected column containsNULL, but if theINpredicate is insideNOT, incorrect results could be returned. (Bug#22855)Linux binaries were unable to dump core after executing a
setuid()call. (Bug#21723)Stack overflow caused server crashes. (Bug#21476)
The server was ignoring the return value of the
parse()function for full-text parser plugins. (Bug#18839)Granting access privileges to an individual table where the database or table name contained an underscore would fail. (Bug#18660)
The
-lmtmalloclibrary was removed from the output of mysql_config on Solaris, as it caused problems when buildingDBD::mysql(and possibly other applications) on that platform that tried to use dlopen() to access the client library. (Bug#18322)The check-cpu script failed to detect AMD64 Turion processors correctly. (Bug#17707)
When using mysqlbinlog with
--read-from-remote-serverto load the data direct from a remote MySQL server would cause a core dump when dumping certain binary log events. (Bug#17654)Trying to shut down the server following a failed
LOAD DATA INFILEcaused mysqld to crash. (Bug#17233)The omission of leading zeros in dates could lead to erroneous results when these were compared with the output of certain date and time functions. (Bug#16377)
Using up-arrow for command-line recall in mysql could cause a segmentation fault. (Bug#10218)
The result for
CAST()when casting a value toUNSIGNEDwas limited to the maximum signedBIGINTvalue (9223372036854775808), rather than the maximum unsigned value (18446744073709551615). (Bug#8663)The internal functions for table preparation, creation, and alteration were not re-execution friendly, causing problems in code that: repeatedly altered a table; repeatedly created and dropped a table; opened and closed a cursor on a table, altered the table, and then reopened the cursor; used
ALTER TABLEto change a table's currentAUTO_INCREMENTvalue; created indexes onutf8columns.Re-execution of
CREATE DATABASE,CREATE TABLE, andALTER TABLEstatements in stored routines or as prepared statements also caused incorrect results or crashes. (Bug#4968, Bug#6895, Bug#19182, Bug#19733, Bug#22060, Bug#24879)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change:
INSERT DELAYEDis now downgraded to a normalINSERTif the statement uses functions that access tables or triggers, or that is called from a function or a trigger.This was done to resolve the following interrelated issues:
The server could abort or deadlock for
INSERT DELAYEDstatements for which another insert was performed implicitly (for example, via a stored function that inserted a row).A trigger using an
INSERT DELAYEDcaused the error INSERT DELAYED can't be used with table ... because it is locked with LOCK TABLES although the target table was not actually locked.INSERT DELAYEDinto a table with aBEFORE INSERTorAFTER INSERTtrigger gave an incorrectNEWpseudocolumn value and caused the server to deadlock or abort.
MySQL Cluster: Formerly, restoring a cluster backup made on a MySQL 5.0 Cluster to a 5.1 cluster using a 5.1 version of ndb_restore did not resize
VARCHARcolumns as might be expected; now, the default behavior of ndb_restore in such cases is to resize theVARCHARcolumns. This changed default behavior can be overridden using the--no-upgrade(or-u) option when invoking ndb_restore. (Bug#22240)The
BLACKHOLEstorage engine now supportsINSERT DELAYED. Previously,INSERT DELAYEDstatements forBLACKHOLEtables were not supported, and caused the server to crash. (Bug#27998)A new status variable,
Com_call_procedure, indicates the number of calls to stored procedures. (Bug#27994)The
BLACKHOLEstorage engine now supportsLOCK TABLESandUNLOCK TABLES. (Bug#26241)The data type used for the
VARIABLE_VALUEcolumn of the followingINFORMATION_SCHEMAtables has been changed toVARCHAR:For more information, see Section 19.24, “The
INFORMATION_SCHEMA GLOBAL_STATUSandSESSION_STATUSTables”, and Section 19.25, “TheINFORMATION_SCHEMA GLOBAL_VARIABLESandSESSION_VARIABLESTables”.See also Bug#26994.
Bugs fixed:
Security Fix: UDFs are supposed to be loadable only from the plugin directory, but this restriction was not being enforced. (Bug#28341)
Security Fix: Use of a view could allow a user to gain update privileges for tables in other databases. (Bug#27878, CVE-2007-3782)
MySQL Cluster: When an API node sent more than 1024 signals in a single batch,
NDBwould process only the first 1024 of these, and then hang. (Bug#28443)MySQL Cluster: A delay in obtaining
AUTO_INCREMENTIDs could lead to excess temporary errors. (Bug#28410)MySQL Cluster: Local checkpoint files relating to dropped
NDBtables were not removed. (Bug#28348)MySQL Cluster: Multiple operations involving deletes followed by reads were not handled correctly.
Note
This issue could also affect MySQL Cluster Replication.
MySQL Cluster: Repeated insertion of data generated by mysqldump into
NDBtables could eventually lead to failure of the cluster. (Bug#27437)MySQL Cluster: Restarting a data node caused SQL nodes to log repeatedly and unnecessarily the status of the event buffer, causing a memory leak of approximately 4 MB for each mysqld process each time this occurred.
(This issue was known to occur in MySQL 5.1.16 and later only.) (Bug#27292)
MySQL Cluster: ndb_mgmd failed silently when the cluster configuration file contained invalid
[tcp]entries. (Bug#27207)MySQL Cluster:
ndb_connectstringdid not appear in the output ofSHOW VARIABLES. (Bug#26675)MySQL Cluster: A failure to release internal resources following an error could lead to problems with single user mode. (Bug#25818)
MySQL Cluster: DDL operations were not supported on a partially started cluster. (Bug#24631)
Disk Data: Extremely large inserts into Disk Data tables could lead to data node failure in some circumstances. (Bug#27942)
Cluster API: In a multi-operation transaction, a delete operation followed by the insertion of an implicit
NULLfailed to overwrite an existing value. (Bug#20535)Some
ALTER TABLEstatements that worked in MySQL 5.0 did not work in 5.1. (Bug#28415)mysql_upgrade failed if certain SQL modes were set. Now it sets the mode itself to avoid this problem. (Bug#28401)
A query with a
NOT INsubquery predicate could cause a crash when the left operand of the predicate evaluated toNULL. (Bug#28375)A buffer overflow could occur when using
DECIMALcolumns on Windows operating systems. (Bug#28361)libmysql.dllcould not be dynamically loaded on Windows. (Bug#28358)Grouping queries with correlated subqueries in
WHEREconditions could produce incorrect results. (Bug#28337)EXPLAINfor a query on an empty table immediately after its creation could result in a server crash. (Bug#28272)Comparing a
DATETIMEcolumn value with a user variable yielded incorrect results. (Bug#28261)Portability problems caused by use of
isinf()were corrected. (Bug#28240)When dumping procedures, mysqldump
--compactgenerated output that restored the session variablesql_modewithout first capturing it. When dumping routines, mysqldump--compactneither set nor retrieved the value ofsql_mode. (Bug#28223)Comparison of the string value of a date showed as unequal to
CURTIME(). Similar behavior was exhibited forDATETIMEvalues. (Bug#28208)For
InnoDB, in some rare cases the optimizer preferred a more expensiverefaccess to a less expensive range access. (Bug#28189)Comparisons of
DATEorDATETIMEvalues for theIN()function could yield incorrect results. (Bug#28133)It was not possible to use the value
–9223372036854775808(that is,–MAXVALUE + 1) when specifying aLISTpartition. (Bug#28005)The server could hang for
INSERT IGNORE ... ON DUPLICATE KEY UPDATEif an update failed. (Bug#28000)The second execution of a prepared statement from a
UNIONquery withORDER BY RAND()caused the server to crash. This problem could also occur when invoking a stored procedure containing such a query. (Bug#27937)Changes to some system variables should invalidate statements in the query cache, but invalidation did not happen. (Bug#27792)
LOAD DATAdid not useCURRENT_TIMESTAMPas the default value for aTIMESTAMPcolumn for which no value was provided. (Bug#27670)Selecting
MIN()on an indexed column that contained onlyNULLvalues causedNULLto be returned for other result columns. (Bug#27573)Using a
TEXTlocal variable in a stored routine in an expression such asSETproduced an incorrect result. (Bug#27415)var= SUBSTRING(var, 3)The error message for error number
137did not report which database/table combination reported the problem. (Bug#27173)A large filesort could result in a division by zero error and a server crash. (Bug#27119)
Some
InnoDBvariables were missing from the output of mysqld --verbose --help. (Bug#26987)Flow control optimization in stored routines could cause exception handlers to never return or execute incorrect logic. (Bug#26977)
Some test suite files were missing from some MySQL-test packages. (Bug#26609)
Running
CHECK TABLEconcurrently with aSELECT,INSERTor other statement on Windows could corrupt a MyISAM table. (Bug#25712)Concurrent execution of
CREATE TABLE ... SELECTand other statements involving the target table suffered from various race conditions, some of which might have led to deadlocks. (Bug#24738)An attempt to execute
CREATE TABLE ... SELECTwhen a temporary table with the same name already existed led to the insertion of data into the temporary table and creation of an empty nontemporary table. (Bug#24508)A statement of the form
CREATE TABLE IF NOT EXISTS t1 SELECT f1() AS ifailed with a deadlock error if the stored functionf1()referred to a table with the same name as the to-be-created table. Now it correctly produces a message that the table already exists. (Bug#22427)Quoted labels in stored routines were mishandled, rendering the routines unusable. (Bug#21513)
CURDATE()is less thanNOW(), either when comparingCURDATE()directly (CURDATE() < NOW()is true) or when castingCURDATE()toDATE(CAST(CURDATE() AS DATE) < NOW()is true). However, storingCURDATE()in aDATEcolumn and comparingincorrectly yielded false. This is fixed by comparing acol_name< NOW()DATEcolumn asDATETIMEfor comparisons to aDATETIMEconstant. (Bug#21103)CREATE TABLE IF NOT EXISTS ... SELECTcaused a server crash if the target table already existed and had aBEFORE INSERTtrigger. (Bug#20903)Deadlock occurred for attempts to execute
CREATE TABLE IF NOT EXISTS ... SELECTwhenLOCK TABLEShad been used to acquire a read lock on the target table. (Bug#20662, Bug#15522)For dates with 4-digit year parts less than 200, an incorrect implicit conversion to add a century was applied for date arithmetic performed with
DATE_ADD(),DATE_SUB(),+ INTERVAL, and- INTERVAL. (For example,DATE_ADD('0050-01-01 00:00:00', INTERVAL 0 SECOND)became'2050-01-01 00:00:00'.) (Bug#18997)Changing the size of a key buffer that is under heavy use could cause a server crash. The fix partially removes the limitation that
LOAD INDEX INTO CACHEfails unless all indexes in a table have the same block size. Now the statement fails only ifIGNORE LEAVESis specified. (Bug#17332)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: MySQL Cluster: The internal specifications for columns in
NDBtables has changed to allow compatibility with future MySQL Cluster releases that are expected to implement online adding and dropping of columns. This change is not backward compatible with earlier versions of MySQL Cluster.See the related note in MySQL Cluster 5.1 and MySQL Cluster NDB 6.x/7.x Upgrade and Downgrade Compatibility, for important information prior to upgrading a MySQL Cluster to MySQL 5.1.18 or later from MySQL 5.1.17 or earlier.
See also Bug#28205.
Incompatible Change: Replication: The
INFORMATION_SCHEMA.EVENTSandmysql.eventtables have been changed to facilitate replication of events. When upgrading to MySQL 5.1.18, you must run mysql_upgrade prior to working with events. Until you have done so, any statement relating to the Event Scheduler or these tables (includingSHOW EVENTS) will fail with the errors Expected field status at position 12 to have type enum ('ENABLED','SLAVESIDE_DISABLED','DISABLED'), found enum('ENABLED','DISABLED') and Table mysql.event is damaged. Can not open.These changes were made as part of fixes for the following bugs:
The effects of scheduled events were not replicated (that is, binary logging of scheduled events did not work).
Effects of scheduled events on a replication master were both replicated and executed on the slave, causing double execution of events.
CREATE FUNCTIONstatements and their effects were not replicated correctly.
For more information, see Section 16.3.1.8, “Replication of Invoked Features”. (Bug#17857, Bug#16421, Bug#20384, Bug#17671)
Cluster Replication: Incompatible Change: The definition of the
mysql.ndb_apply_statustable has changed such that an online upgrade is not possible from MySQL 5.1.17 or earlier for a replication slave cluster; you must shut down all SQL nodes as part of the upgrade procedure. See MySQL Cluster 5.1 and MySQL Cluster NDB 6.x/7.x Upgrade and Downgrade Compatibility before upgrading for details.For more information about the changes to
mysql.ndb_apply_statussee MySQL Cluster Replication Schema and Tables.Incompatible Change: Prior to this release, when
DATEvalues were compared withDATETIMEvalues, the time portion of theDATETIMEvalue was ignored, or the comparison could be performed as a string compare. Now aDATEvalue is coerced to theDATETIMEtype by adding the time portion as00:00:00. To mimic the old behavior, use theCAST()function as shown in this example:SELECT. (Bug#28929)date_col= CAST(NOW() AS DATE) FROMtable;Incompatible Change: The plugin interface and its handling of system variables was changed. Command-line options such as
--skip-innodbnow cause an error ifInnoDBis not built-in or plugin-loaded. You should use--loose-skip-innodbif you do not want any error even ifInnoDBis not available. The--looseprefix modifier should be used for all command-line options where you are uncertain whether the plugin exists and when you want the operation to proceed even if the option is necessarily ignored due to the absence of the plugin. (For a desecription of how--looseworks, see Section 4.2.3.1, “Using Options on the Command Line”.)Important Change: When upgrading to MySQL 5.1.18 or later from a previous MySQL version and scheduled events have been used, the upgrade utilities do not accomodate changes in event-related system tables. As a workaround, you can dump events before the upgrade, then restore them from the dump afterwards. This issue was fixed in MySQL 5.1.20.
See also Bug#28521.
MySQL Cluster: The behavior of the ndb_restore utility has been changed as follows:
It is now possible to restore selected databases or tables using ndb_restore.
Several options have been added for use with ndb_restore
--print_datato facilitate the creation of structured data dump files. These options can be used to make dumps made using ndb_restore more like those produced by mysqldump.
For details of these changes, see ndb_restore. (Bug#26899, Bug#26900)
MySQL Cluster: The following changes were made in the ndb_size.pl utility:
When ndb_size.pl calculates a value for a given configuration parameter that is less than the default value, it now suggests the default value instead.
The dependency on
HTML::Templatewas removed, with the result that the filendb_size.tmplis no longer needed or included.
Cluster Replication: Replication: Some circular replication setups are now supported for MySQL Cluster. See Known Issues in MySQL Cluster Replication, for detailed information. (Bug#17095, Bug#25688)
Cluster API: The MGM API now supports explicit setting of network timeouts using the
ndb_mgm_set_timeout()function. A utility functionndb_mgm_number_of_mgmd_in_connect_string()is also implemented to facilitate calculation of timeouts based on the number of management servers in the cluster.For more information, see
ndb_mgm_set_timeout(), andndb_mgm_number_of_mgmd_in_connect_string().mysqld_multi now understands the
--no-defaults,--defaults-file, and--defaults-extra-fileoptions. The--config-fileoption is deprecated; if given, it is treated like--defaults-extra-file. (Bug#27390)If a set function
Swith an outer referencecannot be aggregated in the outer query against which the outer reference has been resolved, MySQL interpretsS(outer_ref)the same way that it would interpretS(outer_ref). However, standard SQL requires throwing an error in this situation. An error now is thrown for such queries if theS(const)ANSISQL mode is enabled. (Bug#27348)Several additional data types are supported for columns in
INFORMATION_SCHEMAtables:DATE,TIME,BLOB,FLOAT, and all integer types. (Bug#27047)The output of mysql
--xmland mysqldump--xmlnow includes a valid XML namespace. (Bug#25946)If you use SSL for a client connection, you can tell the client not to authenticate the server certificate by specifying neither
--ssl-canor--ssl-capath. The server still verifies the client according to any applicable requirements established viaGRANTstatements for the client, and it still uses any--ssl-ca/--ssl-capathvalues that were passed to server at startup time. (Bug#25309)Added a
MASTER_SSL_VERIFY_SERVER_CERToption for theCHANGE MASTER TOstatement, and aMaster_SSL_Verify_Server_Certoutput column to theSHOW SLAVE STATUSstatement. The option value also is written to themaster.infofile. (Bug#19991)The
innodb_log_archivesystem variable has been removed. The impact of this change should be low because the variable was unused, anyway.Added the
--auto-generate-sql-add-autoincrement,--auto-generate-sql-execute-number,--auto-generate-sql-guid-primary,--auto-generate-sql-secondary-indexes,--auto-generate-sql-unique-query-number,--auto-generate-sql-unique-write-number,--post-query, and--pre-query, options for mysqlslap. Removed the--lock-directory,--slave, and--use-threadsoptions.Added
--write-binlogoption for mysqlbinlog. This option is enabled by default, but can be given as--skip-write-binlogto causeANALYZE TABLE,OPTIMIZE TABLE, andREPAIR TABLEstatements generated by mysqlcheck not to be written to the binary log. (Bug#26262)New command-line options: To alleviate ambiguities in variable names, all variables related to plugins can be specified using a
pluginpart in the name. For example, every time where we used to haveinnodbin the command-line options, you can now writeplugin-innodb:--skip-plugin-innodb --plugin-innodb-buffer-pool-size=#
Furthermore, this is the preferred syntax. It helps to avoid ambiguities when a plugin, say,
wait, has an option calledtimeout.--wait-timeoutwill still set a system variable, but--plugin-wait-timeoutwill set the plugin variable. Also, there is a new command-line option--plugin-loadto install or load plugins at initialization time without using themysql.plugintable.Storage engine plugins may now be uninstalled at run time. However, a plugin is not actually uninstalled until after its reference count drops to zero. The
default_storage_enginesystem variable consumes a reference count, so uninstalling will not complete until said reference is removed.The mysql_create_system_tables script was removed because mysql_install_db no longer uses it in MySQL 5.1.
Renamed the
old_modesystem variable toold.
Bugs fixed:
Security Fix: The requirement of the
DROPprivilege forRENAME TABLEwas not enforced. (Bug#27515, CVE-2007-2691)Security Fix: If a stored routine was declared using
SQL SECURITY INVOKER, a user who invoked the routine could gain privileges. (Bug#27337, CVE-2007-2692)Security Fix: A user with only the
ALTERprivilege on a partitioned table could obtain information about the table that should require theSELECTprivilege. (Bug#23675, CVE-2007-2693)MySQL Cluster: Replication: (Replication): An
UPDATEon the master became aDELETEon slaves. (Bug#27378)MySQL Cluster: The cluster waited 30 seconds instead of 30 milliseconds before reading table statistics. (Bug#28093)
MySQL Cluster: Under certain rare circumstances, ndbd could get caught in an infinite loop when one transaction took a read lock and then a second transaction attempted to obtain a write lock on the same tuple in the lock queue. (Bug#28073)
MySQL Cluster: Under some circumstances, a node restart could fail to update the Global Checkpoint Index (GCI). (Bug#28023)
MySQL Cluster:
INSERT IGNOREwrongly ignoredNULLvalues in unique indexes. (Bug#27980)MySQL Cluster: The name of the month “March” was given incorrectly in the cluster error log. (Bug#27926)
MySQL Cluster:
NDBtables havingMEDIUMINT AUTO_INCREMENTcolumns were not restored correctly by ndb_restore, causing spurious duplicate key errors. This issue did not affectTINYINT,INT, orBIGINTcolumns withAUTO_INCREMENT. (Bug#27775)MySQL Cluster:
NDBtables with indexes whose names contained space characters were not restored correctly by ndb_restore (the index names were truncated). (Bug#27758)MySQL Cluster: An
INSERTfollowed by a deleteDELETEon the sameNDBtable caused a memory leak. (Bug#27756)This regression was introduced by Bug#20612.
MySQL Cluster: It was not possible to add a unique index to an
NDBtable while in single user mode. (Bug#27710)MySQL Cluster: Under certain rare circumstances performing a
DROP TABLEorTRUNCATEon anNDBtable could cause a node failure or forced cluster shutdown. (Bug#27581)MySQL Cluster: Memory usage of a mysqld process grew even while idle. (Bug#27560)
MySQL Cluster: Using more than 16GB for
DataMemorycaused problems with variable-size columns. (Bug#27512)MySQL Cluster: A data node failing while another data node was restarting could leave the cluster in an inconsistent state. In certain rare cases, this could lead to a race condition and the eventual forced shutdown of the cluster. (Bug#27466)
MySQL Cluster: When using the
MemReportFrequencyconfiguration parameter to generate periodic reports of memory usage in the cluster log,DataMemoryusage was not always reported for all data nodes. (Bug#27444)MySQL Cluster: When trying to create an
NDBtable after the server was started with--ndbclusterbut without--ndb-connectstring, mysqld produced a memory allocation error. (Bug#27359)MySQL Cluster: Performing a delete followed by an insert during a local checkpoint could cause a Rowid already allocated error. (Bug#27205)
MySQL Cluster: In an
NDBtable having aTIMESTAMPcolumn usingDEFAULT CURRENT_TIMESTAMP, that column would assume a random value when another column in the same row was updated. (Bug#27127)MySQL Cluster: Error messages displayed when running in single user mode were inconsistent. (Bug#27021)
MySQL Cluster: On Solaris, the value of an
NDBtable column declared asBIT(33)was always displayed as0. (Bug#26986)MySQL Cluster: Performing
ALTER TABLE ... ENGINE=MERGEon anNDBtable caused mysqld to crash. (Bug#26898)MySQL Cluster: The
NDBCLUSTERtable handler did not set bits in null bytes correctly. (Bug#26591)MySQL Cluster: In some cases,
AFTER UPDATEandAFTER DELETEtriggers onNDBtables that referenced subject table did not see the results of operation which caused invocation of the trigger, but rather saw the row as it was prior to the update or delete operation.This was most noticeable when an update operation used a subquery to obtain the rows to be updated. An example would be
UPDATE tbl1 SET col2 = val1 WHERE tbl1.col1 IN (SELECT col3 FROM tbl2 WHERE c4 = val2)where there was anAFTER UPDATEtrigger on tabletbl1. In such cases, the trigger would fail to execute.The problem occurred because the actual update or delete operations were deferred to be able to perform them later as one batch. The fix for this bug solves the problem by disabling this optimization for a given update or delete if the table has an
AFTERtrigger defined for this operation. (Bug#26242)MySQL Cluster: Joins on multiple tables containing
BLOBcolumns could cause data nodes run out of memory, and to crash with the error NdbObjectIdMap::expand unable to expand. (Bug#26176)MySQL Cluster:
START BACKUP NOWAITcaused a spurious Out of backup record error in the management client (START BACKUPandSTART BACKUP WAIT STARTEDperformed normally). (Bug#25446)MySQL Cluster: Adding of indexes online failed for
NDBtables havingBLOBorTEXTcolumns. (Bug#25431)MySQL Cluster: When a cluster data node suffered a “hard” failure (such as a power failure or loss of a network connection) TCP sockets to the missing node were maintained indefinitely. Now socket-based transporters check for a response and terminate the socket if there is no activity on the socket after 2 hours. (Bug#24793)
MySQL Cluster: The ndb_resize.pl utility did not calculate memory usage for indexes correctly. (Bug#24229)
MySQL Cluster: While a data node was stopped, dropping a table then creating an index on a different table caused that node to fail during restart. This was due to the re-use of the dropped table's internal ID for the index without verifying that the index now referred to a different database object. (Bug#21755)
MySQL Cluster: When trying to create tables on an SQL node not connected to the cluster, a misleading error message Table '
tbl_name' already exists was generated. The error now generated is Could not connect to storage engine. (Bug#11217, Bug#18676)Cluster Replication: Replication: An SQL node acting as a replication master server could be a single point of failure; that is, if it failed, the replication slave had no way of knowing this, which could result in a mismatch of data between the master and the slave. (Bug#21494)
Replication: Out-of-memory errors were not reported. Now they are written to the error log. (Bug#26844)
Replication: Improved out-of-memory detection when sending logs from a master server to slaves, and log a message when allocation fails. (Bug#26837)
Replication: Aborting a statement on the master that applied to a nontransactional statement broke replication. The statement was written to the binary log but not completely executed on the master. Slaves receiving the statement executed it completely, resulting in loss of data synchrony. Now an error code is written to the error log so that the slaves stop without executing the aborted statement. (That is, replication stops, but synchrony to the point of the stop is preserved and you can investigate the problem.) (Bug#26551)
Replication: When
RAND()was called multiple times inside a stored procedure, the server did not write the correct random seed values to the binary log, resulting in incorrect replication. (Bug#25543)Replication:
GRANTstatements were not replicated if the server was started with the--replicate-ignore-tableor--replicate-wild-ignore-tableoption. (Bug#25482)Replication: Restoration of the default database after stored routine or trigger execution on a slave could cause replication to stop if the database no longer existed. (Bug#25082)
Replication: If a rotate event occured in the middle of a nontransaction group, the group position would be updated by the rotate event indicating an illegal group start position that was effectively inside a group. This can happen if, for example, a rotate occurs between an
Intvarevent and the associatedQueryevent, or between the table map events and the rows events when using row-based replication. (Bug#23171)Replication: Row-based replication of
MyISAMto non-MyISAMtables did not work correctly forBITcolumns. This has been corrected, but the fix introduces an incompatibility into the binary log format. (The incompatibility is corrected by the fix for Bug#27779.) (Bug#22583)Cluster Replication: Disk Data: An issue with replication of Disk Data tables could in some cases lead to node failure. (Bug#28161)
Disk Data: Changes to a Disk Data table made as part of a transaction could not be seen by the client performing the changes until the transaction had been committed. (Bug#27757)
Disk Data: When in single user mode, it was possible to create log file groups and tablespaces from any SQL node connected to the cluster. (Bug#27712)
Disk Data:
CREATE TABLE ... LIKEcreated an in-memorydisk_data_tableNDBtable. (Bug#25875)Disk Data: When restarting a data node following the creation of a large number of Disk Data objects (approximately 200 such objects), the cluster could not assign a node ID to the restarting node. (Bug#25741)
Disk Data: Creating an excessive number of Disk Data tables (1000 or more) could cause data nodes to fail. (Bug#24951)
Disk Data: Changing a column specification or issuing a
TRUNCATEstatement on a Disk Data table caused the table to become an in-memory table.This fix supersedes an incomplete fix that was made for this issue in MySQL 5.1.15. (Bug#24667, Bug#25296)
Disk Data: Setting the value of the
UNDO BUFFER SIZEto 64K or less in aCREATE LOGFILE GROUPstatement led to failure of cluster data nodes. (Bug#24560)Disk Data: Creating an excessive number of data files for a single tablespace caused data nodes to crash. (Bug#24521)
Disk Data: It was possible to drop the last remaining datafile in a tablespace using
ALTER TABLESPACE, even when there was still an empty table using the tablespace.Note
The datafile could be not dropped if the table still contained any rows, so this bug involved no loss of data.
Cluster Replication: Some queries that updated multiple tables were not backed up correctly. (Bug#27748)
Cluster Replication: It was possible for API nodes to begin interacting with the cluster subscription manager before they were fully connected to the cluster. (Bug#27728)
Cluster Replication: Under very high loads, checkpoints could be read or written with checkpoint indexes out of order. (Bug#27651)
Cluster Replication: Trying to replicate a large number of frequent updates with a relatively small relay log (
max-relay-log-sizeset to 1M or less) could cause the slave to crash. (Bug#27529)Cluster Replication: Setting
sql_log_binto zero did not disable binary logging.This issue affected only the
NDBstorage engine. (Bug#27076)Cluster API: For
BLOBreads on operations with lock modeLM_CommittedRead, the lock mode was not upgraded toLM_Readbefore the state of theBLOBhad already been calculated. TheNDBAPI methods affected by this problem included the following:NdbOperation::readTuple()NdbScanOperation::readTuples()NdbIndexScanOperation::readTuples()
Cluster API: Using
NdbBlob::writeData()to write data in the middle of an existing blob value (that is, updating the value) could overwrite some data past the end of the data to be changed. (Bug#27018)A performance degradation was observed for outer join queries to which a not-exists optimization was applied. (Bug#28188)
SELECT * INTO OUTFILE ... FROM INFORMATION_SCHEMA.SCHEMATAfailed with an Access denied error, even for a user who had theFILEprivilege. (Bug#28181)Early
NULL-filtering optimization did not work foreq_reftable access. (Bug#27939)Nongrouped columns were allowed by
*inONLY_FULL_GROUP_BYSQL mode. (Bug#27874)Some equi-joins containing a
WHEREclause that included aNOT INsubquery caused a server crash. (Bug#27870)An error message suggested the use of mysql_fix_privilege_tables after an upgrade, but the recommended program is now mysql_upgrade. (Bug#27818)
Debug builds on Windows generated false alarms about uninitialized variables with some Visual Studio runtime libraries. (Bug#27811)
Certain queries that used uncorrelated scalar subqueries caused
EXPLAINto crash. (Bug#27807)Performing a
UNIONon two views that hadORDER BYclauses resulted in anUnknown columnerror. (Bug#27786)mysql_install_db is supposed to detect existing system tables and create only those that do not exist. Instead, it was exiting with an error if tables already existed. (Bug#27783)
The
LEAST()andGREATEST()functions comparedDATEandDATETIMEvalues as strings, which in some cases could lead to an incorrect result. (Bug#27759)A memory leak in the event scheduler was uncovered by Valgrind. (Bug#27733)
mysqld did not check the length of option values and could crash with a buffer overflow for long values. (Bug#27715)
Comparisons using row constructors could fail for rows containing
NULLvalues. (Bug#27704)SELECT DISTINCTcould return incorrect results if the select list contained duplicated columns. (Bug#27659)On Linux, the server could not create temporary tables if
lower_case_table_nameswas set to 1 and the value oftmpdirwas a directory name containing any uppercase letters. (Bug#27653)For
InnoDBtables, a multiple-rowINSERTof the formINSERT INTO t (id...) VALUES (NULL...) ON DUPLICATE KEY UPDATE id=VALUES(id), whereidis anAUTO_INCREMENTcolumn, could causeERROR 1062 (23000): Duplicate entry...errors or lost rows. (Bug#27650)When MySQL logged slow query information to a
CSVtable, it used an incorrect formula to calculate thequery_timeandlock_timevalues. (Bug#27638)The XML output representing an empty result was an empty string rather than an empty
<resultset/>element. (Bug#27608)Comparison of a
DATEwith aDATETIMEdid not treat theDATEas having a time part of00:00:00. (Bug#27590)See also Bug#32198.
With
NO_AUTO_VALUE_ON_ZEROSQL mode enabled,LOAD DATAoperations could assign incorrectAUTO_INCREMENTvalues. (Bug#27586)Group relay log rotation updated only the log position and not the name, causing the slave to stop. (Bug#27583)
Incorrect results could be returned for some queries that contained a select list expression with
INorBETWEENtogether with anORDER BYorGROUP BYon the same expression usingNOT INorNOT BETWEEN. (Bug#27532)The fix for Bug#17212 provided correct sort order for misordered output of certain queries, but caused significant overall query performance degradation. (Results were correct (good), but returned much more slowly (bad).) The fix also affected performance of queries for which results were correct. The performance degradation has been addressed. (Bug#27531)
The
CRC32()function returns an unsigned integer, but the metadata was signed, which could cause certain queries to return incorrect results. (For example, queries that selected aCRC32()value and used that value in theGROUP BYclause.) (Bug#27530)An interaction between
SHOW TABLE STATUSand other concurrent statements that modify the table could result in a divide-by-zero error and a server crash. (Bug#27516)Evaluation of an
IN()predicate containing a decimal-valued argument caused a server crash. (Bug#27513, Bug#27362, CVE-2007-2583)A race condition between
DROP TABLEandSHOW TABLE STATUScould cause the latter to display incorrect information. (Bug#27499)In out-of-memory conditions, the server might crash or otherwise not report an error to the Windows event log. (Bug#27490)
Passing nested row expressions with different structures to an
INpredicate caused a server crash. (Bug#27484)The
decimal.hheader file was incorrectly omitted from binary distributions. (Bug#27456)With
innodb_file_per_tableenabled, attempting to rename anInnoDBtable to a nonexistent database caused the server to exit. (Bug#27381)Nested aggregate functions could be improperly evaluated. (Bug#27363)
A stored function invocation in the
WHEREclause was treated as a constant. (Bug#27354)For the
INFORMATION_SCHEMASESSION_STATUSandGLOBAL_STATUStables, some status values were incorrectly converted to the data type of theVARIABLE_VALUEcolumn. (Bug#27327)Failure to allocate memory associated with
transaction_prealloc_sizecould cause a server crash. (Bug#27322)A subquery could get incorrect values for references to outer query columns when it contained aggregate functions that were aggregated in outer context. (Bug#27321)
The server did not shut down cleanly. (Bug#27310)
In a view, a column that was defined using a
GEOMETRYfunction was treated as having theLONGBLOBdata type rather than theGEOMETRYtype. (Bug#27300)mysqldump crashed if it got no data from
SHOW CREATE PROCEDURE(for example, when trying to dump a routine defined by a different user and for which the current user had no privileges). Now it prints a comment to indicate the problem. It also returns an error, or continues if the--forceoption is given. (Bug#27293)Queries containing subqueries with
COUNT(*)aggregated in an outer context returned incorrect results. This happened only if the subquery did not contain any references to outer columns. (Bug#27257)Use of an aggregate function from an outer context as an argument to
GROUP_CONCAT()caused a server crash. (Bug#27229)String truncation upon insertion into an integer or year column did not generate a warning (or an error in strict mode). (Bug#27176, Bug#26359)
mysqlbinlog produced different output with the
-Roption than without it. (Bug#27171)Storing
NULLvalues in spatial fields caused excessive memory allocation and crashes on some systems. (Bug#27164)Row equalities in
WHEREclauses could cause memory corruption. (Bug#27154)ON DUPLICATE KEY UPDATEfailed for a table partitioned byKEYon a primary keyVARCHARcolumn. (Bug#27123)GROUP BYon aucs2column caused a server crash when there was at least one empty string in the column. (Bug#27079)Duplicate members in
SETorENUMdefinitions were not detected. Now they result in a warning; if strict SQL mode is enabled, an error occurs instead. (Bug#27069)For
FEDERATEDtables,SHOW CREATE TABLEcould fail when the table name was longer than the connection name. (Bug#27036)mysql_install_db could terminate with an error after failing to determine that a system table already existed. (Bug#27022)
In a
MEMORYtable, using aBTREEindex to scan for updatable rows could lead to an infinite loop. (Bug#26996)make_win_bin_dist neglected to copy some required
MyISAMtable files. (Bug#26922)For
InnoDBtables having a clustered index that began with aCHARorVARCHARcolumn, deleting a record and then inserting another before the deleted record was purged could result in table corruption. (Bug#26835)mysqldump would not dump a view for which the
DEFINERno longer exists. (Bug#26817)Duplicates were not properly identified among (potentially) long strings used as arguments for
GROUP_CONCAT(DISTINCT). (Bug#26815)ALTER VIEWrequires theCREATE VIEWandDROPprivileges for the view. However, if the view was created by another user, the server erroneously required theSUPERprivilege. (Bug#26813)If the name of a table given to myisamchk -rq was a packed table and the name included the
.MYIextension, myisamchk incorrectly created a file with a.MYI.MYIextension. (Bug#26782)Creating a temporary table with
InnoDBwhen using the one-file-per-table setting, and when the host file system for temporary tables wastmpfs, would cause an assertion withinmysqld. This was due to the use ofO_DIRECTwhen opening the temporary table file. (Bug#26662)mysql_upgrade did not detect failure of external commands that it runs. (Bug#26639)
The range optimizer could cause the server to run out of memory. (Bug#26625)
The range optimizer could consume a combinatorial amount of memory for certain classes of
WHEREclauses. (Bug#26624)mysqldumpcould crash or exhibit incorrect behavior when some options were given very long values, such as--fields-terminated-by=". The code has been cleaned up to remove a number of fixed-sized buffers and to be more careful about error conditions in memory allocation. (Bug#26346)some very long string"A possible buffer overflow in
SHOW PROCEDURE CODEwas removed. (Bug#26303)The
FEDERATEDengine did not allow the local and remote tables to have different names. (Bug#26257)The temporary file-creation code was cleaned up on Windows to improve server stability. (Bug#26233)
For
MyISAMtables,COUNT(*)could return an incorrect value if theWHEREclause compared an indexedTEXTcolumn to the empty string (''). This happened if the column contained empty strings and also strings starting with control characters such as tab or newline. (Bug#26231)For
INSERT INTO ... SELECTwhere index searches used column prefixes, insert errors could occur when key value type conversion was done. (Bug#26207)mysqlbinlog --base64-output produced invalid SQL. (Bug#26194)
For
DELETE FROM(with notbl_nameORDER BYcol_nameWHEREorLIMITclause), the server did not check whethercol_namewas a valid column in the table. (Bug#26186)Executing an
INSERT ... SELECT ... FROM INFORMATION_SCHEMA.GLOBAL_STATUSstatement from within an event caused a server crash. (Bug#26174)On Windows, trying to use backslash (
\) characters in paths forDATA DIRECTORYandINDEX DIRECTORYwhen creating partitioned tables caused MySQL to crash.(You must use
/characters when specifying paths for these options, regardless of platform. See Section 17.1, “Overview of Partitioning in MySQL”, for an example using absolute paths forDATA DIRECTORYandINDEX DIRECTORYwhen creating a partitioned table on Windows.) (Bug#26074, Bug#25141)mysqldump crashed for
MERGEtables if the--complete-insert(-c) option was given. (Bug#25993)Index hints (
USE INDEX,IGNORE INDEX,FORCE INDEX) cannot be used withFULLTEXTindexes, but were not being ignored. (Bug#25951)Setting a column to
NOT NULLwith anON DELETE SET NULLclause foreign key crashes the server. (Bug#25927)Corrupted
MyISAMtables that have different definitions in the.frmand.MYItables might cause a server crash. (Bug#25908)If
CREATE TABLE t1 LIKE t2failed due to a full disk, an emptyt2.frmfile could be created but not removed. This file then caused subsequent attempts to create a table namedt2to fail. This is easily corrected at the file system level by removing thet2.frmfile manually, but now the server removes the file if the create operation does not complete successfully. (Bug#25761)In certain situations,
MATCH ... AGAINSTreturned false hits forNULLvalues produced byLEFT JOINwhen no full-text index was available. (Bug#25729)Concurrent
CREATE SERVERandALTER SERVERstatements could cause a deadlock. (Bug#25721)CREATE SERVER,DROP SERVER, andALTER SERVERdid not require any privileges. Now these statements require theSUPERprivilege. (Bug#25671)On Windows, connection handlers did not properly decrement the server's thread count when exiting. (Bug#25621)
OPTIMIZE TABLEmight fail on Windows when it attempts to rename a temporary file to the original name if the original file had been opened, resulting in loss of the.MYDfile. (Bug#25521)For
SHOW ENGINE INNODB STATUS, theLATEST DEADLOCK INFORMATIONwas not always cleared properly. (Bug#25494)mysql_stmt_fetch()did an invalid memory deallocation when used with the embedded server. (Bug#25492)mysql_upgrade did not pass a password to mysqlcheck if one was given. (Bug#25452)
On Windows, mysql_upgrade was sensitive to lettercase of the names of some required components. (Bug#25405)
During a call to
mysql_change_user(), when authentication fails or the database to change to is unknown, a subsequent call to any function that does network communication leads to packets out of order. This problem was introduced in MySQL 5.1.14. (Bug#25371)Difficult repair or optimization operations could cause an assertion failure, resulting in a server crash. (Bug#25289)
For storage engines that allow the current auto-increment value to be set, using
ALTER TABLE ... ENGINEto convert a table from one such storage engine to another caused loss of the current value. (For storage engines that do not support setting the value, it cannot be retained anyway when changing the storage engine.) (Bug#25262)Duplicate entries were not assessed correctly in a
MEMORYtable with aBTREEprimary key on autf8ENUMcolumn. (Bug#24985)Several math functions produced incorrect results for large unsigned values.
ROUND()produced incorrect results or a crash for a large number-of-decimals argument. (Bug#24912)The result set of a query that used
WITH ROLLUPandDISTINCTcould lack some rollup rows (rows withNULLvalues for grouping attributes) if theGROUP BYlist contained constant expressions. (Bug#24856)Selecting the result of
AVG()within aUNIONcould produce incorrect values. (Bug#24791)For queries that used
ORDER BYwithInnoDBtables, if the optimizer chose an index for accessing the table but found a covering index that enabled theORDER BYto be skipped, no results were returned. (Bug#24778)The
NO_DIR_IN_CREATEserver SQL mode was not enforced for partitioned tables. (Bug#24633)MBRDisjoint(),MBRequal(),MBRIntersects(),MBROverlaps(),MBRTouches(), andMBRWithin()were inadvertently omitted from recent versions of MySQL (5.1.14 to 5.1.17). (Bug#24588)Access via
my_pread()ormy_pwrite()to table files larger than 2GB could fail on some systems. (Bug#24566)MBROverlaps()returned incorrect values in some cases. (Bug#24563)A problem in handling of aggregate functions in subqueries caused predicates containing aggregate functions to be ignored during query execution. (Bug#24484)
The
MERGEstorage engine could return incorrect results when several index values that compare equality were present in an index (for example,'gross'and'gross ', which are considered equal but have different lengths). (Bug#24342)Some upgrade problems are detected and better error messages suggesting that mysql_upgrade be run are produced. (Bug#24248)
The test for the
MYSQL_OPT_SSL_VERIFY_SERVER_CERToption formysql_options()was performed incorrectly. Also changed as a result of this bug fix: Theargoption for themysql_options()C API function was changed fromchar *tovoid *. (Bug#24121)Some views could not be created even when the user had the requisite privileges. (Bug#24040)
The values displayed for the
Innodb_row_lock_time,Innodb_row_lock_time_avg, andInnodb_row_lock_time_maxstatus variables were incorrect. (Bug#23666)Using
CAST()to convertDATETIMEvalues to numeric values did not work. (Bug#23656)A damaged or missing
mysql.eventtable causedSHOW VARIABLESto fail. (Bug#23631)SHOW CREATE VIEWqualified references to stored functions in the view definition with the function's database name, even when the database was the default database. This affected mysqldump (which usesSHOW CREATE VIEWto dump views) because the resulting dump file could not be used to reload the database into a different database.SHOW CREATE VIEWnow suppresses the database name for references to functions in the default database. (Bug#23491)An
INTO OUTFILEclause is allowed only for the finalSELECTof aUNION, but this restriction was not being enforced correctly. (Bug#23345)The
AUTO_INCREMENTvalue would not be correctly reported forInnoDBtables when usingSHOW CREATE TABLEstatement or mysqldump command. (Bug#23313)With the
NO_AUTO_VALUE_ON_ZEROSQL mode enabled,LAST_INSERT_ID()could return 0 afterINSERT ... ON DUPLICATE KEY UPDATE. Additionally, the next rows inserted (by the sameINSERT, or the followingINSERTwith or withoutON DUPLICATE KEY UPDATE), would insert 0 for the auto-generated value if the value for theAUTO_INCREMENTcolumn wasNULLor missing. (Bug#23233)Implicit conversion of
9912101toDATEdid not matchCAST(9912101 AS DATE). (Bug#23093)SELECT COUNT(*)from a table containing aDATETIME NOT NULLcolumn could produce spurious warnings with theNO_ZERO_DATESQL mode enabled. (Bug#22824)Using
SET GLOBALto change thelc_time_namessystem variable had no effect on new connections. (Bug#22648)SOUNDEX()returned an invalid string for international characters in multi-byte character sets. (Bug#22638)A multiple-table
UPDATEcould return an incorrect rows-matched value if, during insertion of rows into a temporary table, the table had to be converted from aMEMORYtable to aMyISAMtable. (Bug#22364)COUNT(sometimes generated a spurious truncation warning. (Bug#21976)decimal_expr)yaSSL crashed on pre-Pentium Intel CPUs. (Bug#21765)
A slave that used
--master-ssl-ciphercould not connect to the master. (Bug#21611)Database and table names have a maximum length of 64 characters (even if they contain multi-byte characters), but were truncated to 64 bytes.
Note
This improves on a previous fix made for this bug in MySQL 5.1.12.
InnoDB: The first read statement, if served from the query cache, was not consistent with theREAD COMMITTEDisolation level. (Bug#21409)On Windows, if the server was installed as a service, it did not auto-detect the location of the data directory. (Bug#20376)
Changing a
utf8column in anInnoDBtable to a shorter length did not shorten the data values. (Bug#20095)In some cases, the optimizer preferred a range or full index scan access method over lookup access methods when the latter were much cheaper. (Bug#19372)
Conversion of
DATETIMEvalues in numeric contexts sometimes did not produce a double (YYYYMMDDHHMMSS.uuuuuu) value. (Bug#16546)INSERT...ON DUPLICATE KEY UPDATEcould causeError 1032: Can't find record in ...for inserts into anInnoDBtable unique index using key column prefixes with an underlyingutf8string column. (Bug#13191)Having the
EXECUTEprivilege for a routine in a database should make it possible toUSEthat database, but the server returned an error instead. This has been corrected. As a result of the change,SHOW TABLESfor a database in which you have only theEXECUTEprivilege returns an empty set rather than an error. (Bug#9504)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: Scheduled events now use the MySQL server time zone to determine their schedules, rather than UTC as in previous releases. Because of this change, scheduled event metadata now includes time zone information, which can be seen in the
TIME_ZONEcolumn of theINFORMATION_SCHEMA.EVENTStable and theTime zonecolumn in the output of theSHOW EVENTSstatement. These columns have been added in this release, along with atime_zonecolumn in themysql.eventtable. Due to these changes, events created in previous versions of MySQL cannot be created, viewed, or used untilmysql.eventhas been upgraded. (Bug#16420)Important Change: Replication: The following options for controlling replication master configuration on a slave are now deprecated.
To change the master configuration on a slave you should use the
CHANGE MASTER TOstatement.See also Bug#21490.
Important Change: The
CREATE EVENTandALTER EVENTstatements now support aDEFINERclause, similar to that used in theCREATE TRIGGERstatement.See Section 12.1.11, “
CREATE EVENTSyntax”, for detailed information. (Bug#16425)MySQL Cluster: Added the
--skip-table-checkoption (short form-s) for ndb_restore, which causes the restoration process to ignore any changes that may have occurred in table schemas after the backup was made. Previously, this was the default behavior.See ndb_restore, for more information. (Bug#24363)
Added a
--no-beepoption to mysqladmin. It suppresses the warning beep that is emitted by default for errors such as a failure to connect to the server. (Bug#26964)Added the
--service-startup-timeoutoption for mysql.server to specify how long to wait for the server to start. If the server does not start within the timeout period, mysql.server exits with an error. (Bug#26952)Prefix lengths for columns in
SPATIALindexes can no longer be specified. For tables created in older versions of MySQL that haveSPATIALindexes containing prefixed columns, dumping and reloading the table causes the indexes to be created with no prefixes. (The full column width of each column is indexed.) (Bug#26794)Added the
innodb_stats_on_metadatasystem variable to enable control over whetherInnoDBperforms statistics gathering when metadata statements are executed. See Section 13.6.3, “InnoDBStartup Options and System Variables”. (Bug#26598)Statements that affect
mysqldatabase tables now are written to the binary log using the following rules:Data manipulation statements such as
INSERTthat change data inmysqldatabase tables directly are logged according to the settings of thebinlog_formatsystem variable.Statements such as
GRANTthat change themysqldatabase indirectly are logged as statements regardless of the value ofbinlog_format.
For more details, see Section 5.2.4.4, “Logging Format for Changes to
mysqlDatabase Tables”. (Bug#25091)The server now includes a timestamp in error messages that are logged as a result of unhandled signals (such as
mysqld got signal 11messages). (Bug#24878)The syntax for index hints has been extended to enable more fine-grained control over the optimizer's selection of an execution plan for various phases of query processing. See Section 12.2.8.2, “Index Hint Syntax”. (Bug#21174)
Added the
--secure-file-privoption for mysqld, which limits the effect of theLOAD_FILE()function and theLOAD DATAandSELECT ... INTO OUTFILEstatements to work only with files in a given directory. (Bug#18628)Prepared statements now use the query cache under the conditions described in Section 7.5.5.1, “How the Query Cache Operates”. (Bug#735)
Added the
thread_handlingsystem variable to control whether the server use a single thread or one thread per connection. The--one-threadoption now is deprecated; use--thread_handling=one-threadinstead.Statements such as
GRANTthat change themysqldatabase indirectly are logged as statements regardless of the value ofbinlog_format.Added the read-only
hostnamesystem variable, which the server sets at startup to the server host name.Online (noncopying)
ADD INDEXandDROP INDEXoperations are now performed on dynamic (variable-width) columns. Renaming ofNDBandMyISAMtables and of columns in such tables is now performed without copying or locking the tables. As a result, these operations are now performed much more quickly than previously.See Section 12.1.7, “
ALTER TABLESyntax”, Section 12.1.13, “CREATE INDEXSyntax”, and Section 12.1.24, “DROP INDEXSyntax”, for more information.Data manipulation statements such as
INSERTthat change data inmysqldatabase tables directly are logged according to the settings of thebinlog_formatsystem variable.Added the
old_modesystem variable to cause the server to revert to certain behaviors present in older versions. Currently, this variable affects handling of index hints. See Section 12.2.8.2, “Index Hint Syntax”.
Bugs fixed:
Incompatible Change:
INSERT DELAYEDstatements are not supported forMERGEtables, but theMERGEstorage engine was not rejecting such statements, resulting in table corruption. Applications previously usingINSERT DELAYEDintoMERGEtable will break when upgrading to versions with this fix. To avoid the problem, removeDELAYEDfrom such statements. (Bug#26464)Important Note: The parser accepted invalid code in SQL condition handlers, leading to server crashes or unexpected execution behavior in stored programs. Specifically, the parser allowed a condition handler to refer to labels for blocks that enclose the handler declaration. This was incorrect because block label scope does not include the code for handlers declared within the labeled block.
The parser now rejects this invalid construct, but if you perform a binary upgrade (without dumping and reloading your databases), existing handlers that contain the construct are still invalid and should be rewritten even if they appear to function as you expect.
To find affected handlers, use mysqldump to dump all stored procedures and functions, triggers, and events. Then attempt to reload them into an upgraded server. Handlers that contain illegal label references will be rejected.
For more information about condition handlers and writing them to avoid invalid jumps, see Section 12.8.4.2, “
DECLAREfor Handlers”. (Bug#26503)MySQL Cluster: It was not possible to set
LockPagesInMainMemoryequal to0. (Bug#27291)MySQL Cluster: A race condition could sometimes occur if the node acting as master failed while node IDs were still being allocated during startup. (Bug#27286)
MySQL Cluster: When a data node was taking over as the master node, a race condition could sometimes occur as the node was assuming responsibility for handling of global checkpoints. (Bug#27283)
MySQL Cluster: After putting the cluster in single user mode from one MySQL server, trying to drop an
NDBtable from a second MySQL server also connected to the cluster would cause the second MySQL server to hang. (Bug#27254)MySQL Cluster: mysqld could crash shortly after a data node failure following certain DML operations. (Bug#27169)
MySQL Cluster: (Disk Data): Under some circumstances, a data node could fail during restart while flushing Disk Data UNDO logs. (Bug#27102)
MySQL Cluster: The same failed request from an API node could be handled by the cluster multiple times, resulting in reduced performance. (Bug#27087)
MySQL Cluster: The failure of a data node while restarting could cause other data nodes to hang or crash. (Bug#27003)
MySQL Cluster: Creating a table on one SQL node while in single user mode caused other SQL nodes to crash. (Bug#26997)
MySQL Cluster: mysqld processes would sometimes crash under high load. (Bug#26825)
MySQL Cluster: Using only the
--print_dataoption (and no other options) with ndb_restore caused ndb_restore to fail. (Bug#26741)This regression was introduced by Bug#14612.
MySQL Cluster: The output from ndb_restore
--print_datawas incorrect for a backup made of a database containing tables withTINYINTorSMALLINTcolumns. (Bug#26740)MySQL Cluster: An infinite loop in an internal logging function could cause trace logs to fill up with Unknown Signal type error messages and thus grow to unreasonable sizes. (Bug#26720)
MySQL Cluster: An invalid pointer was returned following a
FSCLOSECONFsignal when accessing the REDO logs during a node restart or system restart. (Bug#26515)MySQL Cluster: The management client command
displayed the messagenode_idSTATUSNodewhennode_id: not connectednode_idwas not the node ID of a data node.Note
The
ALL STATUScommand in the cluster management client still displays status information for data nodes only. This is by design. See Commands in the MySQL Cluster Management Client, for more information.MySQL Cluster: When performing an upgrade or downgrade, no specific error information was made available when trying to upgrade data nodes or SQL nodes before upgrading management nodes. (Bug#21296)
MySQL Cluster: Some values of
MaxNoOfTablescaused the error Job buffer congestion to occur. (Bug#19378)Replication: A multiple-row delayed insert with an auto-increment column could cause duplicate entries to be created on the slave in a replication environment. (Bug#26116, Bug#25507)
Replication: Duplicating the usage of a user variable in a stored procedure or trigger would not be replicated correctly to the slave. (Bug#25167)
Replication:
DROP TRIGGERstatements would not be filtered on the slave when using thereplication-wild-do-tableoption. (Bug#24478)Replication: For
INSERT ... ON DUPLICATE KEY UPDATEstatements where someAUTO_INCREMENTvalues were generated automatically for inserts and some rows were updated, one auto-generated value was lost per updated row, leading to faster exhaustion of the range of theAUTO_INCREMENTcolumn.Because the original problem can affect replication (different values on master and slave), it is recommended that the master and its slaves be upgraded to the current version. (Bug#24432)
Replication: Replication between master and slave would infinitely retry binary log transmission where the
max_allowed_packeton the master was larger than that on the slave if the size of the transfer was between these two values. (Bug#23775)Replication: Loading data using
LOAD DATA INFILEmay not replicate correctly (due to character set incompatibilities) if thecharacter_set_databasevariable is set before the data is loaded. (Bug#15126)Replication: User defined variables used within stored procedures and triggers are not replicated correctly when operating in statement-based replication mode. (Bug#14914, Bug#20141)
Disk Data: A memory overflow could occur with tables having a large amount of data stored on disk, or with queries using a very high degree of parallelism on Disk Data tables. (Bug#26514)
Disk Data: Use of a tablespace whose
INITIAL_SIZEwas greater than 1 GB could cause the cluster to crash. (Bug#26487)Disk Data: Creating multiple Disk Data tables using different tablespaces could sometimes cause the cluster to fail. (Bug#25992)
Disk Data:
ALTER TABLE ... ADD COLUMN ...on a Disk Data table moved data for existing nonindexed columns from the tablespace into memory. (Bug#25880)Disk Data:
DROP INDEXon a Disk Data table did not always move data from memory into the tablespace. (Bug#25877)Disk Data: When creating a log file group, setting
INITIAL_SIZEto less thanUNDO_BUFFER_SIZEcaused data nodes to crash. (Bug#25743)Cluster Replication: The simultaneous failure of a data node and an SQL node could cause replication to fail. (Bug#27005)
Cluster API: A delete operation using a scan followed by an insert using a scan could cause a data node to fail. (Bug#27203)
Cluster API: (Cluster APIs):
NANDandNORoperations withNdbScanFilterdid not perform correctly. (Bug#24568)Cluster API: You can now use the
ndb_mgm_check_connection()function to determine whether a management server is running. Seendb_mgm_check_connection().MyISAMtables converted toARCHIVEwere excessively large. (Bug#27533)SELECT ... INTO OUTFILEwith a longFIELDS ENCLOSED BYvalue could crash the server. (Bug#27231)An
INSERT ... ON DUPLICATE KEY UPDATEstatement might modify values in a table but not flush affected data from the query cache, causing subsequent selects to return stale results. This made the combination of query cache plusON DUPLICATE KEY UPDATEvery unreliable. (Bug#27210)See also Bug#27006, Bug#27033.
This regression was introduced by Bug#19978.
For
INSERT ... ON DUPLICATE KEY UPDATEstatements on tables containingAUTO_INCREMENTcolumns,LAST_INSERT_ID()was reset to 0 if no rows were successfully inserted or changed. “Not changed” includes the case where a row was updated to its current values, but in that case,LAST_INSERT_ID()should not be reset to 0. NowLAST_INSERT_ID()is reset to 0 only if no rows were successfully inserted or touched, whether or not touched rows were changed. (Bug#27033)See also Bug#27210, Bug#27006.
This regression was introduced by Bug#19978.
Invalid optimization of pushdown conditions for queries where an outer join was guaranteed to read only one row from the outer table led to results with too few rows. (Bug#26963)
For
MERGEtables defined on underlying tables that contained a shortVARCHARcolumn (shorter than four characters), usingALTER TABLEon at least one but not all of the underlying tables caused the table definitions to be considered different from that of theMERGEtable, even if theALTER TABLEdid not change the definition. (Bug#26881)Use of a subquery containing
GROUP BYandWITH ROLLUPcaused a server crash. (Bug#26830)Setting
event_scheduler = 1orevent_scheduler = ONcaused the server to crash if the server had been started with--skip-grant-tables. Starting the server with--skip-grant-tablesnow causesevent_schedulerto be set toDISABLEDautomatically, overriding any other value that may have been set. (Bug#26807)Added support for
--debugger=dbxfor mysql-test-run.pl and added support for--debugger=devenv,--debugger=DevEnv, and--debugger=. (Bug#26792)/path/to/devenvA result set column formed by concatention of string literals was incomplete when the column was produced by a subquery in the
FROMclause. (Bug#26738)SSL connections failed on Windows. (Bug#26678)
When using the result of
SEC_TO_TIME()for time value greater than 24 hours in anORDER BYclause, either directly or through a column alias, the rows were sorted incorrectly as strings. (Bug#26672)Use of a subquery containing a
UNIONwith an invalidORDER BYclause caused a server crash. (Bug#26661)In some error messages, inconsistent format specifiers were used for the translations in different languages. comp_err (the error message compiler) now checks for mismatches. (Bug#26571)
Views that used a scalar correlated subquery returned incorrect results. (Bug#26560)
UNHEX() IS NULLcomparisons failed whenUNHEX()returnedNULL. (Bug#26537)On 64-bit Windows, large timestamp values could be handled incorrectly. (Bug#26536)
SHOW CREATE EVENTfailed to display theSTARTSandENDSclauses for an event defined withSTARTS NOW(),ENDS NOW(), or both. (Bug#26429)If the server was started with
--skip-grant-tables, Selecting fromINFORMATION_SCHEMAtables causes a server crash. (Bug#26285)For some values of the position argument, the
INSERT()function could insert a NUL byte into the result. (Bug#26281)For an
INSERTstatement that should fail due to a column with no default value not being assigned a value, the statement succeeded with no error if the column was assigned a value in anON DUPLICATE KEY UPDATEclause, even if that clause was not used. (Bug#26261)INSERT DELAYEDstatements inserted incorrect values intoBITcolumns. (Bug#26238)A query of type
index_merge, and with aWHEREclause having the formWHEREon a partitioned table caused the server to crash. (Bug#26117)indexed_column_1=value_1ORindexed_column_2=value_2BENCHMARK()did not work correctly for expressions that produced aDECIMALresult. (Bug#26093)For
MEMORYtables, extending the length of aVARCHARcolumn withALTER TABLEmight result in an unusable table. (Bug#26080)The server could hang during binary log rotation. (Bug#26079)
LOAD DATA INFILEsent an okay to the client before writing the binary log and committing the changes to the table had finished, thus violating ACID requirements. (Bug#26050)X() IS NULLandY() IS NULLcomparisons failed whenX()andY()returnedNULL. (Bug#26038)Indexes on
TEXTcolumns were ignored whenrefaccesses were evaluated. (Bug#25971)If a thread previously serviced a connection that was killed, excessive memory and CPU use by the thread occurred if it later serviced a connection that had to wait for a table lock. (Bug#25966)
VIEWrestrictions were applied toSELECTstatements after aCREATE VIEWstatement failed, as though theCREATEhad succeeded. (Bug#25897)Several deficiencies in resolution of column names for
INSERT ... SELECTstatements were corrected. (Bug#25831)Inserting
utf8data into aTEXTcolumn that used a single-byte character set could result in spurious warnings about truncated data. (Bug#25815)On Windows, debug builds of mysqld could fail with heap assertions. (Bug#25765)
In certain cases it could happen that deleting a row corrupted an
RTREEindex. This affected indexes on spatial columns. (Bug#25673)Using mysqlbinlog on a binary log would crash if there were a large number of row-based events related to a single statement. (Bug#25628)
Expressions involving
SUM(), when used in anORDER BYclause, could lead to out-of-order results. (Bug#25376)Use of a
GROUP BYclause that referred to a stored function result together withWITH ROLLUPcaused incorrect results. (Bug#25373)A stored procedure that made use of cursors failed when the procedure was invoked from a stored function. (Bug#25345)
On Windows, the server exhibited a file-handle leak after reaching the limit on the number of open file descriptors. (Bug#25222)
The
REPEAT()function did not allow a column name as thecountparameter. (Bug#25197)A reference to a nonexistent column in the
ORDER BYclause of anUPDATE ... ORDER BYstatement could cause a server crash. (Bug#25126)A view on a join is insertable for
INSERTstatements that store values into only one table of the join. However, inserts were being rejected if the inserted-into table was used in a self-join because MySQL incorrectly was considering the insert to modify multiple tables of the view. (Bug#25122)Creating a table with latin characters in the name caused the output of
SHOW FULL TABLESto haveERRORfor the table type. (Bug#25081)MySQL would not compile when configured using
--without-query-cache. (Bug#25075)It was not possible to use XPath keywords as tag names for expressions used in the
ExtractValue()function. (Bug#24747)Increasing the width of a
DECIMALcolumn could cause column values to be changed. (Bug#24558)IF(
expr,unsigned_expr,unsigned_expr) was evaluated to a signed result, not unsigned. This has been corrected. The fix also affects constructs of the formIS [NOT] {TRUE|FALSE}, which were transformed internally intoIF()expressions that evaluated to a signed result.For existing views that were defined using
IS [NOT] {TRUE|FALSE}constructs, there is a related implication. The definitions of such views were stored using theIF()expression, not the original construct. This is manifest in thatSHOW CREATE VIEWshows the transformedIF()expression, not the original one. Existing views will evaluate correctly after the fix, but if you wantSHOW CREATE VIEWto display the original construct, you must drop the view and re-create it using its original definition. New views will retain the construct in their definition. (Bug#24532)SHOW ENGINE MUTEX STATUSfailed to produce an Unknown table engine error.A user-defined variable could be assigned an incorrect value if a temporary table was employed in obtaining the result of the query used to determine its value. (Bug#24010)
mysqlimport used a variable of the wrong type for the
--use-threadsoption, which could cause a crash on some architectures. (Bug#23814)Queries that used a temporary table for the outer query when evaluating a correlated subquery could return incorrect results. (Bug#23800)
On Windows, debug builds of mysqlbinlog could fail with a memory error. (Bug#23736)
When using certain server SQL modes, the
mysql.proctable was not created by mysql_install_db. (Bug#23669)DOUBLEvalues such as20070202191048.000000were being treated as illegal arguments byWEEK(). (Bug#23616)The server could crash if two or more threads initiated query cache resize operation at moments very close in time. (Bug#23527)
NOW()returned the wrong value in statements executed at server startup with the--init-fileoption. (Bug#23240)Setting the
slow_query_log_filesystem variable caused log output to go tothe general log, not the slow query log. (Bug#23225)When nesting stored procedures within a trigger on a table, a false dependency error was thrown when one of the nested procedures contained a
DROP TABLEstatement. (Bug#22580)Instance Manager did not remove the angel PID file on a clean shutdown. (Bug#22511)
EXPLAIN EXTENDEDdid not showWHEREconditions that were optimized away. (Bug#22331)IN ((,subquery))IN (((, and so forth, are equivalent tosubquery)))IN (, which is always interpreted as a table subquery (so that it is allowed to return more than one row). MySQL was treating the “over-parenthesized” subquery as a single-row subquery and rejecting it if it returned more than one row. This bug primarily affected automatically generated code (such as queries generated by Hibernate), because humans rarely write the over-parenthesized forms. (Bug#21904)subquery)An
INSERTtrigger invoking a stored routine that inserted into a table other than the one on which the trigger was defined would fail with a Table '...' doesn't exist referring to the second table when attempting to delete records from the first table. (Bug#21825)CURDATE()is less thanNOW(), either when comparingCURDATE()directly (CURDATE() < NOW()is true) or when castingCURDATE()toDATE(CAST(CURDATE() AS DATE) < NOW()is true). However, storingCURDATE()in aDATEcolumn and comparingincorrectly yielded false. This is fixed by comparing acol_name< NOW()DATEcolumn asDATETIMEfor comparisons to aDATETIMEconstant. (Bug#21103)When a stored routine attempted to execute a statement accessing a nonexistent table, the error was not caught by the routine's exception handler. (Bug#20713, Bug#8407)
For a stored procedure containing a
SELECTstatement that used a complicated join with anONexpression, the expression could be ignored during re-execution of the procedure, yielding an incorrect result. (Bug#20492)The conditions checked by the optimizer to allow use of indexes in
INpredicate calculations were unnecessarily tight and were relaxed. (Bug#20420)When a
TIME_FORMAT()expression was used as a column in aGROUP BYclause, the expression result was truncated. (Bug#20293)The creation of MySQL system tables was not checked for by mysql-test-run.pl. (Bug#20166)
For index reads, the
BLACKHOLEengine did not return end-of-file (which it must becauseBLACKHOLEtables contain no rows), causing some queries to crash. (Bug#19717)For
, the result could be incorrect ifexprIN(value_list)BIGINT UNSIGNEDvalues were used forexpror in the value list. (Bug#19342)When attempting to call a stored procedure creating a table from a trigger on a table
tblin a databasedb, the trigger failed with ERROR 1146 (42S02): Table 'db.tbl' doesn't exist. However, the actual reason that such a trigger fails is due to the fact thatCREATE TABLEcauses an implicitCOMMIT, and so a trigger cannot invoke a stored routine containing this statement. A trigger which does so now fails with ERROR 1422 (HY000): Explicit or implicit commit is not allowed in stored function or trigger, which makes clear the reason for the trigger's failure. (Bug#18914)While preparing prepared statements, the server acquired unnecessary table write locks. (Bug#18326)
The update columns for
INSERT ... SELECT ... ON DUPLICATE KEY UPDATEcould be assigned incorrect values if a temporary table was used to evaluate theSELECT. (Bug#16630)For
SUBSTRING()evaluation using a temporary table, whenSUBSTRING()was used on a LONGTEXT column, themax_lengthmetadata value of the result was incorrectly calculated and set to 0. Consequently, an empty string was returned instead of the correct result. (Bug#15757)Local variables in stored routines or triggers, when declared as the
BITtype, were interpreted as strings. (Bug#12976)For some operations, system tables in the
mysqldatabase must be accessed. For example, theHELPstatement requires the contents of the server-side help tables, andCONVERT_TZ()might need to read the time zone tables. However, to perform such operations while aLOCK TABLESstatement is in effect, the server required you to also lock the requisite system tables explicitly or a lock error occurred:mysql>
LOCK TABLE t1 READ;Query OK, 0 rows affected (0.02 sec) mysql>HELP HELP;ERROR 1100 (HY000) at line 4: Table 'help_topic' was not locked with LOCK TABLESNow, the server implicitly locks the system tables for reading as necessary so that you need not lock them explicitly. These tables are treated as just described:
mysql.help_category mysql.help_keyword mysql.help_relation mysql.help_topic mysql.proc mysql.time_zone mysql.time_zone_leap_second mysql.time_zone_name mysql.time_zone_transition mysql.time_zone_transition_type
If you want to explicitly place a
WRITElock on any of those tables with aLOCK TABLESstatement, the table must be the only one locked; no other table can be locked with the same statement. (Bug#9953)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
Note
After release, a trigger failure problem was found to have been introduced. (Bug#27006) Users affected by this issue should upgrade to MySQL 5.1.17, which corrects the problem.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Cluster API: Incompatible Change: The
AbortOptiontype is now a member of theNdbOperationclass; its values and behavior have also changed.NdbTransaction::AbortOptioncan no longer be used, and applications written against the NDB API may need to be rewritten and recompiled to accomodate these changes. For more information about this change, see TheNdbOperation::AbortOptionType.This also affects the behavior of the
NdbTransaction::execute()method, which now reports failure only if the transaction was actually aborted. SeeNdbTransaction::execute(), for more information.MySQL Cluster: Previously, when a data node failed to start more than 8 times in succession, this caused a forced shutdown of the cluster. Now, when a data node fails to start 7 consecutive times, the node does not start again until it is started with the
--initialoption, and a warning to this effect is written to the error log. (Bug#25984)MySQL Cluster: In the event that all cluster management and API nodes are configured with
ArbitrationRank = 0, ndb_mgmd now issues the following warning when starting: Cluster configuration warning: Neither MGM nor API nodes are configured with arbitrator, may cause complete cluster shutdown in case of host failure. (Bug#23546)MySQL Cluster: A number of new and more descriptive error messages covering transporter errors were added. (Bug#22025)
MySQL Cluster: A new configuration parameter
MemReportFrequencyallows for additional control of data node memory usage. Previously, only warnings at predetermined percentages of memory allocation were given; setting this parameter allows for that behavior to be overridden. For more information, see Defining MySQL Cluster Data Nodes.Cluster API: A new
ndb_mgm_get_clusterlog_loglevel()function was added to the MGM API.For more information, see
ndb_mgm_get_clusterlog_loglevel().The
localhostanonymous user account created during MySQL installation on Windows now has no global privileges. Formerly this account had all global privileges. For operations that require global privileges, therootaccount can be used instead. (Bug#24496)In the
INFORMATION_SCHEMAREFERENTIAL_CONSTRAINTStable, theUNIQUE_CONSTRAINT_NAMEcolumn incorrectly named the referenced table. Now it names the referenced constraint, and a new column,REFERENCED_TABLE_NAME, names the referenced table. (Bug#21713)RAND()now allows nonconstant initializers (such as a column name) as its argument. In this case, the seed is initialized with the value for each invocation ofRAND(). (One implication of this is that for equal argument values,RAND()will return the same value each time.) (Bug#6172)Added the
--auto-generate-sql-load-typeand--auto-generate-sql-write-numberoptions for mysqlslap.The bundled yaSSL library was upgraded to version 1.5.8.
Bugs fixed:
Security Fix: Using an
INFORMATION_SCHEMAtable withORDER BYin a subquery could cause a server crash.We would like to thank Oren Isacson of Flowgate Security Consulting and Stefan Streichsbier of SEC Consult for informing us of this problem. (Bug#24630, Bug#26556, CVE-2007-1420)
Partitioning: MySQL Cluster: A query with an
INclause against anNDBtable employing explicit user-defined partitioning did not always return all matching rows. (Bug#25821)MySQL Cluster: Replication: (Replication): Under some circumstances, the binary log thread could shut down while the slave SQL thread was still using it. (Bug#26015, Bug#26019)
MySQL Cluster: Replication: (Replication): The error message Last_Errno: 4294967295, Error in Write_rows event now supplies a valid error code. (Bug#19896)
MySQL Cluster: An inadvertent use of unaligned data caused ndb_restore to fail on some 64-bit platforms, including Sparc and Itanium-2. (Bug#26739)
MySQL Cluster: The InvalidUndoBufferSize error used the same error code (763) as the IncompatibleVersions error. InvalidUndoBufferSize now uses its own error code (779). (Bug#26490)
MySQL Cluster: The failure of a data node when restarting it with
--initialcould lead to failures of subsequent data node restarts. (Bug#26481)MySQL Cluster: Takeover for local checkpointing due to multiple failures of master nodes was sometimes incorrectly handled. (Bug#26457)
MySQL Cluster: The
LockPagesInMainMemoryparameter was not read until after distributed communication had already started between cluster nodes. When the value of this parameter was1, this could sometimes result in data node failure due to missed heartbeats. (Bug#26454)MySQL Cluster: Under some circumstances, following the restart of a management node, all data nodes would connect to it normally, but some of them subsequently failed to log any events to the management node. (Bug#26293)
MySQL Cluster: Condition pushdown did not work with prepared statements. (Bug#26225)
MySQL Cluster: A memory leak could cause problems during a node or cluster shutdown or failure. (Bug#25997)
MySQL Cluster: No appropriate error message was provided when there was insufficient REDO log file space for the cluster to start. (Bug#25801)
MySQL Cluster: An
UPDATEusing anINclause on anNDBtable on which there was a trigger caused mysqld to crash. (Bug#25522)MySQL Cluster: A memory allocation failure in
SUMA(the cluster Subscription Manager) could cause the cluster to crash. (Bug#25239)MySQL Cluster: The
ndb_size.tmplfile (necessary for using thendb_size.plscript) was missing from binary distributions. (Bug#24191)MySQL Cluster: The message Error 0 in readAutoIncrementValue(): no Error was written to the error log whenever
SHOW TABLE STATUSwas performed on a Cluster table that did not have anAUTO_INCREMENTcolumn.Note
This improves on and supersedes an earlier fix that was made for this issue in MySQL 5.1.12.
MySQL Cluster: When a node failed due to there being insufficient disk space to perform a local checkpoint, there was no indication that this was the source of the problem. Such a condition now produces an appropriate error message. (Bug#20121)
MySQL Cluster: In the event that cluster backup parameters such as
BackupWriteSizewere incorrectly set, no appropriate error was issued to indicate that this was the case. (Bug#19146)Replication: If a slave server closed its relay log (for example, due to an error during log rotation), the I/O thread did not recognize this and still tried to write to the log, causing a server crash. (Bug#10798)
Cluster API: Disk Data: A delete and a read performed in the same operation could cause one or more data nodes to crash. This could occur when the operation affected more than 5 columns concurrently, or when one or more of the columns was of the
VARCHARtype and was stored on disk. (Bug#25794)Cluster API: After defining a delete operation (using
NdbOperation::deleteTuple()) on a nonexistent primary key of a table having aBLOBorTEXTcolumn, invokingNdbTransaction::execute()caused the calling application to enter an endless loop rather than raising an error.This issue also affected ndb_restore; when restoring tables containing
BLOBorTEXTcolumns, this could cause it to consume all available memory and then crash. (Bug#24028)Cluster API:
libndbclient.sowas not versioned. (Bug#13522)Using
ORDER BYorGROUP BYcould yield different results when selecting from a view and selecting from the underlying table. (Bug#26209)DISTINCTqueries that were executed using a loose scan for anInnoDBtable that had been emptied caused a server crash. (Bug#26159)A
WHEREclause that usedBETWEENforDATETIMEvalues could be treated differently for aSELECTand a view defined as thatSELECT. (Bug#26124)Collation for
LEFT JOINcomparisons could be evaluated incorrectly, leading to improper query results. (Bug#26017)The
WITH CHECK OPTIONclause for views was ignored for updates of multiple-table views when the updates could not be performed on fly and the rows to update had to be put into temporary tables first. (Bug#25931)LOAD DATA INFILEdid not work with pipes. (Bug#25807)The
SEC_TO_TIME()andQUARTER()functions sometimes did not handleNULLvalues correctly. (Bug#25643)View definitions that used the
!operator were treated as containing theNOToperator, which has a different precedence and can produce different results. . (Bug#25580)An error in the name resolution of nested
JOIN ... USINGconstructs was corrected. (Bug#25575)GROUP BYandDISTINCTdid not groupNULLvalues for columns that have aUNIQUEindex. . (Bug#25551)The
--with-readlineoption for configure did not work for commercial source packages, but no error message was printed to that effect. Now a message is printed. (Bug#25530)A yaSSL program named test was installed, causing conflicts with the test system utility. It is no longer installed. (Bug#25417)
For a
UNIQUEindex containing manyNULLvalues, the optimizer would prefer the index forconditions over other more selective indexes. . (Bug#25407)colIS NULLAn
AFTER UPDATEtrigger on anInnoDBtable with a composite primary key caused the server to crash. (Bug#25398)Passing a
NULLvalue to a user-defined function from within a stored procedure crashes the server. (Bug#25382)perror crashed on some platforms due to failure to handle a
NULLpointer. (Bug#25344)mysql.server stop timed out too quickly (35 seconds) waiting for the server to exit. Now it waits up to 15 minutes, to ensure that the server exits. (Bug#25341)
A query that contained an
EXISTsubquery with aUNIONover correlated and uncorrelatedSELECTqueries could cause the server to crash. (Bug#25219)mysql_kill()caused a server crash when used on an SSL connection. (Bug#25203)yaSSL was sensitive to the presence of whitespace at the ends of lines in PEM-encoded certificates, causing a server crash. (Bug#25189)
A query with
ORDER BYandGROUP BYclauses where theORDER BYclause had more elements than theGROUP BYclause caused a memory overrun leading to a crash of the server. (Bug#25172)Use of
ON DUPLICATE KEY UPDATEdefeated the usual restriction against inserting into a join-based view unless only one of the underlying tables is used. (Bug#25123)ALTER TABLE ... ENABLE KEYSacquired a global lock, preventing concurrent execution of other statements that use tables. . (Bug#25044)OPTIMIZE TABLEcaused a race condition in the I/O cache. (Bug#25042)A return value of
-1from user-defined handlers was not handled well and could result in conflicts with server code. (Bug#24987)Certain joins using
Range checked for each recordin the query execution plan could cause the server to crash. (Bug#24776)ALTER TABLEcaused loss ofCASCADEclauses forInnoDBtables. (Bug#24741)If an
ORDER BYorGROUP BYlist included a constant expression being optimized away and, at the same time, containing single-row subselects that returned more that one row, no error was reported. If a query required sorting by expressions containing single-row subselects that returned more than one row, execution of the query could cause a server crash. (Bug#24653)For
ALTER TABLE, usingORDER BYcould cause a server crash. Now theexpressionORDER BYclause allows only column names to be specified as sort criteria (which was the only documented syntax, anyway). (Bug#24562)Within stored routines or prepared statements, inconsistent results occurred with multiple use of
INSERT ... SELECT ... ON DUPLICATE KEY UPDATEwhen theON DUPLICATE KEY UPDATEclause erroneously tried to assign a value to a column mentioned only in itsSELECTpart. (Bug#24491)Expressions of the form
(a, b) IN (SELECT a, MIN(b) FROM t GROUP BY a)could produce incorrect results when columnaof tabletcontainedNULLvalues while columnbdid not. (Bug#24420)If a prepared statement accessed a view, access to the tables listed in the query after that view was checked in the security context of the view. (Bug#24404)
A nested query on a partitioned table returned fewer records than on the corresponding nonpartitioned table, when the subquery affected more than one partition. (Bug#24186)
Expressions of the form
(a, b) IN (SELECT c, d ...)could produce incorrect results ifa,b, or both wereNULL. (Bug#24127)Queries that evaluate
NULL IN (SELECT ... UNION SELECT ...)could produce an incorrect result (FALSEinstead ofNULL). (Bug#24085)Some
UPDATEstatements were slower than in previous versions when the search key could not be converted to a valid value for the type of the search column. (Bug#24035)ISNULL(DATE(NULL))andISNULL(CAST(NULL AS DATE))erroneously returned false. (Bug#23938)Within a stored routine, accessing a declared routine variable with
PROCEDURE ANALYSE()caused a server crash. (Bug#23782)For an
InnoDBtable with anyON DELETEtrigger,TRUNCATE TABLEmapped toDELETEand activated triggers. Now a fast truncation occurs and triggers are not activated. .Important
As a result of this fix,
TRUNCATE TABLEnow requires theDROPprivilege rather than theDELETEprivilege.With
ONLY_FULL_GROUP_BYenabled, the server was too strict: Some expressions involving only aggregate values were rejected as nonaggregate (for example,MAX(a)–MIN(a)). (Bug#23417)The arguments to the
ENCODE()and theDECODE()functions were not printed correctly, causing problems in the output ofEXPLAIN EXTENDEDand in view definitions. (Bug#23409)Some queries against
INFORMATION_SCHEMAthat used subqueries failed. . (Bug#23299)readlinedetection did not work correctly on NetBSD. (Bug#23293)The number of
setsockopt()calls performed for reads and writes to the network socket was reduced to decrease system call overhead. (Bug#22943)Storing values specified as hexadecimal values 64 or more bits long in
BIT(64),BIGINT, orBIGINT UNSIGNEDcolumns did not raise any warning or error if the value was out of range. (Bug#22533)Type conversion errors during formation of index search conditions were not correctly checked, leading to incorrect query results. (Bug#22344)
For the
IF()andCOALESCE()function andCASEexpressions, large unsigned integer values could be mishandled and result in warnings. (Bug#22026)Inserting
DEFAULTinto a column with no default value could result in garbage in the column. Now the same result occurs as when insertingNULLinto aNOT NULLcolumn. (Bug#20691)Indexes disabled with
ALTER TABLE ... DISABLE KEYScould in some cases be used by specifyingFORCE INDEX. (Bug#20604)If a duplicate key value was present in the table,
INSERT ... ON DUPLICATE KEY UPDATEreported a row count indicating that a record was updated, even when no record actually changed due to the old and new values being the same. Now it reports a row count of zero. (Bug#19978)ORDER BYvalues of theDOUBLEorDECIMALtypes could change the result returned by a query. (Bug#19690)The
readlinelibrary wrote to uninitialized memory, causing mysql to crash. (Bug#19474)Use of already freed memory caused SSL connections to hang forever. (Bug#19209)
The server might fail to use an appropriate index for
DELETEwhenORDER BY,LIMIT, and a nonrestrictingWHEREare present. (Bug#17711)The optimizer used a filesort rather than a
consttable read in some cases when the latter was possible. (Bug#16590)To enable installation of MySQL RPMs on Linux systems running RHEL 4 (which includes SE-Linux) additional information was provided to specify some actions that are allowed to the MySQL binaries. (Bug#12676)
CONNECTIONis no longer treated as a reserved word. (Bug#12204)The presence of
ORDER BYin a view definition prevented theMERGEalgorithm from being used to resolve the view even if nothing else in the definition required theTEMPTABLEalgorithm. (Bug#12122)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: MySQL Cluster: The
LockPagesInMainMemoryconfiguration parameter has changed its type and possible values. For more information, seeLockPagesInMainMemory.Important
The values
trueandfalseare no longer accepted for this parameter. If you were using this parameter and had it set tofalsein a previous release, you must change it to0. If you had this parameter set totrue, you should instead use1to obtain the same behavior as previously, or2to take advantage of new functionality introduced with this release, as described in the section cited above.Incompatible Change:
InnoDBrolls back only the last statement on a transaction timeout. A new option,--innodb_rollback_on_timeout, causesInnoDBto abort and roll back the entire transaction if a transaction timeout occurs (the same behavior as in MySQL 5.0.13 and earlier). (Bug#24200)Incompatible Change: Previously, the
DATE_FORMAT()function returned a binary string. Now it returns a string with a character set and collation given bycharacter_set_connectionandcollation_connectionso that it can return month and weekday names containing non-ASCII characters. (Bug#22646)Incompatible Change: The following conditions apply to enabling the
read_onlysystem variable:If you attempt to enable
read_onlywhile you have any explicit locks (acquired withLOCK TABLESor have a pending transaction, an error will occur.If other clients hold explicit table locks or have pending transactions, the attempt to enable
read_onlyblocks until the locks are released and the transactions end. While the attempt to enableread_onlyis pending, requests by other clients for table locks or to begin transactions also block untilread_onlyhas been set.read_onlycan be enabled while you hold a global read lock (acquired withFLUSH TABLES WITH READ LOCK) because that does not involve table locks.
Previously, the attempt to enable
read_onlywould return immediately even if explicit locks or transactions were pending, so some data changes could occur for statements executing in the server at the same time. (Bug#22009, Bug#11733)Incompatible Change: Previously, the
ARCHIVEstorage engine created a metadata file with an extension of.ARMfor each table. The engine no longer creates this file.Important Change: When using
MERGEtables the definition of theMERGEtable and theMyISAMtables are checked each time the tables are opened for access (including anySELECTorINSERTstatement. Each table is compared for column order, types, sizes and associated. If there is a difference in any one of the tables then the statement will fail.Important Change: Previously, duplicate-key errors were indicated by the
ER_DUP_ENTRYerror code (1062). This code is no longer used. Instead, the server returnsER_DUP_ENTRY_WITH_KEY_NAME(1582), and the error message indicates the name of the index for which the duplicate occurred. Applications that test for duplicate keys should look for both error codes if they need to be compatible with current and older servers.See also Bug#28842.
MySQL Cluster: The
NDBstorage engine could leak memory during file operations. (Bug#21858)Replication: Calling a nondeterministic stored routine when using statement-based replication now throws an error. Formerly, defining such a stored routine would cause an error to be thrown. (Bug#16456)
On Unix, when searching the standard locations for option files, MySQL programs now also look for /etc/mysql/my.cnf after checking for /etc/my.cnf and before checking the remaining locations. (Bug#25104)
The default value of the
max_connectionsvariable has been increased to 151 in order that Websites running on Apache and using MySQL will not have more processes trying to access MySQL than the default number of connections available.(The maximum number of Apache processes is determined by the Apache
MaxClient, which defaults to 256, but is usually set to 150 in thehttpd.confcommonly distributed with Apache. For more information aboutMaxClient, see http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients.) (Bug#23883)The
Com_create_userstatus variable was added (for countingCREATE USERstatements). (Bug#22958)The
--memlockoption relies on system calls that are unreliable on some operating systems. If a crash occurs, the server now checks whether--memlockwas specified and if so issues some information about possible workarounds. (Bug#22860)The (undocumented)
UNIQUE_USERS()andGROUP_UNIQUE_USERS()functions were removed. (Bug#22687)Partitioning of tables using the
FEDERATEDstorage engine is no longer permitted. Attempting to create such a table or to modify an existing table so that is uses both partitioning andFEDERATEDnow fails with an error. (Bug#22451)The
--skip-thread-priorityoption now is enabled by default for binary Mac OS X distributions. Use of thread priorities degrades performance on Mac OS X. (Bug#18526)read_onlycan be enabled while you hold a global read lock (acquired withFLUSH TABLES WITH READ LOCK) because that does not involve table locks.The bundled yaSSL library was upgraded to version 1.5.0.
Remote servers for use with the
FEDERATEDstorage engine now can be managed with the newCREATE/ALTER/DROP SERVERsyntax.Added the
--disable-grant-optionsoption to configure. If configure is run with this option, the--bootstrap,--skip-grant-tables, and--init-fileoptions for mysqld are disabled and cannot be used. For Windows, the configure.js script recognizes theDISABLE_GRANT_OPTIONSflag, which has the same effect.If other clients hold explicit table locks or have pending transactions, the attempt to enable
read_onlyblocks until the locks are released and the transactions end. While the attempt to enableread_onlyis pending, requests by other clients for table locks or to begin transactions also block untilread_onlyhas been set.If you attempt to enable
read_onlywhile you have any explicit locks (acquired withLOCK TABLESor have a pending transaction, an error will occur.
Bugs fixed:
Incompatible Change: For
ENUMcolumns that had enumeration values containing commas, the commas were mapped to0xffinternally. However, this rendered the commas indistinguishable from true0xffcharacters in the values. This no longer occurs. However, the fix requires that you dump and reload any tables that haveENUMcolumns containing any true0xffvalues. Dump the tables using mysqldump with the current server before upgrading from a version of MySQL 5.1 older than 5.1.15 to version 5.1.15 or newer. (Bug#24660)Partitioning: MySQL Cluster: Non-32-bit, nonaligned columns were not handled correctly in explicitly partitioned
NDBtables. (Bug#25587)MySQL Cluster: Replication: (Replication): Connecting a mysqld to a cluster where not all nodes were running, starting the remaining cluster nodes, and then disconnecting from the cluster caused the mysqld process to crash. (Bug#25387)
MySQL Cluster: It was not possible to create an
NDBtable with a key on twoVARCHARcolumns where both columns had a storage length in excess of 256. (Bug#25746)MySQL Cluster: Hosts in clusters with large numbers of nodes could experience excessive CPU usage while obtaining configuration data. (Bug#25711)
MySQL Cluster: In some circumstances, shutting down the cluster could cause connected mysqld processes to crash. (Bug#25668)
MySQL Cluster: Some aggregate queries such as
SELECT COUNT(*)performed a table scan onNDBtables rather than checking table statistics, causing such queries to perform much more slowly in MySQL Cluster 5.1 than in 5.0. (Bug#25567)MySQL Cluster: Memory allocations for
TEXTcolumns were calculated incorrectly, resulting in space being wasted and other issues. (Bug#25562)MySQL Cluster: The failure of a master node during a node restart could lead to a resource leak, causing later node failures. (Bug#25554)
MySQL Cluster: The failure of a node during a local checkpoint could lead to other node failures. (Bug#25468)
MySQL Cluster: A node shutdown occurred if the master failed during a commit. (Bug#25364)
MySQL Cluster: Creating a nonunique index with the
USING HASHclause silently created an ordered index instead of issuing a warning. (Bug#24820)MySQL Cluster: ndb_config failed when trying to use 2 management servers and node IDs. (Bug#23887)
MySQL Cluster: When a data node was shut down using the management client
STOPcommand, a connection event (NDB_LE_Connected) was logged instead of a disconnection event (NDB_LE_Disconnected). (Bug#22773)MySQL Cluster: The management server did not handle logging of node shutdown events correctly in certain cases. (Bug#22013)
MySQL Cluster:
SELECTstatements with aBLOBorTEXTcolumn in the selected column list and aWHEREcondition including a primary key lookup on aVARCHARprimary key produced empty result sets. (Bug#19956)MySQL Cluster: When stopping and restarting multiple data nodes, the last node to be restarted would sometimes hang in Phase 100. (Bug#19645)
Replication: Using row-based replication to replicate to a table having at least one extra
BITcolumn with a default value on the slave as compared to the master could cause the slave to fail. (Bug#24490)Replication: When
SET PASSWORDwas written to the binary log double quotes were included in the statement. If the slave was running in with the server SQL mode set toANSI_QUOTES, then the event failed, which halted the replication process. (Bug#24158)Replication: A stored procedure, executed from a connection using a binary character set, and which wrote multibyte data, would write incorrectly escaped entries to the binary log. This caused syntax errors, and caused replication to fail. (Bug#23619, Bug#24492)
Replication: Using
CREATE TABLE ... SELECTand rolling back the transaction would leave an empty table on the master, but the instructions would not be recorded in the binary log and therefore replicated to the slave. This would result in a difference between the master and slave databases. An implicit commit has been added to ensure consistency. (Bug#22865)Replication: Changes to the
lc_time_namessystem variable were not replicated. (Bug#22645)Replication: For
SET,SELECT, andDOstatements that invoked a stored function from a database other than the default database, the function invocation could fail to be replicated. (Bug#19725)Disk Data: Following 3 or more missed local checkpoints by a cluster node, a restart of the node caused incorrect undo information to be used for Disk Data tables. (Bug#25636)
Disk Data:
MEDIUMTEXTcolumns of Disk Data tables were stored in memory rather than on disk, even if the columns were not indexed. (Bug#25001)Disk Data: Performing a node restart with a newly dropped Disk Data table could lead to failure of the node during the restart. (Bug#24917)
Disk Data: Changing a column specification or issuing a
TRUNCATEstatement on a Disk Data table caused the table to become an in-memory table. (Bug#24667, Bug#25296)Disk Data: When restoring from backup a cluster containing any Disk Data tables with hidden primary keys, a node failure resulted which could lead to a crash of the cluster. (Bug#24166)
Disk Data: Repeated
CREATE,DROP, orTRUNCATEin various combinations with system restarts between these operations could lead to the eventual failure of a system restart. (Bug#21948)Disk Data: Extents that should have been available for re-use following a
DROP TABLEoperation were not actually made available again until after the cluster had performed a local checkpoint. (Bug#17605)Cluster Replication: Certain errors in replication setups could lead to unexpected node failures. (Bug#25755)
Cluster Replication: Connecting an API node to the cluster during a node restart while performing database operations could cause the restarting node to fail. (Bug#25329)
Cluster Replication: Following a restart of the master cluster, the latest GCI was set to 0 upon reconnection to the slave. (Bug#21806)
Cluster API: Deletion of an
Ndb_cluster_connectionobject took a very long time. (Bug#25487)Cluster API: Invoking the
NdbTransaction::execute()method using execution typeCommitand abort optionAO_IgnoreErrorcould lead to a crash of the transaction coordinator (DBTC). (Bug#25090)Cluster API: A unique index lookup on a nonexistent tuple could lead to a data node timeout (error 4012). (Bug#25059)
Cluster API: When using the
NdbTransaction::execute()method, a very long timeout (greater than 5 minutes) could result if the last data node being polled was disconnected from the cluster. (Bug#24949)Cluster API: Due to an error in the computation of table fragment arrays, some transactions were not executed from the correct starting point. (Bug#24914)
mysqltest_embedded crashed at startup. (Bug#25890)
Referencing an ambiguous column alias in an expression in the
ORDER BYclause of a query caused the server to crash. (Bug#25427)A number of issues were uncovered by Valgrind. (Bug#25396)
Using a view in combination with a
USINGclause caused column aliases to be ignored. (Bug#25106)A multiple-table
DELETE QUICKcould sometimes cause one of the affected tables to become corrupted. (Bug#25048)An assertion failed incorrectly for prepared statements that contained a single-row uncorrelated subquery that was used as an argument of the
IS NULLpredicate. (Bug#25027)In the
INFORMATION_SCHEMA.KEY_COLUMN_USAGEtable, the value displayed for theREFERENCED_TABLE_NAMEcolumn was the table name as encoded for disk storage, not the actual table name. (Bug#25026)The
REPEAT()function could returnNULLwhen passed a column for the count argument. (Bug#24947)mysql_upgrade failed if the
--password(or-p) option was given. (Bug#24896)Accessing a fixed record format table with a crashed key definition results in server/myisamchk segmentation fault. (Bug#24855)
mysqld_multi and mysqlaccess looked for option files in
/etceven if the--sysconfdiroption for configure had been given to specify a different directory. (Bug#24780)If there was insufficient memory available to mysqld, this could sometimes cause the server to hang during startup. (Bug#24751)
Optimizations that are legal only for subqueries without tables and
WHEREconditions were applied for any subquery without tables. (Bug#24670)Under certain rare circumstances, local checkpoints were not performed properly, leading to an inability to restart one or more data nodes. (Bug#24664)
A workaround was implemented to avoid a race condition in the NPTL
pthread_exit()implementation. (Bug#24507)Under some circumstances, a
REORGANIZE PARTITIONstatement could crash mysqld. (Bug#24502)mysqltest crashed with a stack overflow. (Bug#24498)
Attempts to access a
MyISAMtable with a corrupt column definition caused a server crash. (Bug#24401)ALTER ENABLE KEYSorALTER TABLE DISABLE KEYScombined with anotherALTER TABLEoption other thanRENAME TOdid nothing. In addition, if ALTER TABLE was used on a table having disabled keys, the keys of the resulting table were enabled. (Bug#24395)When opening a corrupted
.frmfile during a query, the server crashes. (Bug#24358)The
--externoption for mysql-test-run.pl did not function correctly. (Bug#24354)Some joins in which one of the joined tables was a view could return erroneous results or crash the server. (Bug#24345)
The mysql.server script used the source command, which is less portable than the . command; it now uses . instead. (Bug#24294)
A view was not handled correctly if the
SELECTpart contained “\Z”. (Bug#24293)mysql_install_db did not create the
mysql.plugintable if strict SQL mode was enabled. (Bug#24270)A query using
WHEREcould cause the server to crash. (Bug#24261)unsigned_columnNOT IN ('negative_value')ALTER TABLEstatements that performed bothRENAME TOand{ENABLE|DISABLE} KEYSoperations caused a server crash. (Bug#24219)A
FETCHstatement using a cursor on a table which was not in the table cache could sometimes cause the server to crash. (Bug#24117)Hebrew-to-Unicode conversion failed for some characters. Definitions for the following Hebrew characters (as specified by the ISO/IEC 8859-8:1999) were added: LEFT-TO-RIGHT MARK (LRM), RIGHT-TO-LEFT MARK (RLM) (Bug#24037)
On HP-UX, mysqltest (nonthread-safe) crashed due to being linked against a thread-safe
libmysyslibrary. (Bug#23984)The server was built even when configure was run with the
--without-serveroption. (Bug#23973)See also Bug#32898.
The MySQL 5.1.12 binaries for Windows were missing the
FEDERATED,EXAMPLE, andBLACKHOLEstorage engines. (Bug#23900)ROW_COUNT()did not work properly as an argument to a stored procedure. (Bug#23760)When reading from the standard input on Windows, mysqlbinlog opened the input in text mode rather than binary mode and consequently misinterpreted some characters such as Control-Z. (Bug#23735)
OPTIMIZE TABLEtried to sort R-tree indexes such as spatial indexes, although this is not possible (see Section 12.5.2.5, “OPTIMIZE TABLESyntax”). (Bug#23578)The row count for
MyISAMtables was not updated properly, causingSHOW TABLE STATUSto report incorrect values. (Bug#23526)The Instance Manager
DROP INSTANCEcommand did not work. (Bug#23476)User-defined variables could consume excess memory, leading to a crash caused by the exhaustion of resources available to the
MEMORYstorage engine, due to the fact that this engine is used by MySQL for variable storage and intermediate results ofGROUP BYqueries. WhereSEThad been used, such a condition could instead give rise to the misleading error message You may only use constant expressions with SET, rather than Out of memory (Needed NNNNNN bytes). (Bug#23443)A table created with the
ROW_FORMAT = FIXEDtable option lost the option if an index was added or dropped withCREATE INDEXorDROP INDEX. (Bug#23404)A deadlock could occur, with the server hanging on
Closing tables, with a sufficient number of concurrentINSERT DELAYED,FLUSH TABLES, andALTER TABLEoperations. (Bug#23312)Accuracy was improved for comparisons between
DECIMALcolumns and numbers represented as strings. (Bug#23260)The Instance Manager
STOP INSTANCEcommand took too much time and caused Instance Manager to be unresponsive. (Bug#23215)If there was insufficient memory to store or update a blob record in a
MyISAMtable then the table will marked as crashed. (Bug#23196)A compressed
MyISAMtable that became corrupted could crash myisamchk and possibly the MySQL Server. (Bug#23139)CREATE TABLE ... SELECTstatements were not rolled back correctly. As part of the fix, such a statement now causes an implicit commit before and after it is executed. However, it does not cause a commit when used to create a temporary table. (Bug#22864)mysql_upgrade failed when called with a
--basedirpath name containing spaces. (Bug#22801)Using
INSTALL PLUGINfollowed by a restart of the server caused an error due to memory not being properly initialized. (Bug#22694)SET lc_time_names =allowed only exact literal values, not expression values. (Bug#22647)valueA partitioned table that used the
DATA DIRECTORYoption, where the data directory was the same as the directory in which the table definition file resided, became corrupted followingALTER TABLE ENGINE=ARCHIVE. This was actually due to an issue with theARCHIVEstorage engine, and not with partitioned tables in general. (Bug#22634)The
STDDEV()function returned a positive value for data sets consisting of a single value. (Bug#22555)SHOW COLUMNSreported someNOT NULLcolumns asNULL. (Bug#22377)A server crash occurred when using
LOAD DATAto load a table containing aNOT NULLspatial column, when the statement did not load the spatial column. Now aNULL supplied to NOT NULL columnerror occurs. (Bug#22372)An
ALTER TABLEstatement that used aRENAMEclause in combination with aMODIFYorCHANGEthat did not actually change the table (for example, when it changed a column's type fromINTtoINT). The behavior caused by this bug differed according to whether or not the storage engine used by the table was transactional or nontransactional. For transactional tables (such as those using theInnoDBstorage engine), the statement simply failed; for nontransactional tables (such as those using theMyISAMstorage engine), theALTER TABLEstatement succeeding renaming the table, but subsequentSELECTstatements against the renamed table would fail. (Bug#22369)The Instance Manager
STOP INSTANCEcommand could not be applied to instances in theCrashed,Failed, orAbandonedstate. (Bug#22306)DATE_ADD()requires complete dates with no “zero” parts, but sometimes did not returnNULLwhen given such a date. (Bug#22229)Some small double precision numbers (such as
1.00000001e-300) that should have been accepted were truncated to zero. (Bug#22129)Changing the value of
MI_KEY_BLOCK_LENGTHinmyisam.hand recompiling MySQL resulted in a myisamchk that saw existingMyISAMtables as corrupt. (Bug#22119)For a nonexistent table,
DROP TEMPORARY TABLEfailed with an incorrect error message ifread_onlywas enabled. (Bug#22077)A crash of the MySQL Server could occur when unpacking a
BLOBcolumn from a row in a corrupted MyISAM table. This could happen when trying to repair a table using eitherREPAIR TABLEor myisamchk; it could also happen when trying to access such a “broken” row using statements likeSELECTif the table was not marked as crashed. (Bug#22053)The code for generating
USEstatements for binary logging ofCREATE PROCEDUREstatements resulted in confusing output from mysqlbinlog forDROP PROCEDUREstatements. (Bug#22043)STR_TO_DATE()returnedNULLif the format string contained a space following a nonformat character. (Bug#22029)It was possible to use
DATETIMEvalues whose year, month, and day parts were all zeroes but whose hour, minute, and second parts contained nonzero values, an example of such an illegalDATETIMEbeing'0000-00-00 11:23:45'.Note
This fix was reverted in MySQL 5.1.18.
See also Bug#25301.
SSL connections could hang at connection shutdown. (Bug#21781, Bug#24148)
yaSSL crashed on pre-Pentium Intel CPUs. (Bug#21765)
Using
FLUSH TABLESin one connection while another connection is usingHANDLERstatements caused a server crash.Note
This fix was reverted in MySQL 5.1.22
See also Bug#29474.
The
FEDERATEDstorage engine did not support theeuckrcharacter set. (Bug#21556)InnoDBcrashed while performing XA recovery of prepared transactions. (Bug#21468)It was possible to set the backslash character (“
\”) as the delimiter character usingDELIMITER, but not actually possible to use it as the delimiter. (Bug#21412)Using
ALTER TABLEto convert aCSVtable containingNULLvalues toMyISAMresulted in warnings. (Bug#21328)When updating a table that used a
JOINof the table itself (for example, when building trees) and the table was modified on one side of the expression, the table would either be reported as crashed or the wrong rows in the table would be updated. (Bug#21310)mysqld_error.hwas not installed when only the client libraries were built. (Bug#21265)InnoDB: During a restart of the MySQL Server that followed the creation of a temporary table using theInnoDBstorage engine, MySQL failed to clean up in such a way thatInnoDBstill attempted to find the files associated with such tables. (Bug#20867)Selecting into variables sometimes returned incorrect wrong results. (Bug#20836)
Queries of the form
SELECT ... WHEREfailed when the server used a single-byte character set and the client used a multi-byte character set. (Bug#20835)string= ANY(...)See also Bug#34760.
mysql_fix_privilege_tables.sqlaltered thetable_privs.table_privcolumn to contain too few privileges, causing loss of theCREATE VIEWandSHOW VIEWprivileges. (Bug#20589)A stored routine containing semicolon in its body could not be reloaded from a dump of a binary log. (Bug#20396)
SELECT ... FOR UPDATE,SELECT ... LOCK IN SHARE MODE,DELETE, andUPDATEstatements executed using a full table scan were not releasing locks on rows that did not satisfy theWHEREcondition. (Bug#20390)The BUILD/check-cpu script did not recognize Celeron processors. (Bug#20061)
Unsigned
BIGINTvalues treated as signed values by theMOD()function. (Bug#19955)Compiling PHP 5.1 with the MySQL static libraries failed on some versions of Linux. (Bug#19817)
The
DELIMITERstatement did not work correctly when used in an SQL file run using theSOURCEstatement. (Bug#19799)mysqltest incorrectly tried to retrieve result sets for some queries where no result set was available. (Bug#19410)
VARBINARYcolumn values inserted on a MySQL 4.1 server had trailing zeroes following upgrade to MySQL 5.0 or later. (Bug#19371)Some
CASEstatements inside stored routines could lead to excessive resource usage or a crash of the server. (Bug#19194, Bug#24854)Instance Manager could crash during shutdown. (Bug#19044)
myisampack wrote to unallocated memory, causing a crash. (Bug#17951)
FLUSH LOGSor mysqladmin flush-logs caused a server crash if the binary log was not open. (Bug#17733)mysql_fix_privilege_tables did not accept a password containing embedded space or apostrophe characters. (Bug#17700)
No warning was issued for use of the
DATA DIRECTORYorINDEX DIRECTORYtable options on a platform that does not support them. (Bug#17498)The
FEDERATEDstorage engine did not support theutf8character set. (Bug#17044)The optimizer removes expressions from
GROUP BYandDISTINCTclauses if they happen to participate inpredicates of theexpression=constantWHEREclause, the idea being that, if the expression is equal to a constant, then it cannot take on multiple values. However, for predicates where the expression and the constant item are of different result types (for example, when a string column is compared to 0), this is not valid, and can lead to invalid results in such cases. The optimizer now performs an additional check of the result types of the expression and the constant; if their types differ, then the expression is not removed from theGROUP BYlist. (Bug#15881)When a prepared statement failed during the prepare operation, the error code was not cleared when it was reused, even if the subsequent use was successful. (Bug#15518)
Dropping a user-defined function sometimes did not remove the UDF entry from the
mysql.proctable. (Bug#15439)Inserting a row into a table without specifying a value for a
BINARY(column caused the column to be set to spaces, not zeroes. (Bug#14171)N) NOT NULLOn Windows, the
SLEEP()function could sleep too long, especially after a change to the system clock. (Bug#14094, Bug#24686, Bug#17635)mysqldump --order-by-primary failed if the primary key name was an identifier that required quoting. (Bug#13926)
Subqueries of the form
NULL IN (SELECT ...)returned invalid results. (Bug#8804, Bug#23485)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Cluster Replication: Incompatible Change: Two major changes have taken place with regard to the MySQL Cluster system tables. These are:
The
clusterdatabase is no longer used. The tables formerly found in theclusterdatabase are now in themysqldatabase, and have been renamed asndb_binlog_index,ndb_apply_status, andndb_schema.The
mysql.ndb_apply_statusandmysql.ndb_schematables (formerlycluster.apply_statusandcluster.schemaare now created by ndb_restore, in the event that they do not already exist on the slave cluster.
Note
When upgrading from versions of MySQL previous to 5.1.14 to 5.1.14 or later,
mysql_fix_privilege_tablesmerely creates a newmysql.ndb_binlog_indextable, but does not remove the existingclusterdatabase (or, if upgrading from MySQL 5.1.7 or earlier, the existingcluster_replicationdatabase), nor any of the tables in it.For more information, see MySQL Cluster Replication Schema and Tables. (Bug#14612)
Cluster Replication: Incompatible Change: The
clusterdatabase is no longer used. The tables formerly found in theclusterdatabase are now in themysqldatabase, and have been renamed asndb_binlog_index,ndb_apply_status, andndb_schema.Incompatible Change: The
prepared_stmt_countsystem variable has been converted to thePrepared_stmt_countglobal status variable (viewable with theSHOW GLOBAL STATUSstatement). (Bug#23159)Incompatible Change: Previously, you could create a user-defined function (UDF) or stored function with the same name as a built-in function, but could not invoke the UDF. Now an error occurs if you try to create such a UDF. The server also now generates a warning if you create a stored function with the same name as a built-in function. It is not considered an error to create a stored function with the same name as a built-in function because you can invoke the function using
syntax. However, the server now generates a warning in this case.db_name.func_name()See Section 8.2.4, “Function Name Parsing and Resolution”, for the rules describing how the server interprets references to different kinds of functions. (Bug#22619, Bug#18239)
MySQL Cluster: Backup messages are now printed to the Cluster log. (Bug#24544)
MySQL Cluster: Setting the configuration parameter
LockPagesInMainMemoryhad no effect. (Bug#24461)MySQL Cluster: The error message Management server closed connection, when recorded in the MySQL error log, now includes a timestamp indicating when the error took place. (Bug#21519)
MySQL Cluster: It is now possible to create a unique hashed index on a column that is not defined as
NOT NULL.Note
This change applies only to tables using the
NDBstorage engine.Unique indexes on columns in
NDBtables do not store null values because they are mapped to primary keys in an internal index table (and primary keys cannot contain nulls).Normally, an additional ordered index is created when one creates unique indexes on
NDBtable columns; this can be used to search forNULLvalues. However, ifUSING HASHis specified when such an index is created, no ordered index is created.The reason for permitting unique hash indexes with null values is that, in some cases, the user wants to save space if a large number of records are pre-allocated but not fully initialized. This also assumes that the user will not try to search for null values. Since MySQL does not support indexes that are not allowed to be searched in some cases, the
NDBstorage engine uses a full table scan with pushed conditions for the referenced index columns to return the correct result.A warning is returned if one creates a unique nullable hash index, since the query optimizer should be provided a hint not to use it with
NULLvalues if this can be avoided. (Bug#21507)MySQL Cluster: (Disk Data): The output of mysqldump now includes by default all tablespace and logfile group definitions used by any tables or databases that are dumped.
Note
The working of the
--all-tablespacesor-Yoption for mysqldump remains unaffected by this change.DROP TRIGGERnow supports anIF EXISTSclause. (Bug#23703)Direct and indirect usage of stored routines, user-defined functions, and table references is now prohibited in
CREATE EVENTandALTER EVENTstatements.See Section 12.1.11, “
CREATE EVENTSyntax”, and Section 12.1.2, “ALTER EVENTSyntax”, for more specific information. (Bug#22830)The XPath operators
<and>, as implemented in theExtractValue()function, operated in reverse.With this fix, all standard XPath comparison operators should now be supported correctly for use with the
ExtractValue()andUpdateXML()functions. (Bug#22823)For the mysql client, display of result set metadata now is enabled with the
--column-type-infooption rather than with--debug-info/-T.mysqladmin, mysqlcheck, mysqldump, mysqlimport, and mysqlshow now accept the
--debug-infooption, which displays debugging information and memory and CPU usage statistics at program exit.
Bugs fixed:
Performance: Evaluation of subqueries that require the filesort algorithm were allocating and freeing the
sort_buffer_sizebuffer many times, resulting in slow performance. Now the buffer is allocated once and reused. (Bug#21727)MySQL Cluster: Replication: (Replication): If errors occurred during purging of the binary logs, extraneous rows could remain left in the
binlog_indextable. (Bug#15021)MySQL Cluster: The failure of a data node failure during a schema operation could lead to additional node failures. (Bug#24752)
MySQL Cluster: A committed read could be attempted before a data node had time to connect, causing a timeout error. (Bug#24717)
MySQL Cluster: The simultaneous shutdown of mysqld and ndbd processes caused unnecessary locking. (Bug#24655)
MySQL Cluster: The failure of the master node in a node group during the allocation of node IDs could cause ndb_mgmd to hang. (Bug#24543)
MySQL Cluster: In certain rare cases, a data node could crash due to a typographical error in the MySQL Cluster source code. (Bug#24476)
MySQL Cluster: Creating a new tables containing a
BLOBcolumn when the server was short of memory could cause the server to crash. (Bug#24470)MySQL Cluster: Sudden disconnection of an SQL or data node could lead to shutdown of data nodes with the error failed ndbrequire. (Bug#24447)
MySQL Cluster: Any statement following the execution of
CREATE TABLE ... LIKE(wherendb_tablendb_tablewas a table using theNDBstorage engine), would cause the mysql client to hang. (Bug#24301)MySQL Cluster: (Disk Data): Excessive fragmentation of Disk Data files (including log files and data files) could occur during the course of normal use. (Bug#24143)
MySQL Cluster: When the management client command
ALL RESTART -iwas executed while one data node was not running, all data nodes in the cluster were shut down. (Bug#24105)MySQL Cluster: A query using an index scan followed by a delete operation, and then a rollback could cause one or more data nodes to crash. (Bug#24039)
MySQL Cluster: (Disk Data): Under some circumstances, a
DELETEfrom a Disk Data table could cause mysqld to crash. (Bug#23542)MySQL Cluster: It was possible for the sum of the
MaxNoOfTables,MaxNoOfOrderedIndexes, andMaxNoOfUniqueHashIndexesconfiguration parameters, plus the number of system tables to exceed the maximum value for aUint32number. In such a case, the cluster's data nodes failed to start, and no reason for this could easily be determined from the error messages provided. (Bug#22548)MySQL Cluster: A value equal to or greater than the allowed maximum for
LongMessageBuffercaused all data nodes to crash. (Bug#22547)MySQL Cluster: Multiple occurrences of error conditions were logged with duplicat error messages rather than being reported with a single error message stating that the error was encountered
Ntimes. (Bug#22313)MySQL Cluster: Given a table
mytblin a databasemydbon a MySQL Server acting as an SQL node in a MySQL Cluster, then, following multipleALTER TABLE mytbl ENGINE=statements — first, to change the storage engine used for a table toengineNDB, and then again to change the table to use a non-NDBstorage engine — aDROP DATABASE mydbstatement executed on any SQL node in the cluster would causemydbto be dropped on all SQL nodes in the cluster, even ifmydbcontained non-NDBtables. (Bug#21495)MySQL Cluster: An incorrect error message was displayed in the event that the value of the
MaxNoOfOrderedIndexesparameter was set too low. (Bug#20065)MySQL Cluster: An incorrect error message was displayed in the event that the value of the
DataMemoryparameter was insufficient for the amount of data to be stored by the cluster. (Bug#19808)MySQL Cluster: Some values of
MaxNoOfTriggerscould cause the server to become inaccessible following startup of the data nodes. (Bug#19454)MySQL Cluster: If the value set for
MaxNoOfAttributesis excessive, a suitable error message is now returned. (Bug#19352)MySQL Cluster: Different error messages were returned for similar cases involving failure to allocate memory for Cluster operations. (Bug#19203)
MySQL Cluster: A unique constraint violation was not ignored by an
UPDATE IGNOREstatement when the constraint violation occurred on a nonprimary key. (Bug#18487, Bug#24303)Replication: With row-based binary logging, replicated multiple-statement transaction deadlocks did not return the correct error code, causing the slave SQL thread to stop rather than roll back and re-execute. (Bug#23831)
Replication: Changes to character set variables prior to an action on a replication-ignored table were forgotten by slave servers. (Bug#22877)
Replication: On slave servers, transactions that exceeded the lock wait timeout failed to roll back properly. (Bug#20697)
Replication: SQL statements close to the size of
max_allowed_packetcould produce binary log events larger thanmax_allowed_packetthat could not be read by slave servers. (Bug#19402)Disk Data: ndb_restore sometimes failed when attempting to restore Disk Data tables due to data node failure caused by accessing uninitialized memory. (Bug#24331)
Disk Data: It was possible to execute a statement for creating a Disk Data table that referred to a nonexistent tablespace, in which case the table created was actually an in-memory
NDBtable. Such a statement now fails instead, with an appropriate error message. (Bug#23576)Cluster API: Using
BITvalues with any of the comparison methods of theNdbScanFilterclass caused data nodes to fail. (Bug#24503)Cluster API: Some MGM API function calls could yield incorrect return values in certain cases where the cluster was operating under a very high load, or experienced timeouts in inter-node communications. (Bug#24011)
In some cases, a function that should be parsed as a user-defined function was parsed as a stored function. (Bug#24736)
Some unnecessary Valgrind warnings were removed from the server. (Bug#24488, Bug#24533)
The server source code had multiple exportable definitions of the
field_in_record_is_null()function. These are now all declaredstatic. (Bug#24190)The loose index scan optimization for
GROUP BYwithMINorMAXwas not applied within other queries, such asCREATE TABLE ... SELECT ...,INSERT ... SELECT ..., or in theFROMclauses of subqueries. (Bug#24156)Subqueries for which a pushed-down condition did not produce exactly one key field could cause a server crash. (Bug#24056)
The size of
MEMORYtables and internal temporary tables was limited to 4GB on 64-bit Windows systems. (Bug#24052)LAST_DAY('0000-00-00')could cause a server crash. (Bug#23653)A trigger that invoked a stored function could cause a server crash when activated by different client connections. (Bug#23651)
The stack size for NetWare binaries was increased to 128KB to prevent problems caused by insufficient stack size. (Bug#23504)
If elements in a nontop-level
INsubquery were accessed by an index and the subquery result set included aNULLvalue, the quantified predicate that contained the subquery was evaluated toNULLwhen it should return a non-NULLvalue. (Bug#23478)When applying the
group_concat_max_lenlimit,GROUP_CONCAT()could truncate multi-byte characters in the middle. (Bug#23451)mysql_affected_rows()could return values different frommysql_stmt_affected_rows()for the same sequence of statements. (Bug#23383)Calculation of
COUNT(DISTINCT),AVG(DISTINCT), orSUM(DISTINCT)when they are referenced more than once in a single query withGROUP BYcould cause a server crash. (Bug#23184)With row-based binary logging, for
CREATE TABLE IF NOT EXISTS LIKEstatements, thetemporary_tableIF NOT EXISTSclause was not logged. (Bug#22762)BENCHMARK(),ENCODE(),DECODE(), andFORMAT()could only accept a constant for some parameters, and could not be used in prepared statements. (Bug#22684)Queries using a column alias in an expression as part of an
ORDER BYclause failed, an example of such a query beingSELECT mycol + 1 AS mynum FROM mytable ORDER BY 30 - mynum. (Bug#22457)Using
EXPLAINcaused a server crash for queries that selected fromINFORMATION_SCHEMAin a subquery in theFROMclause. (Bug#22413)Instance Manager option-parsing code caused memory-allocation errors. (Bug#22242)
Trailing spaces were not removed from Unicode
CHARcolumn values when used in indexes. This resulted in excessive usage of storage space, and could affect the results of someORDER BYqueries that made use of such indexes.Note
When upgrading, it is necessary to re-create any existing indexes on Unicode
CHARcolumns in order to take advantage of the fix. This can be done by using aREPAIR TABLEstatement on each affected table.With row-based binary logging,
CREATE TABLE IF NOT EXISTS SELECTstatements were not logged properly. (Bug#22027)In some cases, the parser failed to distinguish a user-defined function from a stored function. (Bug#21809)
Inserting a default or invalid value into a spatial column could fail with
Unknown errorrather than a more appropriate error. (Bug#21790)Through the C API, the member strings in
MYSQL_FIELDfor a query that contains expressions may return incorrect results. (Bug#21635)View columns were always handled as having implicit derivation, leading to
illegal mix of collation errorsfor some views inUNIONoperations. Now view column derivation comes from the original expression given in the view definition. (Bug#21505)INET_ATON()returned a signedBIGINTvalue, not an unsigned value. (Bug#21466)For debug builds, mysqladmin shutdown displayed an extraneous
skipped 9 bytes from file: socket (3)message. (Bug#21428)For renaming of views, encoding of table name to file names was not performed. (Bug#21370)
CREATE FUNCTION X()andCREATE FUNCTION Y()failed with a syntax error instead of warning the user that these function names are already used (for GIS functions). (Bug#21025)CONCURRENTdid not work correctly forLOAD DATA INFILE. (Bug#20637)With
lower_case_table_namesset to 1,SHOW CREATE TABLEprinted incorrect output for table names containing Turkish I (LATIN CAPITAL LETTER I WITH DOT ABOVE). (Bug#20404)A query with a subquery that references columns of a view from the outer
SELECTcould return an incorrect result if used from a prepared statement. (Bug#20327)For queries that select from a view, the server was returning
MYSQL_FIELDmetadata inconsistently for view names and table names. For view columns, the server now returns the view name in thetablefield and, if the column selects from an underlying table, the table name in theorg_tablefield. (Bug#20191)Invalidating the query cache caused a server crash for
INSERT INTO ... SELECTstatements that selected from a view. (Bug#20045)For a cast of a
DATETIMEvalue containing microseconds toDECIMAL, the microseconds part was truncated without generating a warning. Now the microseconds part is preserved. (Bug#19491)The server could send incorrect column count information to the client for queries that produce a larger number of columns than can fit in a two-byte number. (Bug#19216)
For some problems relating to character set conversion or incorrect string values for
INSERTorUPDATE, the server was reporting truncation or length errors instead. (Bug#18908)Constant expressions and some numeric constants used as input parameters to user-defined functions were not treated as constants. (Bug#18761)
Attempting to use a view containing
DEFINERinformation for a nonexistent user resulted in an error message that revealed the definer account. Now the definer is revealed only to superusers. Other users receive only anaccess deniedmessage. (Bug#17254)IN()andCHAR()can returnNULL, but did not signal that to the query processor, causing incorrect results forIS NULLoperations. (Bug#17047)Warnings were generated when explicitly casting a character to a number (for example,
CAST('x' AS SIGNED)), but not for implicit conversions in simple arithmetic operations (such as'x' + 0). Now warnings are generated in all cases. (Bug#11927)Metadata for columns calculated from scalar subqueries was limited to integer, double, or string, even if the actual type of the column was different. (Bug#11032)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: The number of function names affected by
IGNORE_SPACEwas reduced significantly in MySQL 5.1.13, from about 200 to about 30. (For details aboutIGNORE_SPACE, see Section 8.2.4, “Function Name Parsing and Resolution”.) This change improves the consistency of parser operation. However, it also introduces the possibility of incompatibility for old SQL code that relies on the following conditions:IGNORE_SPACEis disabled.The presence or absence of whitespace following a function name is used to distinguish between a built-in function and stored function that have the same name (for example,
PI()versusPI ()).
For functions that are no longer affected by
IGNORE_SPACEas of MySQL 5.1.13, that strategy no longer works. Either of the following approaches can be used if you have code that is subject to the preceding incompatibility:If a stored function has a name that conflicts with a built-in function, refer to the stored function with a schema name qualifier, regardless of whether whitespace is present. For example, write
orschema_name.PI().schema_name.PI ()Alternatively, rename the stored function to use a nonconflicting name and change invocations of the function to use the new name.
Incompatible Change: The
innodb_buffer_pool_awe_mem_mbsystem variable has been removed and should no longer be used.MySQL Cluster: A change in the interfaces for the
INFORMATION_SCHEMA.FILEStable has made the table accessible to storage engines other thanNDB. (Bug#23013)Binary distributions of MySQL 5.1.12 were built without support for partitioning. This has been corrected except for NetWare. (Bug#23949)
If the user specified the server options
--max-connections=orN--table-open-cache=, a warning would be given in some cases that some values were recalculated, with the result thatM--table-open-cachecould be assigned greater value.In such cases, both the warning and the increase in the
--table-open-cachevalue were completely harmless. Note also that it is not possible for the MySQL Server to predict or to control limitations on the maximum number of open files, since this is determined by the operating system.The value of
--table-open-cacheis no longer increased automatically, and a warning is now given only if some values had to be decreased due to operating system limits. (Bug#21915)For the
CALLstatement, stored procedures that take no arguments now can be invoked without parentheses. That is,CALL p()andCALL pare equivalent. (Bug#21462)mysql_upgradenow passes all the parameters specified on the command line to bothmysqlcheckandmysqlusing theupgrade_defaultsfile. (Bug#20100)mysqldump --single-transaction now uses
START TRANSACTION /*!40100 WITH CONSISTENT SNAPSHOT */rather thanBEGINto start a transaction, so that a consistent snapshot will be used on those servers that support it. (Bug#19660)
Bugs fixed:
Performance:
InnoDBshowed substandard performance with multiple queries running concurrently. (Bug#15815)Important Change: When installing MySQL on AIX 5.3, you must upgrade AIX to technology level 7 (5300-07) to ensure the required thread libraries are available.
MySQL Cluster: Backup of a cluster failed if there were any tables with 128 or more columns. (Bug#23502)
MySQL Cluster: Cluster backups failed when there were more than 2048 schema objects in the cluster. (Bug#23499)
MySQL Cluster: Restoring a cluster failed if there were any tables with 128 or more columns. (Bug#23494)
MySQL Cluster: The management client command
ALL DUMP 1000would cause the cluster to crash if data nodes were connected to the cluster but not yet fully started. (Bug#23203)MySQL Cluster:
INSERT ... ON DUPLICATE KEY UPDATEon anNDBtable could lead to deadlocks and memory leaks. (Bug#23200)MySQL Cluster: An
NDBsource file included amemset()call with reversed arguments. (Bug#23169)MySQL Cluster: If a node restart could not be performed from the REDO log, no node takeover took place. This could cause partitions to be left empty during a system restart. (Bug#22893)
MySQL Cluster: Multiple node restarts in rapid succession could cause a system restart to fail , or induce a race condition. (Bug#22892, Bug#23210)
MySQL Cluster: Attempting to create a unique constraint with
USING HASHon anNDBtable caused mysqld to crash. (Bug#21873)MySQL Cluster: When inserting a row into an
NDBtable with a duplicate value for a nonprimary unique key, the error issued would reference the wrong key. (Bug#21072)MySQL Cluster: Aborting a cluster backup too soon after starting it caused a forced shutdown of the data nodes. (Bug#19148)
Replication: Column names were not quoted properly for replicated views. (Bug#19736)
Replication: Transient errors in replication from master to slave may trigger multiple
Got fatal error 1236: 'binlog truncated in the middle of event'errors on the slave. (Bug#4053)Disk Data: In the event of an aborted multiple update, the space in the Disk Data log buffer to be freed as a result was actually freed twice, which could eventually lead to a crash. (Bug#23430)
Cluster API: When multiple processes or threads in parallel performed the same ordered scan with exclusive lock and updated the retrieved records, the scan could skip some records, which as a result were not updated. (Bug#20446)
There was a race condition in the
InnoDBfil_flush_file_spaces()function. (Bug#24098)yaSSL-related memory leaks were detected by Valgrind. (Bug#23981)
MySQL 5.0.26 introduced an ABI incompatibility, which this release reverts. Programs compiled against 5.0.26 are not compatible with any other version and must be recompiled. (Bug#23427)
returnsM% 0NULL, but (evaluated to false. (Bug#23411)M% 0) IS NULLFor not-yet-authenticated connections, the
Timecolumn inSHOW PROCESSLISTwas a random value rather thanNULL. (Bug#23379)InnoDBcrashed when trying to display an error message about a foreign key constraint violation when the two tables are in different schemas. (Bug#23368)MySQL failed to build on Linux/Alpha. (Bug#23256)
This regression was introduced by Bug#21250.
If
COMPRESS()returnedNULL, subsequent invocations ofCOMPRESS()within a result set or within a trigger also returnedNULL. (Bug#23254)Insufficient memory (
myisam_sort_buffer_size) could cause a server crash for several operations onMyISAMtables: repair table, create index by sort, repair by sort, parallel repair, bulk insert. (Bug#23175)The column default value in the output from
SHOW COLUMNSorSELECT FROM INFORMATION_SCHEMA.COLUMNSwas truncated to 64 characters. (Bug#23037)mysql did not check for errors when fetching data during result set printing. (Bug#22913)
The return value from
my_seek()was ignored. (Bug#22828)Use of
SQL_BIG_RESULTdid not influence the sort plan for query execution. (Bug#22781)The optimizer failed to use equality propagation for
BETWEENandINpredicates with string arguments. (Bug#22753)The
Handler_rollbackstatus variable sometimes was incremented when no rollback had taken place. (Bug#22728)The
Hostcolumn inSHOW PROCESSLISToutput was blank when the server was started with the--skip-grant-tablesoption. (Bug#22723)If a table contains an
AUTO_INCREMENTcolumn, inserting into an insertable view on the table that does not include theAUTO_INCREMENTcolumn should not change the value ofLAST_INSERT_ID(), because the side effects of inserting default values into columns not part of the view should not be visible. MySQL was incorrectly settingLAST_INSERT_ID()to zero. (Bug#22584)The optimizer used the
refjoin type rather thaneq_reffor a simple join on strings. (Bug#22367)Some queries that used
MAX()andGROUP BYcould incorrectly return an empty result. (Bug#22342)If an
init_connectSQL statement produced an error, the connection was silently terminated with no error message. Now the server writes a warning to the error log. (Bug#22158)An unhandled
NULLpointer caused a server crash. (Bug#22138)Incorrect warnings occurred for use of
CREATE TABLE ... LIKEorREPAIR TABLEwith the log tables. (Bug#21966)The optimizer sometimes mishandled R-tree indexes for
GEOMETRYdata types, resulting in a server crash. (Bug#21888)Use of a DES-encrypted SSL certificate file caused a server crash. (Bug#21868)
Use of
PREPAREwith aCREATE PROCEDUREstatement that contained a syntax error caused a server crash. (Bug#21856)Adding a day, month, or year interval to a
DATEvalue produced aDATE, but adding a week interval produced aDATETIMEvalue. Now all produce aDATEvalue. (Bug#21811)Use of a subquery that invoked a function in the column list of the outer query resulted in a memory leak. (Bug#21798)
It was not possible to do an atomic rename of the log tables without the possibility of losing rows. Now you can do this:
USE mysql; CREATE TABLE IF NOT EXISTS general_log2 LIKE general_log; RENAME TABLE general_log TO general_log_backup, general_log2 TO general_log;
Within a prepared statement,
SELECT (COUNT(*) = 1)(or similar use of other aggregate functions) did not return the correct result for statement re-execution. (Bug#21354)Within a stored routine, a view definition cannot refer to routine parameters or local variables. However, an error did not occur until the routine was called. Now it occurs during parsing of the routine creation statement.
Note
A side effect of this fix is that if you have already created such routines, and error will occur if you execute
SHOW CREATE PROCEDUREorSHOW CREATE FUNCTION. You should drop these routines because they are erroneous.In mysql, invoking
connector\rwith very longdb_nameorhost_nameparameters caused buffer overflow. (Bug#20894)WITH ROLLUPcould group unequal values. (Bug#20825)Range searches on columns with an index prefix could miss records. (Bug#20732)
The server did not allocate sufficient memory for some queries for which a
DISTINCTtoGROUP BYconversion is possible and anORDER BYclause is present, resulting in a server crash. (Bug#20503)LIKEsearches failed for indexedutf8character columns. (Bug#20471)With
sql_mode = TRADITIONAL, MySQL incorrectly aborted on warnings within stored routines and triggers. (Bug#20028)mysqldump --xml produced invalid XML for
BLOBdata. (Bug#19745)The range analysis optimizer did not take into account predicates for which an index could be used after reading
consttables. In some cases this resulted in nonoptimal execution plans. (Bug#19579)FLUSH INSTANCESin Instance Manager triggered an assertion failure. (Bug#19368)For a debug server, a reference to an undefined user variable in a prepared statement executed with
EXECUTEcaused an assertion failure. (Bug#19356)Within a trigger for a base table, selecting from a view on that base table failed. (Bug#19111)
The value of the
warning_countsystem variable was not being calculated correctly (also affectingSHOW COUNT(*) WARNINGS). (Bug#19024)DELETE IGNOREcould hang for foreign key parent deletes. (Bug#18819)InnoDBused table locks (not row locks) within stored functions. (Bug#18077)mysql would lose its connection to the server if its standard output was not writable. (Bug#17583)
At shutdown, Instance Manager told guarded server instances to stop, but did not wait until they actually stopped. (Bug#17486)
mysql-test-run did not work correctly for RPM-based installations. (Bug#17194)
A client library crash was caused by executing a statement such as
SELECT * FROM t1 PROCEDURE ANALYSE()using a server side cursor on a tablet1that does not have the same number of columns as the output fromPROCEDURE ANALYSE(). (Bug#17039)The
WITH CHECK OPTIONfor a view failed to prevent storing invalid column values forUPDATEstatements. (Bug#16813)ALTER TABLEwas not able to rename a view. (Bug#14959)Statements such as
DROP PROCEDUREandDROP VIEWwere written to the binary log too late due to a race condition. (Bug#14262)A literal string in a
GROUP BYclause could be interpreted as a column name. (Bug#14019)Entries in the slow query log could have an incorrect
Rows_examinedvalue. (Bug#12240)Lack of validation for input and output
TIMEvalues resulted in several problems:SEC_TO_TIME()in some cases did not clip large values to theTIMErange appropriately;SEC_TO_TIME()treatedBIGINT UNSIGNEDvalues as signed; only truncation warnings were produced when both truncation and out-of-rangeTIMEvalues occurred. (Bug#11655, Bug#20927)Several string functions could return incorrect results when given very large length arguments. (Bug#10963)
FROM_UNIXTIME()did not accept arguments up toPOWER(2,31)-1, which it had previously. (Bug#9191)OPTIMIZE TABLEwithmyisam_repair_threads> 1 could result inMyISAMtable corruption. (Bug#8283)
This is a new Beta development release, fixing recently discovered bugs.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: MySQL Cluster: MySQL Cluster node and system restarts formerly required that all fragments use the same local checkpoint (LCP); beginning with this version, it is now possible for different fragments to use different LCPs during restarts. This means that data node file systems must be rebuilt as part of any upgrade to this version by restarting all data nodes with the
--initialoption.See MySQL Cluster 5.1 and MySQL Cluster NDB 6.x/7.x Upgrade and Downgrade Compatibility, and related sections of the Manual before upgrading a MySQL Cluster to version 5.1.12 or later. (Bug#21478, Bug#21271)
Incompatible Change: In the
INFORMATION_SCHEMA.EVENTStable, theEVENT_DEFINITIONcolumn now contains the SQL executed by a scheduled event.The
EVENT_BODYcolumn now contains the language used for the statement or statements shown inEVENT_DEFINITION. In MySQL 5.1, the value shown inEVENT_BODYis alwaysSQL.These changes were made to bring this table into line with the
INFORMATION_SCHEMA.ROUTINEStable, and that table'sROUTINE_BODYandROUTINE_DEFINITIONcolumns. (Bug#16992)Incompatible Change: For
GRANTandREVOKE,ON *previously granted and revoked privileges for the default database if there was a default database and global privileges if there was none. NowON *requires a default database and produces an error if there is none.Incompatible Change: Support for the BerkeleyDB (
BDB) engine has been dropped from this release. Any existing tables that are in BDB format will not be readable from within MySQL from 5.1.12 or newer. You should convert your tables to another storage engine before upgrading to 5.1.12.Because of this change, the
SHOW [BDB] LOGSstatement has been dropped.Incompatible Change: A number of MySQL constructs are now prohibited in partitioning expressions, beginning with this release. These include the following:
A number of MySQL functions. For a complete list of these, see Section 17.5.3, “Partitioning Limitations Relating to Functions”.
Nested function calls.
Calls to stored routines, UDFs, or plugins.
Character-to-integer conversions involving non-8-bit character sets or any of the
latin1_german2_ci,latin2_czech_cs, orcp1250_czech_cscollations.
These restrictions were added in part as a result of Bug#18198 and related bug reports.
For more information about these and other restrictions on partitioned tables in MySQL, see Section 17.5, “Restrictions and Limitations on Partitioning”.
Incompatible Change: The permitted values for and behavior of the
event_schedulersystem variable have changed. Permitted values are nowON,OFF, andDISABLED, withOFFbeing the default. It is not possible to change its value to or fromDISABLEDwhile the server is running.For details, see Section 18.4.1, “Event Scheduler Overview”.
Incompatible Change: The plugin interface has changed: The
st_mysql_pluginstructure has a newlicensemember to indicate the license type. (The allowable values are defined inmysql/plugin.h.) This change is not backward compatible, so the API version (MYSQL_PLUGIN_INTERFACE_VERSION) has changed. For additional information, see Section 21.2.3, “Writing Plugins”.Incompatible Change: The full-text parser plugin interface has changed in two ways:
The
MYSQL_FTPARSER_PARAMstructure has a newflagsmember. This is zero if there are no special flags, orMYSQL_FTFLAGS_NEED_COPY, which means thatmysql_add_word()must save a copy of the word (that is, it cannot use a pointer to the word because the word is in a buffer that will be overwritten.)This flag might be set or reset by MySQL before calling the parser plugin, by the parser plugin itself, or by the
mysql_parse()function.The
mysql_parse()andmysql_add_word()functions now take aMYSQL_FTPARSER_PARAMas their first argument, not aMYSQL_FTPARSER_PARAM::mysql_ftparamas before.
These changes are not backward compatible, so the API version (
MYSQL_FTPARSER_INTERFACE_VERSION) has changed. For additional information, see Section 21.2.3, “Writing Plugins”.Incompatible Change: Storage engines can be pluggable at runtime, so the distinction between disabled and invalid storage engines no longer applies. This affects the
NO_ENGINE_SUBSTITUTIONSQL mode, as described in Section 5.1.8, “Server SQL Modes”.Incompatible Change: The namespace for scheduled events has changed, such that events are no longer unique to individual users. This also means that a user with the
EVENTprivilege on a given database can now view, alter, or drop any events defined on that database.If you used scheduled events in an earlier MySQL 5.1 release, you should rename any of them having the same name and defined on the same database but belonging to different users — so that all events in a given database have unique names — before upgrading to 5.1.12 (or newer).
For additional information, see Section 18.4.6, “The Event Scheduler and MySQL Privileges”.
Important Change: Partitioning: MySQL Cluster: It is no longer possible to create Cluster tables using any partitioning type other than [
LINEAR]KEY. Attempting to do so now raises an error.Important Change: MySQL Cluster:
LOAD DATA INFILEno longer causes an implicit commit for all storage engines. It now causes an implicit commit only for tables using theNDBstorage engine. (Bug#11151)Important Change: MySQL Cluster: The status variables
Ndb_connected_hostandNdb_connected_portwere renamed toNdb_config_from_hostandNdb_config_from_port, respectively.Important Change: Replication: The default value for the
--binlog-formatserver option is nowMIXED.MySQL Cluster: The ndb_config utility now accepts
-cas a short form of the--ndb-connectstringoption. (Bug#22295)MySQL Cluster: Added the
--bind-addressoption for ndbd. This allows a data node process to be bound to a specific network interface. (Bug#22195)MySQL Cluster: The
Ndb_number_of_storage_nodessystem variable was renamed toNdb_number_of_data_nodes. (Bug#20848)MySQL Cluster: The
HELPcommand in the Cluster management client now provides command-specific help. For example,HELP RESTARTin ndb_mgm provides detailed information about theRESTARTcommand. (Bug#19620)MySQL Cluster: A number of erroneous, misleading, or missing error messages have been corrected. (Bug#17297, Bug#19543)
MySQL Cluster: Backup messages are no longer printed to the cluster log.
MySQL Cluster: Added the
--ndb-use-copying-alter-tableoption to mysqld to provide a fallback in case of problems with onlineALTER TABLEoperations onNDBtables.Replication: The default binary log format (as used during replication) is now Mixed based, automatically using a combination of row-based and statement based log events as appropriate.
Cluster API: Two new NDB API methods —
aggregate()andvalidate()— were added to theNdbDictionary::Object::Tableclass. SeeTable::aggregate(), andTable::validate(), for more information. This was done to rectify the following issues:Under some conditions, the data distribution could become unbalanced in a MySQL Cluster with 2 or more node groups following the creation of a new table.
Data was stored unevenly between partitions due to all
BLOBdata being placed in partition 0.
The number of
InnoDBthreads is no longer limited to 1,000 on Windows. (Bug#22268)The
STATEcolumn of theINFORMATION_SCHEMA.PROCESSLISTtable was increased from 30 to 64 characters to accommodate longer state values. (Bug#21652)mysqldump now has a
--flush-privilegesoption. It causes mysqldump to emit aFLUSH PRIVILEGESstatement after dumping themysqldatabase. This option should be used any time the dump contains themysqldatabase and any other database that depends on the data in themysqldatabase for proper restoration. (Bug#21424)mysqlslap threads now try to connect up to 10 times if the initial connect attempt fails. (Bug#21297)
For mysqldump, the output generated by the server when using the
--xmloption has changed with regard to null values. It now matches the output from mysqldump--xml. That is, a column containing aNULLvalue is now reported as<field name="
column_name" xsi:nil="true" />whereas a column containing the string value
'NULL'is reported as<field name="
column_name">NULL</field>and a column containing an empty string is reported as
<field name="
column_name"></field>The mysqld and mysqlmanager man pages have been reclassified from volume 1 to volume 8. (Bug#21220)
InnoDBnow honorsIGNORE INDEX. Perviously usingIGNORE INDEXin cases where an index sort would be slower than a filesort had no effect when used withInnoDBtables. (Bug#21174)TIMESTAMPcolumns that areNOT NULLnow are reported that way bySHOW COLUMNSandINFORMATION_SCHEMA. (Bug#20910)Memory consumption of the
InnoDBdata dictionary cache was roughly halved by cleaning up the data structures. (Bug#20877)The
BINARYkeyword now is forbidden as a data type attribute in stored routines (for example,DECLARE v1 VARCHAR(25) BINARY), becauseDECLAREdoes not support collations, and in this contextBINARYspecifies the binary collation of the variable's character set. (Bug#20701)The following statements now can be executed as prepared statements (using
PREPAREplusEXECUTE):CACHE INDEX CHANGE MASTER CHECKSUM {TABLE | TABLES} {CREATE | RENAME | DROP} DATABASE {CREATE | RENAME | DROP} USER FLUSH {TABLE | TABLES | TABLES WITH READ LOCK | HOSTS | PRIVILEGES | LOGS | STATUS | MASTER | SLAVE | DES_KEY_FILE | USER_RESOURCES} GRANT REVOKE KILL LOAD INDEX INTO CACHE RESET {MASTER | SLAVE | QUERY CACHE} SHOW BINLOG EVENTS SHOW CREATE {PROCEDURE | FUNCTION | EVENT | TABLE | VIEW} SHOW {AUTHORS | CONTRIBUTORS | WARNINGS | ERRORS} SHOW {MASTER | BINARY} LOGS SHOW {MASTER | SLAVE} STATUS SLAVE {START | STOP} INSTALL PLUGIN UNINSTALL PLUGINIn the
INFORMATION_SCHEMA.ROUTINEStable theROUTINE_DEFINITIONcolumn now is defined asNULLrather thanNOT NULL. Also,NULLrather than the empty string is returned as the column value if the user does not have sufficient privileges to see the routine definition. (Bug#20230)The mysqldumpslow script has been moved from client RPM packages to server RPM packages. This corrects a problem where mysqldumpslow could not be used with a client-only RPM install, because it depends on my_print_defaults which is in the server RPM. (Bug#20216)
The MySQL distribution now compiles on UnixWare 7.13. (Bug#20190)
configure now defines the symbol
DBUG_ONinconfig.hto indicate whether the source tree is configured to be compiled with debugging support. (Bug#19517)TEXTandBLOBcolumns do not supportDEFAULTvalues. However, when a default of''was specified, the specification was silently ignored. This now results in a warning, or an error in strict mode. (Bug#19498)For mysqlshow, if a database name argument contains wildcard characters (such as “
_”) but matches a single database name exactly, treat the name as a literal name. This allows a command such as mysqlshow information_schema work without having to escape the wildcard character. (Bug#19147)The source distribution has been updated so that the UDF example can be compiled under Windows with CMake. See Section 21.3.2.5, “Compiling and Installing User-Defined Functions”. (Bug#19121)
The default value of the
tmp_table_sizesystem variable was lowered from 32MB to 16MB because it is bounded by the value ofmax_heap_table_size, which has a default of 16MB. (Bug#18875)Log table changes: By default, the log tables use the
CSVstorage engine, as before. But now the log tables can be altered to use theMyISAMstorage engine. You cannot useALTER TABLEto alter a log table that is in use. The log must be disabled first. No engines other thanCSVorMyISAMare legal for the log tables. The use ofDROP TABLEfor log tables is similarly restricted: It cannot be used to drop a log table that is in use. The log must be disabled first. (These changes also correct a deadlock that occurred for an attempt to drop an in-use log table.) (Bug#18559)Added the
--set-charsetoption to mysqlbinlog to allow the character set to be specified for processing binary log files. (Bug#18351)The
ExtractValue()function now produces an error when passed an XML fragment that is not well-formed.(Previously, the function allowed invalid XML fragments to be used.) (Bug#18201)
On Windows, typing Control-C while a query was running caused the mysql client to crash. Now it causes mysql to attempt to kill the current statement. If this cannot be done, or Control-C is typed again before the statement is killed, mysql exits. (In other words, mysql's behavior with regard to Control-C is now the same as it is on Unix platforms.) (Bug#17926)
See also Bug#1989.
The bundled yaSSL library licensing has added a FLOSS exception similar to MySQL to resolve licensing incompatibilities with MySQL. (See the
extra/yassl/FLOSS-EXCEPTIONSfile in a MySQL source distribution for details.) (Bug#16755)SHOW CREATE TABLEnow shows constraints forInnoDBtables. (Bug#16614)EXPLAIN EXTENDEDnow shows afilteredcolumn that is an estimated percentage of the examined rows that will be joined with the previous tables. This was added while dealing with a problem of MySQL choosing the wrong index for some queries. (Bug#14940)The mysql client now allows
\lin thepromptcommand argument to insert the current delimiter into the prompt. (Bug#14448)The mysql client used the default character set if it automatically reconnected to the server, which is incorrect if the character set had been changed. To enable the character set to remain synchronized on the client and server, the mysql command
charset(or\C) that changes the default character set and now also issues aSET NAMESstatement. The changed character set is used for reconnects. (Bug#11972)The
LEFT()andRIGHT()functions returnNULLif any argument isNULL. (Bug#11728)If a
DROP VIEWstatement named multiple views, it stopped with an error if a nonexistent view was named and did not drop the remaining views. Now it continues on and reports an error at the end, similar toDROP TABLE. (Bug#11551)For a successful dump, mysqldump now writes a SQL comment to the end of the dump file in the following format:
-- Dump completed on YYYY-MM-DD hh:mm:ss
There were several issues regarding how
SHOW STATUSaffected some status variables and logging which could impact monitoring the MySQL Server. The behavior of this statement has been modified in two ways:SHOW STATUSis no longer logged to the slow query log.SHOW STATUSno longer updates any session status variables, except forcom_show_status.
However,
SHOW STATUScontinues to update global status variables to allow monitoring of what the server is actually doing. This is becauseSHOW STATUScreates temporary tables that may affect performance if it is called excessively often. (Bug#10210)See also Bug#19764.
For spatial data types, the server formerly returned these as
VARSTRINGvalues with a binary collation. Now the server returns spatial values asBLOBvalues. (Bug#10166)The
LOAD DATA FROM MASTERandLOAD TABLE FROM MASTERstatements are deprecated. See Section 12.6.2.2, “LOAD DATA FROM MASTERSyntax”, for recommended alternatives. (Bug#9125, Bug#20596, Bug#14399, Bug#12187, Bug#15025, Bug#18822)For the mysql client, typing Control-C causes mysql to attempt to kill the current statement. If this cannot be done, or Control-C is typed again before the statement is killed, mysql exits. Previously, Control-C caused mysql to exit in all cases. (Bug#1989)
It is no longer possible to create partitioned tables using the
CSVstorage engine.Binary MySQL distributions no longer include a mysqld-max server. Instead, distributions contain a binary that includes the features previously included in the mysqld-max binary.
SHOW STATUSis no longer logged to the slow query log.Program Database files (extension
.pdb) are now included by default in Windows distributions. These can be used to help diagnose problems with mysqld and other tools. See Section 21.5.1, “Debugging a MySQL Server”.INFORMATION_SCHEMAcontains new tables,GLOBAL_STATUS,SESSION_STATUS,GLOBAL_VARIABLES, andSESSION_VARIABLES, that correspond to the output from theSHOW {GLOBAL|SESSION} STATUSandSHOW {GLOBAL|SESSION} VARIABLESstatements.SHOW STATUSno longer updates any session status variables, except forcom_show_status.A new system variable,
lc_time_names, specifies the locale that controls the language used to display day and month names and abbreviations. This variable affects the output from theDATE_FORMAT(),DAYNAME()andMONTHNAME()functions. See Section 9.8, “MySQL Server Locale Support”.Using
--with-debugto configure MySQL with debugging support enables you to use the--debug="d,parser_debug"option when you start the server. This causes the Bison parser that is used to process SQL statements to dump a parser trace to the server's standard error output. Typically, this output is written to the error log.The bundled yaSSL library was upgraded to version 1.3.7.
The Instance Manager
--passwdoption has been renamed to--print-password-line. Other options were added to enable management of the IM password file from the command line:--add-user,--drop-user,--edit-user,--list-users,--check-password-file,--clean-password-file,--username, and--password. The--mysqld-safe-compatibleoption was added to cause the Instance Manner to act similarly to mysqld_safe.Added the
SHOW CONTRIBUTORSstatement.The general query log and slow query logs now can be enabled or disabled at runtime with the
general_logandslow_query_logsystem variables, and the name of the log files can be changed by setting thegeneral_log_fileandslow_query_log_filesystem variables. See Section 5.2.3, “The General Query Log”, and Section 5.2.5, “The Slow Query Log”.
Bugs fixed:
Security Fix: A stored routine created by one user and then made accessible to a different user using
GRANT EXECUTEcould be executed by that user with the privileges of the routine's definer. (Bug#18630, CVE-2006-4227)Security Fix: On Linux, and possibly other platforms using case-sensitive file systems, it was possible for a user granted rights on a database to create or access a database whose name differed only from that of the first by the case of one or more letters. (Bug#17647, CVE-2006-4226)
Security Fix: If a user has access to
MyISAMtablet, that user can create aMERGEtablemthat accessest. However, if the user's privileges ontare subsequently revoked, the user can continue to accesstby doing so throughm. If this behavior is undesirable, you can start the server with the new--skip-mergeoption to disable theMERGEstorage engine. (Bug#15195, CVE-2006-4031)Incompatible Change: For
utf8columns, the full-text parser incorrectly considered several nonword punctuation and whitespace characters as word characters, causing some searches to return incorrect results.The fix involves a change to the full-text parser, so any tables that have
FULLTEXTindexes onutf8columns must be repaired withREPAIR TABLE:REPAIR TABLE
tbl_nameQUICK;MySQL Cluster: Packaging: The ndb_mgm program was included in both the
MySQL-ndb-toolsandMySQL-ndb-managementRPM packages, resulting in a conflict if both were installed. Now ndb_mgm is included only inMySQL-ndb-tools. (Bug#21058)MySQL Cluster: Replication: A
DELETE FROM tablewith noWHEREclause (deleting all rows) running concurrently withINSERTstatements on a storage engine with row-level locking (such asNDB) could produce inconsistent results when using statement-based replication. (Bug#19066)MySQL Cluster: Replication: (Replication): A node failure could send duplicate events, causing a mysqld replicating tables containing
BLOBs to crash.MySQL Cluster: (NDB API): Inacivity timeouts for scans were not correctly handled. (Bug#23107)
MySQL Cluster: Inserting into an
NDBtable failed when the table had no primary key but had a unique key added after table was created on one or moreNOT NULLcolumns. This occurred when the unique key had been adding using eitherALTER TABLEorCREATE UNIQUE KEY. (Bug#22838)MySQL Cluster: (NDB API): Attempting to read a nonexistent tuple using
Commitmode forNdbTransaction::execute()caused node failures. (Bug#22672)MySQL Cluster: The
--helpoutput fromNDBbinaries did not include file-related options. (Bug#21994)MySQL Cluster: Setting
TransactionDeadlockDetectionTimeoutto a value greater than 12000 would cause scans to deadlock, time out, fail to release scan records, until the cluster ran out of scan records and stopped processing. (Bug#21800)MySQL Cluster: A scan timeout returned Error 4028 (Node failure caused abort of transaction) instead of Error 4008 (Node failure caused abort of transaction...). (Bug#21799)
MySQL Cluster: The node recovery algorithm was missing a version check for tables in the
ALTER_TABLE_COMMITTEDstate (as opposed to theTABLE_ADD_COMMITTEDstate, which has the version check). This could cause inconsistent schemas across nodes following node recovery. (Bug#21756)MySQL Cluster: A memory leak occurred when running ndb_mgm -e "SHOW". (Bug#21670)
MySQL Cluster: The server provided a nondescriptive error message when encountering a fatally corrupted REDO log. (Bug#21615)
MySQL Cluster: The output for the
--helpoption used withNDBexecutable programs (such as ndbd, ndb_mgm, ndb_restore, ndb_config, and others mentioned in MySQL Cluster Programs) referred to theNdb.cfgfile, instead of tomy.cnf. (Bug#21585)MySQL Cluster: A partial rollback could lead to node restart failures. (Bug#21536)
MySQL Cluster: Partition distribution keys were updated only for the primary and starting replicas during node recovery. This could lead to node failure recovery for clusters having an odd number of replicas.
Note
For best results, use values for
NumberOfReplicasthat are even powers of 2.MySQL Cluster: The ndb_mgm management client did not set the exit status on errors, always returning 0 instead. (Bug#21530)
MySQL Cluster: The failure of a unique index read due to an invalid schema version could be handled incorrectly in some cases, leading to unpredictable results. (Bug#21384)
MySQL Cluster: Attempting to create an
NDBtable on a MySQL server with an existing non-Cluster table with the same name in the same database could result in data loss or corruption. Now, if such a table is encountered during autodiscovery, a warning is written to the error log of the affected mysqld, and the local table is overwritten. (Bug#21378)MySQL Cluster: Cluster logs were not rotated following the first rotation cycle. (Bug#21345)
MySQL Cluster: In a cluster with more than 2 replicas, a manual restart of one of the data nodes could fail and cause the other nodes in the same node group to shut down. (Bug#21213)
MySQL Cluster: The ndb_size.pl script did not account for
TEXTandBLOBcolumn values correctly. (Bug#21204)MySQL Cluster: Some queries involving joins on very large
NDBtables could crash the MySQL server. (Bug#21059)MySQL Cluster: Condition pushdown did not work correctly with
DATETIMEcolumns. (Bug#21056)MySQL Cluster: Responses to the
ALL DUMP 1000management client command were printed multiple times in the cluster log for each cluster node. (Bug#21044)MySQL Cluster: The message Error 0 in readAutoIncrementValue(): no Error was written to the error log whenever
SHOW TABLE STATUSwas performed on a Cluster table that did not have anAUTO_INCREMENTcolumn. (Bug#21033)MySQL Cluster: Restarting a data node while DDL operations were in progress on the cluster could cause other data nodes to fail. This could also lead to mysqld hanging or crashing under some circumstances. (Bug#21017, Bug#21050)
MySQL Cluster: In some situations with a high disk-load, writing of the redo log could hang, causing a crash with the error message GCP STOP detected. (Bug#20904)
MySQL Cluster: A race condition could in some cirumstances following a
DROP TABLE. (Bug#20897)MySQL Cluster: Under some circumstances, local checkpointing would hang, keeping any unstarted nodes from being started. (Bug#20895)
MySQL Cluster: When the redo buffer ran out of space, a Pointer too large error was raised and the cluster could become unusable until restarted with
--initial. (Bug#20892)MySQL Cluster: A vague error message was returned when reading both schema files during a restart of the cluster. (Bug#20860)
MySQL Cluster: The repeated creating and dropping of a table would eventually lead to
NDBError 826, Too many tables and attributes ... Insufficient space. (Bug#20847)MySQL Cluster: When attempting to restart the cluster following a data import, the cluster failed during Phase 4 of the restart with Error 2334: Job buffer congestion. (Bug#20774)
MySQL Cluster:
REPLACEstatements did not work correctly on anNDBtable having both a primary key and a unique key. In such cases, proper values were not set for columns which were not explicitly referenced in the statement. (Bug#20728)MySQL Cluster: The server did not honor the value set for
ndb_cache_check_timein themy.cnffile. (Bug#20708)MySQL Cluster: Truncating a table on one mysqld caused other mysqld processes connected to the cluster to return ERROR 1412 (HY000): Table definition has changed, please retry transaction on subsequent queries. (Bug#20705)
MySQL Cluster: Using an invalid node ID with the management client
STOPcommand could cause ndb_mgm to hang. (Bug#20575)MySQL Cluster: Renaming of table columns was not supported as fast a
ALTER TABLEfor NDB tables. (Bug#20456)MySQL Cluster: ndb_size.pl and ndb_error_reporter were missing from RPM packages. (Bug#20426)
MySQL Cluster: Running ndbd
--nowait-nodes=whereididwas the node ID of a node that was already running would fail with an invalid error message. (Bug#20419)MySQL Cluster: Data nodes added while the cluster was running in single user mode were all assigned node ID 0, which could later cause multiple node failures. Adding nodes while in single user mode is no longer possible. (Bug#20395)
MySQL Cluster: The ndb_mgm client command
ALL CLUSTERLOG STATISTICS=15had no effect. (Bug#20336)MySQL Cluster: (Direct APIs):
NdbScanOperation::readTuples()andNdbIndexScanOperation::readTuples()ignored thebatchparameter. (Bug#20252)MySQL Cluster: A node failure during a scan could sometime cause the node to crash when restarting too quickly following the failure. (Bug#20197)
MySQL Cluster: The failure of a data node when preparing to commit a transaction (that is, while the node's status was
CS_PREPARE_TO_COMMIT) could cause the failure of other cluster data nodes. (Bug#20185)MySQL Cluster:
SHOW ENGINE NDB STATUScould sometimes return an incorrect value of0for the latest epoch, which could cause problems with synchronizing the binlog. (Bug#20142)MySQL Cluster: An internal formatting error caused some management client error messages to be unreadable. (Bug#20016)
MySQL Cluster: Creating tables with variable-size columns caused
DataMemoryto be used but not freed when the tables were dropped. (Bug#20007)MySQL Cluster: Renaming a table in such a way as to move it to a different database failed to move the table's indexes. (Bug#19967)
MySQL Cluster: Running management client commands while mgmd was in the process of disconnecting could cause the management server to fail. (Bug#19932)
MySQL Cluster: Under certain conditions, a starting node could miss transactions, leading to inconsistencies between the primary and backup replicas. (Bug#19929)
MySQL Cluster: An uncommitted row could sometimes be checkpointed and thus incorrectly included in a backup. (Bug#19928)
MySQL Cluster: In some cases where
SELECT COUNT(*)from anNDBtable should have yielded an error,MAX_INTwas returned instead. (Bug#19914)MySQL Cluster:
TEXTcolumns in Cluster tables having both an explicit primary key and a unique key were not correctly updated byREPLACEstatements. (Bug#19906)MySQL Cluster: The cluster's data nodes failed while trying to load data when
NoOfFrangmentLogFileswas set equal to 1. (Bug#19894)MySQL Cluster: Following the restart of a management node, the Cluster management client did not automatically reconnect. (Bug#19873)
MySQL Cluster: Restoring a backup with ndb_restore failed when the backup had been taken from a cluster whose
DataMemoryhad been completely used up. (Bug#19852)MySQL Cluster: Error messages given when trying to make online changes to parameters such as
NoOfReplicasthat can only be changed via a complete shutdown and restart of the cluster did not indicate the true nature of the problem. (Bug#19787)MySQL Cluster: Under some circumstances, repeated DDL operations on one
mysqldcould cause failure of a secondmysqldattached to the same cluster. (Bug#19770)MySQL Cluster: ndb_restore did not always make clear that it had recovered successfully from temporary errors while restoring a cluster backup. (Bug#19651)
MySQL Cluster: Resources for unique indexes on Cluster table columns were incorrectly allocated, so that only one-fourth as many unique indexes as indicated by the value of
UniqueHashIndexescould be created. (Bug#19623)MySQL Cluster:
LOAD DATA LOCALfailed to ignore duplicate keys in Cluster tables. (Bug#19496)MySQL Cluster: For ndb_mgmd, Valgrind revealed problems with a memory leak and a dependency on an uninitialized variable. (Bug#19318, Bug#20333)
MySQL Cluster: A
DELETEof many rows immediately followed by anINSERTon the same table could cause the ndbd process on the backup replica to crash. (Bug#19293)MySQL Cluster: An excessive number of
ALTER TABLEoperations could cause the cluster to fail withNDBerror code 773 (Out of string memory, please modify StringMemory). (Bug#19275)MySQL Cluster: A problem with error handling when
ndb_use_exact_countwas enabled could lead to incorrect values returned from queries usingCOUNT(). A warning is now returned in such cases. (Bug#19202)MySQL Cluster: In rare situations with resource shortages, a crash could result from insufficient
IndexScanOperations. (Bug#19198)MySQL Cluster: Running out of
DataMemorycould sometimes crash ndbd and mysqld processes. (Bug#19185)MySQL Cluster: It was possible to use port numbers greater than 65535 for
ServerPortin theconfig.inifile. (Bug#19164)MySQL Cluster: ndb_mgm -e show | head would hang after displaying the first 10 lines of output. (Bug#19047)
MySQL Cluster: The error returned by the cluster when too many nodes were defined did not make clear the nature of the problem. (Bug#19045)
MySQL Cluster: The management client
ALL STOPcommand shut down mgmd processes (as well as ndbd processes). (Bug#18966)MySQL Cluster:
TRUNCATE TABLEfailed to reset theAUTO_INCREMENTcounter. (Bug#18864)MySQL Cluster: Restarting a failed node could sometimes crash the cluster. (Bug#18782)
MySQL Cluster: Trying to create or drop a table while a node was restarting caused the node to crash. This is now handled by raising an error. (Bug#18781)
MySQL Cluster: Repeated
CREATE-INSERT-DROPoperations on tables could in some circumstances cause the MySQL table definition cache to become corrupt, so that some mysqld processes could access table information but others could not. (Bug#18595)MySQL Cluster: A
CREATE TABLEstatement involving foreign key constraints raised an error rather than being silently ignored (see Section 12.1.17, “CREATE TABLESyntax”).This bug affected Cluster in MySQL 5.1 only. (Bug#18483)
MySQL Cluster: The server failed with a nondescriptive error message when out of data memory. (Bug#18475)
MySQL Cluster: For
NDBand possiblyInnoDBtables, aBEFORE UPDATEtrigger could insert incorrect values. (Bug#18437)MySQL Cluster: The
DATA_LENGTHandAVG_ROW_LENGTHcolumns of theINFORMATION_SCHEMA.TABLEStable did not report the size of variable-width column values correctly.See Section 19.2, “The
INFORMATION_SCHEMA TABLESTable”, for more information. (Bug#18413)MySQL Cluster:
SELECT ... FOR UPDATEfailed to lock the selected rows. (Bug#18184)MySQL Cluster: (Disk Data): Deletes from Disk Data tables used a nonoptimal scan to find the rows to be deleted, resulting in poor performance. The fix causes disk order rather than memory order to be used, and can improve performance of Disk Data deletes by up to ~300% in some cases. (Bug#17929)
MySQL Cluster: perror did not properly report
NDBerror codes. (Bug#16561)MySQL Cluster: A problem with takeover during a system restart caused ordered indexes to be rebuilt incorrectly. This also adversely affected MySQL Cluster Replication. (Bug#15303)
MySQL Cluster: A cluster data node could crash when an ordered index became full before the table containing the index was full. (Bug#14935)
MySQL Cluster: The management client
ALL STATUScommand could sometimes report the status of some data nodes incorrectly. (Bug#13985)MySQL Cluster: New mysqld processes were allowed to connect without a restart of the cluster, causing the cluster to crash. (Bug#13266)
MySQL Cluster: Cluster system status variables were not updated properly. (Bug#11459)
MySQL Cluster: (NDBAPI): Update operations on blobs were not checked for illegal operations.
Note
Read locks with blob update operations are now upgraded from read committed to read shared.
MySQL Cluster: The loss of one or more data nodes could sometimes cause ndb_mgmd to use a high amount of CPU (15 percent or more, as opposed to 1 to 2 percent normally).
Partitioning: Old partition and subpartition files were not always removed following
ALTER TABLE ... REORGANIZE PARTITIONstatements. (Bug#20770)Cluster Replication: Replication: In some cases, a large number of MySQL servers sending requests to the cluster simultaneously could cause the cluster to crash. This could also be triggered by many
NDBAPI clients making simultaneous event subscriptions or unsubscriptions. (Bug#20683)Cluster Replication: Replication: Data definition and data manipulation statements on different tables were not serialised correctly in the binary log. For example, there was no guarantee that a
CREATE TABLEstatement and an update on a different table would occur in the same order in the binary log as they did on the cluster being replicated. (Bug#18947)Replication:
BITcolumns were not replicated properly under row-based replication. (Bug#22550)Replication: For row-based replication, log rotation could occur at an improper time. (Bug#21474)
Replication: In mixed-format binary logging mode, stored functions, triggers, and views that use functions in their body that require row-based logging did not replicate reliably because the logging did not switch from statement-based to row-based format. For example,
INSERT INTO t SELECT FROM v, wherevis a view that selectsUUID()could cause problems. This limitation has been removed. (Bug#20930)Replication: A race condition during slave server shutdown caused an assert failure. (Bug#20850)
Replication: With mixed-format binary logging,
INSERT DELAYEDstatements were logged using statement-based logging, and they did not replicate properly for statements that used values such asUUID(),RAND(), or user-defined variables that require row-based logging. To correct this, theDELAYEDhandler thread how switches to row-based logging if the logging format is mixed. (Bug#20633, Bug#20649)Replication: With the
auto_increment_incrementsystem variable set larger than 1, if the next generatedAUTO_INCREMENTvalue would be larger than the column's maximum value, the value would be clipped down to that maximum value and inserted, even if the resulting value would not be in the generated sequence. This could cause problems for master-master replication. Now the server clips the value down to the previous value in the sequence, which correctly produces a duplicate-key error if that value already exists in the column. (Bug#20524)Replication: In mixed binary logging mode, a temporary switch from statement-based logging to row-based logging occurs when storing a row that uses a function such as
UUID()into a temporary table. However, temporary table changes are not written to the binary log under row-based logging, so the row does not exist on the slave. A subsequent select from the temporary table to a nontemporary table using statement-based logging works correctly on the master, but not on the slave where the row does not exist. Replication no longer switches back from row-based logging to statement-based logging until there are no temporary tables for the session. (Bug#20499)Replication:
CREATE PROCEDURE,CREATE FUNTION,CREATE TRIGGER, andCREATE VIEWstatements containing multi-line comments (/* ... */) could not be replicated. (Bug#20438)Replication: A stored procedure that used
LAST_INSERT_ID()did not replicate properly using statement-based binary logging. (Bug#20339)Replication: When using row based replication, a
CREATE TABLE ... SELECTstatement was replicated, even if the table creation failed on the master (for example, due to a duplicate key failure). (Bug#20265)Replication: If a table on a slave server had a higher
AUTO_INCREMENTcounter than the corresponding master table (even though all rows of the two tables were identical), in some casesREPLACEorINSERT ... ON DUPLICATE KEY UPDATEwould not replicate properly using statement-based logging. (Different values would be inserted on the master and slave.) (Bug#20188)Replication: Shutting down a slave in a replication scenario where temporary tables are in use would cause the slave to produce a core dump. (Bug#19881)
Replication: The effect of a stored function or trigger that caused
AUTO_INCREMENTvalues to be generated for multiple tables was not logged properly if statement-based logging was used. Only the first table's value was logged, causing replication to fail. Under mixed logging format, this is dealt with by switching to row-based logging for the function or trigger. For statement-based logging, this remains a problem. (Bug#19630)Replication: For row-based replication, the
BINLOGstatement did not lock tables properly, causing a crash for some table types. (Bug#19459)Replication: Column names supplied for a view created on a master server could be lost on a slave server. (Bug#19419)
Replication: The dropping of a temporary table whose name contained a backtick ('
`') character was not correctly written to the binary log, which also caused it not to be replicated correctly. (Bug#19188)Replication: With row-based replication, replicating a statement to a slave where the table had additional columns relative to the master table did not work. (Bug#19069)
Replication: Valgrind revealed several issues with mysqld that were corrected: A dangling stack pointer being overwritten; possible uninitialized data in a string comparison; memory corruption in replication slaves when switching databases;
syscall()write parameter pointing to an uninitialized byte. (Bug#19022, Bug#20579, Bug#20769, Bug#20783, Bug#20791)Replication: A redundant table map event could be generated in the binary log when there were no actual changes to a table being replicated. In addition, a slave failed to stop when attempting to replicate a table that did not exist on the slave. (Bug#18948)
Replication: Row-based replication failed when the query cache was enabled on the slave. (Bug#17620)
Replication: Compilation on Windows would fail if row based replication was disabled using
--without-row-based-replication. (Bug#16837)Replication: An invalid
GRANTstatement for whichOkwas returned on a replication master caused an error on the slave and replication to fail. (Bug#6774)Disk Data: On some platforms, ndbd compiled with gcc 4 would crash when attempting to run
CREATE LOGFILE GROUP. (Bug#21981)Disk Data: Trying to create a Disk Data table using a nonexistent tablespace or to drop a nonexistent data file from a tablespace produced an uninformative error message. (Bug#21751)
Disk Data: Errors could occur when dropping a data file during a node local checkpoint. (Bug#21710)
Disk Data: Creating a tablespace and log file group, then attempting to restart the cluster without using the
--initialoption and without having created any Disk Data tables could cause a forced shutdown of the cluster and raise a configuration error. (Bug#21172)Disk Data: mysqldump did not back up tablespace or log file group information for Disk Data tables correctly.
Specifically,
UNDO_BUFFER_SIZEandINITIAL_SIZEvalues were misreported. This meant that trying to restore from such a backup would produce error 1296: Got error 1504 'Out of logbuffer memory' from NDB. (Bug#20809)Disk Data: Running a large number of scans on Disk Data could cause subsequent scans to perform poorly. (Bug#20334)
Disk Data:
INFORMATION_SCHEMA.FILESrecords for UNDO files showed incorrect values in theEXTENT_SIZE,FREE_EXTENTS, andTOTAL_EXTENTScolumns. (Bug#20073)Disk Data: A data file created for one tablespace could be dropped using
ALTER TABLESPACE ... DROP DATAFILEusing a different tablespace. (Bug#20053)Disk Data: Trying to create Disk Data tables when running the cluster in diskless mode caused cluster data nodes to crash.
Note
Disk Data tables are now disabled when running in diskless mode.
Disk Data: An issue with disk allocation could sometimes cause a forced shutdown of the cluster when running a mix of memory and Disk Data tables. (Bug#18780)
Disk Data: The failure of a
CREATE TABLESPACEorCREATE LOGFILE GROUPstatement did not revert all changes made prior to the point of failure. (Bug#16341)Cluster Replication: One or more of the mysqld processes could fail when subjecting a Cluster replication setup with multiple mysqld processes on both the master and slave clusters to high loads. (Bug#19768)
Cluster API: The
storage/ndbdirectory was missing from the server binary distribution, making it impossible to compileNDBAPI and MGM API applications. This directory can be found as/usr/include/storage/ndbafter installing that distribution. (Bug#21955)Cluster API: Invoking the MGM API function
ndb_mgm_listen_event()caused a memory leak. (Bug#21671)Cluster API: The inclusion of
my_config.hinNdbApi.hrequired anyone wishing to write NDB API applications against MySQL 5.1 to have a complete copy of the 5.1 sources. (Bug#21253)Cluster API: The MGM API function
ndb_logevent_get_fd()was not implemented. (Bug#21129)Cluster API: The
NdbOperation::getBlobHandle()method, when called with the name of a nonexistent column, caused a segmentation fault. (Bug#21036)ALTER EVENTstatements including only aCOMMENTclause failed with a syntax error on two platforms: Linux for S/390, and OS X 10.4 for 64-bit PPC. (Bug#23423)When
event_schedulerwas set toDISABLED, its value was not displayed correctly bySHOW VARIABLESorSELECT @@global.event_scheduler. (Bug#22662)ALTER EVENTin the body of a stored procedure led to a crash when the procedure was called. This affected only thoseALTER EVENTstatements which changed the interval of the event. (Bug#22397)The optimizer could make an incorrect index choice for indexes with a skewed key distribution. (Bug#22393)
Deleting entries from a large
MyISAMindex could cause index corruption when it needed to shrink. Deletes from an index can happen when a record is deleted, when a key changes and must be moved, and when a key must be un-inserted because of a duplicate key. This can also happen inREPAIR TABLEwhen a duplicate key is found and in myisamchk when sorting the records by an index. (Bug#22384)Instance Manager had a race condition involving mysqld PID file removal. (Bug#22379)
yaSSL had a conflicting definition for
socklen_ton hurd-i386 systems. (Bug#22326)Conversion of values inserted into a
BITcolumn could affect adjacent columns. (Bug#22271)Some Linux-x86_64-icc packages (of previous releases) mistakenly contained 32-bit binaries. Only ICC builds are affected, not gcc builds. Solaris and FreeBSD x86_64 builds are not affected. (Bug#22238)
mysql_com.hunnecessarily referred to theulongtype. (Bug#22227)The source distribution would not build on Windows due to a spurious dependency on
ib_config.h. (Bug#22224)Execution of a prepared statement that uses an
INsubquery with aggregate functions in theHAVINGclause could cause a server crash. (Bug#22085)The
CSVstorage engine failed to detect some table corruption. (Bug#22080)Using
GROUP_CONCAT()on the result of a subquery in theFROMclause that itself usedGROUP_CONCAT()could cause a server crash. (Bug#22015)Running
SHOW MASTER LOGSat the same time as binary log files were being switched would causemysqldto hang. (Bug#21965)libmysqlclientdefined a symbolBN_bin2bnwhich belongs to OpenSSL. This could break applications that also linked against OpenSSL'slibcryptolibrary. The fix required correcting an error in a build script that was failing to add rename macros for some functions. (Bug#21930)character_set_resultscan beNULLto signify “no conversion,” but some code did not check forNULL, resulting in a server crash. (Bug#21913)A misleading error message was displayed when attempting to define a unique key that was not valid for a partitioned table. (Bug#21862)
A query that used
GROUP BYand anALLorANYquantified subquery in aHAVINGclause could trigger an assertion failure. (Bug#21853)An
InnoDBmutex was not aquired and released under the same condition, leading to deadlock in some rare situations involving XA transactions. (Bug#21833)A
NULbyte within a prepared statement string caused the rest of the string not to be written to the query log, allowing logging to be bypassed. (Bug#21813)COUNT(*)queries withORDER BYandLIMITcould return the wrong result.Note
This problem was introduced by the fix for Bug#9676, which limited the rows stored in a temporary table to the
LIMITclause. This optimization is not applicable to nongroup queries with aggregate functions. The current fix disables the optimization in such cases.Using
DROP TABLEwith concurrent queries causesmysqldto crash. (Bug#21784)INSERT ... SELECTsometimes generated a spuriousColumn count doesn't match value counterror. (Bug#21774)UPGRADEwas treated as a reserved word, although it is not. (Bug#21772)A function result in a comparison was replaced with a constant by the optimizer under some circumstances when this optimization was invalid. (Bug#21698)
Selecting from
INFORMATION_SCHEMA.FILEScould crash the server. (Bug#21676)Errors could be generated during the execution of certain prepared statements that ran queries on partitioned tables. (Bug#21658)
The presence of a subquery in the
ONclause of a join in a view definition prevented theMERGEalgorithm from being used for the view in cases where it should be allowed. (Bug#21646)When records are merged from the insert buffer and the page needs to be reorganized,
InnoDBused incorrect column length information when interpreting the records of the page. This caused a server crash due to apparent corruption of secondary indexes inROW_FORMAT=COMPACTthat contain prefix indexes of fixed-length columns. Data files should not be corrupted, but the crash was likely to repeat every time the server was restarted. (Bug#21638)For character sets having a
mbmaxlenvalue of 2, anyALTER TABLEstatement changedTEXTcolumns toMEDIUMTEXT. (Bug#21620)mysql displayed an empty string for
NULLvalues. (Bug#21618)Selecting from a
MERGEtable could result in a server crash if the underlying tables had fewer indexes than theMERGEtable itself. (Bug#21617, Bug#22937)A loaded storage engine plugin did not load after a server restart. (Bug#21610)
For
INSERT ... ON DUPLICATE KEY UPDATE, use ofVALUES(within thecol_name)UPDATEclause sometimes was handled incorrectly. (Bug#21555)Subqueries with aggregate functions but no
FROMclause could return incorrect results. (Bug#21540)mysqldump incorrectly tried to use
LOCK TABLESfor tables in theINFORMATION_SCHEMAdatabase. (Bug#21527)The server could crash for the second execution of a function containing a
SELECTstatement that uses an aggregatingINsubquery. (Bug#21493)Memory overruns could occur for certain kinds of subqueries. (Bug#21477)
A
DATEcan be represented as an integer (such as20060101) or as a string (such as'2006.01.01'). When aDATE(orTIME) column is compared in oneSELECTagainst both representations, constant propagation by the optimizer led to comparison ofDATEas a string againstDATEas an integer. This could result in integer comparisons such as2006against20060101, erroneously producing a false result. (Bug#21475)myisam_ftdump produced bad counts for common words. (Bug#21459)
Adding
ORDER BYto aSELECT DISTINCT(query could produce incorrect results. (Bug#21456)expr)The URL into the online manual that is printed in the stack trace message by the server was out of date. (Bug#21449)
Database and table names have a maximum length of 64 characters (even if they contain multi-byte characters), but were truncated to 64 bytes.
Note
An additional fix was made in MySQL 5.1.18.
With
max_sp_recursionset to 0, a stored procedure that executed aSHOW CREATE PROCEDUREstatement for itself triggered a recursion limit exceeded error, though the statement involves no recursion. (Bug#21416)After
FLUSH TABLES WITH READ LOCKfollowed byUNLOCK TABLES, attempts to drop or alter a stored routine failed with an error that the routine did not exist, and attempts to execute the routine failed with a lock conflict error. (Bug#21414)On 64-bit Windows, a missing table generated error 1017, not the correct value of 1146. (Bug#21396)
Table aliases in multiple-table
DELETEstatements sometimes were not resolved. (Bug#21392)The optimizer sometimes produced an incorrect row-count estimate after elimination of
consttables. This resulted in choosing extremely inefficient execution plans in same cases when distribution of data in joins were skewed. (Bug#21390)For multiple-table
UPDATEstatements, storage engines were not notified of duplicate-key errors. (Bug#21381)Using relative paths for
DATA DIRECTORYorINDEX DIRECTORYwith a partitioned table generated a warning rather than an error, and caused “junk” files to be created in the server's data directory. (Bug#21350)Using
EXPLAIN PARTITIONSwith a query on a table whose partitioning expression was based on the value of aDATEcolumn could sometimes cause the server to crash. (Bug#21339)The feature of being able to recover a temporary table named
#sql_inidInnoDBby creating a table namedrsql_was broken by the introduction of the new identifier encoding in MySQL 5.1.6 (Bug#21313)id_recover_innodb_tmp_tableIt was possible for a stored routine with a non-
latin1name to cause a stack overrun. (Bug#21311)A query result could be sorted improperly when using
ORDER BYfor the second table in a join. (Bug#21302)Query results could be incorrect if the
WHEREclause containedt., wherekey_partNOT IN (val_list)val_listis a list of more than 1000 constants. (Bug#21282)Queries that used the
index_mergeandsort_unionmethods to access anInnoDBtable could produce inaccurate results. This issue was introduced in MySQL 5.1.10 when a new handler and bitmap interface was implemented. (Bug#21277)For user-defined functions created with
CREATE FUNCTION, theDEFINERclause is not legal, but no error was generated. (Bug#21269)The
SELECTprivilege was required for an insert on a view, instead of theINSERTprivilege. (Bug#21261)This regression was introduced by Bug#20989.
mysql_config --libmysqld-libs did not produce any SSL options necessary for linking
libmysqldwith SSL support enabled. (Bug#21239)Subqueries on
INFORMATION_SCHEMAtables could erroneously return an empty result. (Bug#21231)mysql_upgrade created temporary files in a possibly insecure way. (Bug#21224)
When
DROP DATABASEorSHOW OPEN TABLESwas issued while concurrently in another connection issuingDROP TABLE,RENAME TABLE,CREATE TABLE LIKEor any other statement that required a name lock, the server crashed. (Bug#21216, Bug#19403)The
--master-dataoption for mysqldump requires certain privileges, but mysqldump generated a truncated dump file without producing an appropriate error message or exit status if the invoking user did not have those privileges. (Bug#21215)Using
ALTER TABLE ... REORGANIZE PARTITIONSto reduce the number of subpartitions to 1 caused the server to crash. (Bug#21210)In the package of pre-built time zone tables that is available for download at http://dev.mysql.com/downloads/timezones.html, the tables now explicitly use the
utf8character set so that they work the same way regardless of the system character set value. (Bug#21208)Under heavy load (executing more than 1024 simultaneous complex queries), a problem in the code that handles internal temporary tables could lead to writing beyond allocated space and memory corruption.
Use of more than 1024 simultaneous cursors server wide also could lead to memory corruption. This applies to both stored procedure cursors and C API cursors. (Bug#21206)
When run with the
--use-threadsoption, mysqlimport returned a random exit code. (Bug#21188)A subquery that uses an index for both the
WHEREandORDER BYclauses produced an empty result. (Bug#21180)Running
SHOW TABLE STATUSon anyInnoDBtable having at least one record could crash the server. Note that this was not due to any issue in theInnoDBstorage engine, but rather withAUTO_INCREMENThandling in the partitioning code — however, the table did not have to have anAUTO_INCREMENTcolumn for the bug to manifest. (Bug#21173)Some prepared statements caused a server crash when executed a second time. (Bug#21166)
The optimizer assumed that if
(a=x AND b=x)is true,(a=x AND b=x) AND a=bis also true. But that is not always so ifaandbhave different data types. (Bug#21159)Some
ALTER TABLEstatements affecting a table's subpartitioning could hang. (Bug#21143)Certain malformed
INSERTstatements could crash the mysql client. (Bug#21142)SHOW INNODB STATUScontained some duplicate output. (Bug#21113)InnoDBwas slow with more than 100,000.idbfiles. (Bug#21112)Creating a
TEMPORARYtable with the same name as an existing table that was locked by another client could result in a lock conflict forDROP TEMPORARY TABLEbecause the server unnecessarily tried to acquire a name lock. (Bug#21096)Performing an
INSERTon a view that was defined using aSELECTthat specified a collation and a column alias caused the server to crash . (Bug#21086)Incorrect results could be obtained from re-execution of a parametrized prepared statement or a stored routine with a
SELECTthat usesLEFT JOINwith a second table having only one row. (Bug#21081)ALTER VIEWdid not retain existing values of attributes that had been originally specified but were not changed in theALTER VIEWstatement. (Bug#21080)The
myisam_stats_methodvariable was mishandled when set from an option file or on the command line. (Bug#21054)With
query_cache_typeset to 0,RESET QUERY CACHEwas very slow and other threads were blocked during the operation. Now a cache reset is faster and nonblocking. (Bug#21051)mysql crashed for very long arguments to the
connectcommand. (Bug#21042)When creating a table using
CREATE...SELECTand a stored procedure, there would be a mismatch between the binary log and transaction cache which would cause a server crash. (Bug#21039)A query using
WHEREdid not return consistent results on successive invocations. Thecolumn=constantORcolumnIS NULLcolumnin each part of theWHEREclause could be either the same column, or two different columns, for the effect to be observed. (Bug#21019)mysqldump sometimes did not select the correct database before trying to dump views from it, resulting in an empty result set that caused mysqldump to die with a segmentation fault. (Bug#21014)
Performance during an import on a table with a trigger that called a stored procedure was severely degraded. (Bug#21013)
mysql_upgrade produced a malformed
upgrade_defaultsfile by overwriting the[client]group header with apasswordoption. This prevented mysqlcheck from running successfully when invoked by mysql_upgrade. (Bug#21011)A query of the form shown here caused the server to crash:
SELECT * FROM t1 NATURAL JOIN ( t2 JOIN ( t3 NATURAL JOIN t4, t5 NATURAL JOIN t6 ) ON (t3.id3 = t2.id3 AND t5.id5 = t2.id5) );A
SELECTthat used a subquery in theFROMclause that did not select from a table failed when the subquery was used in a join. (Bug#21002)REPLACE ... SELECTfor a view required theINSERTprivilege for tables other than the table being modified. (Bug#20989)STR_TO_DATE()sometimes would returnNULLif the%Dformat specifier was not the last specifier in the format string. (Bug#20987)A query using
WHERE NOT (yielded a different result from the same query using the samecolumn< ANY (subquery))columnandsubquerywithWHERE (. (Bug#20975)column> ANY (subquery))Under certain circumstances,
AVG(returned a value butkey_val)MAX(returned an empty set due to incorrect application ofkey_val)MIN()/MAX()optimization. (Bug#20954)Closing of temporary tables failed if binary logging was not enabled. (Bug#20919)
Use of zero-length variable names caused a server crash. (Bug#20908)
Building
mysqlon Windows with CMake 2.4 would fail to createlibmysqldcorrectly. (Bug#20907)Creating a partitioned table that used the
InnoDBstorage engine and then restarting mysqld with--skip-innodbcaused MySQL to crash. (Bug#20871)For certain queries, the server incorrectly resolved a reference to an aggregate function and crashed. (Bug#20868)
If the binary logging format was changed between the times when a locked table was modified and when it was unlocked, the binary log contents were incorrect. (Bug#20863)
It was possible to provide the
ExtractValue()function with input containing “tags” that were not valid XML; for example, it was possible to use tag names beginning with a digit, which are disallowed by the W3C's XML 1.0 specification. Such cases caused the function to return “junk” output rather than an error message signalling the user as to the true nature of the problem. (Bug#20854)InnoDB(Partitioning): Updating anInnoDBtable usingHASHpartitioning with a composite primary key would cause the server to hang. (Bug#20852)mysqldump did not add version-specific comments around
WITH PARSERandTABLESPACE ... STORAGE DISKclauses forCREATE TABLEstatements, causing dump files from servers where these features were in use to fail when loaded into older servers. (Bug#20841)For multiple
INSERT DELAYEDstatements executed in a batch by the delayed-insert handler thread, not all rows were written to the binary log. (Bug#20821)The
ExtractValue()function did not accept XML tag names containing a period (.) character. (Bug#20795)Using aggregate functions in subqueries yielded incorrect results under certain circumstances due to incorrect application of
MIN()/MAX()optimization. (Bug#20792)On Windows, inserting into a
MERGEtable after renaming an underlyingMyISAMtable caused a server crash. (Bug#20789)Within stored routines, some error messages were printed incorrectly. A nonnull-terminated string was passed to a message-printing routine that expected a null-terminated string. (Bug#20778)
Merging multiple partitions having subpartitions into a single partition with subpartitions, or splitting a single partition having subpartitions into multiple partitions with subpartitions, could sometimes crash the server. These issues were associated with a failure reported in the
partition_rangetest. (Bug#20767, Bug#20893, Bug#20766, Bug#21357)Searches against a
ZEROFILLcolumn of a partitioned table could fail when theZEROFILLcolumn was part of the table's partitioning key. (Bug#20733)If a column definition contained a character set declaration, but a
DEFAULTvalue began with an introducer, the introducer character set was used as the column character set. (Bug#20695)An
UPDATEthat referred to a key column in theWHEREclause and activated a trigger that modified the column resulted in a loop. (Bug#20670)Issuing a
SHOW CREATE FUNCTIONorSHOW CREATE PROCEDUREstatement without sufficient privileges could crash the mysql client. (Bug#20664)INSERT DELAYEDdid not honorSET INSERT_IDor theauto_increment_*system variables. (Bug#20627, Bug#20830)A buffer overwrite error in Instance Manager caused a crash. (Bug#20622)
Loading a plugin caused any an existing plugin with the same name to be lost. (Bug#20615)
A query selecting records from a single partition of a partitioned table and using
ORDER BY(whereicDESCicrepresents an indexed column) could cause errors or crash the server. (Bug#20583)If the
auto_increment_offsetsetting causes MySQL to generate a value larger than the column's maximum possible value, theINSERTstatement is accepted in strict SQL mode, whereas but should fail with an error. (Bug#20573)In a view defined with
SQL SECURITY DEFINER, theCURRENT_USER()function returned the invoker, not the definer. (Bug#20570)The
fill_help_tables.sqlfile did not contain aSET NAMES 'utf8'statement to indicate its encoding. This caused problems for some settings of the MySQL character set such asbig5. (Bug#20551)Scheduled events that invoked stored procedures executing DDL operations on partitioned tables could crash the server. (Bug#20548)
Users who had the
SHOW VIEWprivilege for a view and privileges on one of the view's base tables could not see records inINFORMATION_SCHEMAtables relating to the base table. (Bug#20543)The
fill_help_tables.sqlfile did not load properly if theANSI_QUOTESSQL mode was enabled. (Bug#20542)The
MD5(),SHA1(), andENCRYPT()functions should return a binary string, but the result sometimes was converted to the character set of the argument.MAKE_SET()andEXPORT_SET()now use the correct character set for their default separators, resulting in consistent result strings which can be coerced according to normal character set rules. (Bug#20536)If a partitioned
InnoDBtable contained anAUTO_INCREMENTcolumn, aSHOWstatement could cause an assertion failure with more than one connection. (Bug#20493)Using
EXPLAIN PARTITIONSwith aUNIONquery could crash the server. This could occur whether or not the query actually used any partitioned tables. (Bug#20484)Creation of a view as a join of views or tables could fail if the views or tables are in different databases. (Bug#20482)
SELECTstatements usingGROUP BYagainst a view could have missing columns in the output when there was a trigger defined on one of the base tables for the view. (Bug#20466)For connections that required a
SUBJECTvalue, a check was performed to verify that the value was correct, but the connection was not refused if not. (Bug#20411)mysql_upgrade was missing from binary MySQL distributions. (Bug#20403, Bug#18516, Bug#20556)
Some user-level errors were being written to the server's error log, which is for server errors. (Bug#20402)
Using
ALTER TABLE ... ENGINE =, wherexxwas not a storage engine supported by the server, would cause mysqld to crash. (Bug#20397)User names have a maximum length of 16 characters (even if they contain multi-byte characters), but were being truncated to 16 bytes. (Bug#20393)
Some queries using
ORDER BY ... DESCon subpartitioned tables could crash the server. (Bug#20389)mysqlslap did not enable the
CLIENT_MULTI_RESULTSflag when connecting, which is necessary for executing stored procedures. (Bug#20365)Queries using an indexed column as the argument for the
MIN()andMAX()functions following anALTER TABLE .. DISABLE KEYSstatement returned Got error 124 from storage engine untilALTER TABLE ... ENABLE KEYSwas run on the table. (Bug#20357)When a statement used a stored function that inserted into an
AUTO_INCREMENTcolumn, the generatedAUTO_INCREMENTvalue was not written into the binary log, so a different value could in some cases be inserted on the slave. (Bug#20341)Partitions were represented internally as the wrong data type, which led in some cases to failures of queries such as
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PARTITIONS WHERE PARTITION_NAME = '. (Bug#20340)partition_name'PROCEDURE ANALYSE()returned incorrect values ofMFLOAT(andM,D)DOUBLE(. (Bug#20305)M,D)Defining a table partitioned by
LISTwith a singlePARTITION ... VALUES IN (NULL)clause could lead to server crashes, particularly with queries havingWHEREconditions comparing the partitioning key with a constant. (Bug#20268, Bug#19801)Partition pruning could cause incorrect results from queries, such missing rows, when the partitioning expression relied on a
BIGINT UNSIGNEDcolumn. (Bug#20257)For a
MyISAMtable locked withLOCK TABLES ...WRITE, queries optimized using theindex_mergemethod did not show rows inserted with the lock in place. (Bug#20256)mysqldump produced a malformed dump file when dumping multiple databases that contained views. (Bug#20221)
Running
InnoDBwith many concurrent threads could cause memory corruption and a seg fault due to a bug introduced in MySQL 5.1.11. (Bug#20213)SUBSTRING()results sometimes were stored improperly into a temporary table when multi-byte character sets were used. (Bug#20204)The thread for
INSERT DELAYEDrows was maintaining a separateAUTO_INCREMENTcounter, resulting in incorrect values being assigned ifDELAYEDand non-DELAYEDinserts were mixed. (Bug#20195)The
--default-storage-engineserver option did not work. (Bug#20168)For a table having
LINEAR HASHsubpartitions, theLINEARkeyword did not appear in theSUBPARTITION_METHODcolumn of theINFORMATION_SCHEMA.PARTITIONStable. (Bug#20161)For a
DATEparameter sent via aMYSQL_TIMEdata structure,mysql_stmt_execute()zeroed the hour, minute, and second members of the structure rather than treating them as read-only. (Bug#20152)perror crashed on Solaris due to
NULLreturn value ofstrerror()system call. (Bug#20145)FLUSH TABLESfollowed by aLOCK TABLESstatement to lock a log table and a nonlog table caused an infinite loop and high CPU use. NowFLUSH TABLESignores log tables. To flush the log tables, useFLUSH LOGSinstead. (Bug#20139)On Linux,
libmysqlclientwhen compiled with yaSSL using the icc compiler had a spurious dependency on C++ libraries. (Bug#20119)For an
ENUMcolumn that used theucs2character set, usingALTER TABLEto modify the column definition caused the default value to be lost. (Bug#20108)For mysql, escaping with backslash sometimes did not work. (Bug#20103)
Queries on tables that were partitioned by
KEYand had aVARCHARcolumn as the partitioning key produced an empty result set. (Bug#20086)A number of dependency issues in the RPM
benchandtestpackages caused installation of these packages to fail. (Bug#20078)Use of
MIN()orMAX()withGROUP BYon aucs2column could cause a server crash. (Bug#20076)mysqld --flush failed to flush
MyISAMtable changes to disk following anUPDATEstatement for which no updated column had an index. (Bug#20060)In MySQL 5.1.11, the
--with-openssland--with-yassloptions were replaced by--with-ssl. But no message was issued if the old options were given. Now configure produces a message indicating that the new option should be used and exits. (Bug#20002)When a statement is executed that does not generate any rows, an extra table map event and associated binrows event would be generated and written to the binary log. (Bug#19995)
Join conditions using index prefixes on
utf8columns ofInnoDBtables incorrectly ignored rows where the length of the actual value was greater than the length of the index prefix. (Bug#19960)AUTHORSandCONTRIBUTORSwere not treated as reserved words. (Bug#19939)The
querycommand for mysqltest did not work. (Bug#19890)Identifiers with embedded escape characters were not handled correctly by some
SHOWstatements due to some old code that was doing some extra unescaping. (Bug#19874)When executing a
SELECTwithORDER BYon a view that is constructed from aSELECTstatement containing a stored function, the stored function was evaluated too many times. (Bug#19862)Using
SELECTon a corruptMyISAMtable using the dynamic record format could cause a server crash. (Bug#19835)Using cursors with
READ COMMITTEDisolation level could causeInnoDBto crash. (Bug#19834)CREATE DATABASE,RENAME DATABASE, andDROP DATABASEcould deadlock in cases where there was a global read lock. (Bug#19815)The yaSSL library bundled with
libmysqlclienthad some conflicts with OpenSSL. Now macros are used to rename the conflicting symbols to have a prefix ofya. (Bug#19810)The
WITH CHECK OPTIONwas not enforced when aREPLACEstatement was executed against a view. (Bug#19789)Multiple-table updates with
FEDERATEDtables could cause a server crash. (Bug#19773)On 64-bit systems, use of the
cp1250character set with a primary key column in aLIKEclause caused a server crash for patterns having letters in the range 128..255. (Bug#19741)make install tried to build files that should already have been built by make all, causing a failure if installation was performed using a different account than the one used for the initial build. (Bug#19738)
InnoDBunlocked its data directory before committing a transaction, potentially resulting in nonrecoverable tables if a server crash occurred before the commit. (Bug#19727)An issue with yaSSL prevented Connector/J clients from connecting to the server using a certificate. (Bug#19705)
For a
MyISAMtable with aFULLTEXTindex, compression with myisampack or a check with myisamchk after compression resulted in table corruption. (Bug#19702)The
EGNINEclause was displayed in the output ofSHOW CREATE TABLEfor partitioned tables when the SQL mode includedno_table_options. (Bug#19695)A cast problem caused incorrect results for prepared statements that returned float values when MySQL was compiled with gcc 4.0. (Bug#19694)
EXPLAIN PARTITIONSwould produce illegible output in thepartitionscolumn if the length of text to be displayed in that column was too long. This could occur when very many partitions were defined for the table, partitions were given very long names, or due to a combination of the two. (Bug#19684)The
mysql_list_fields()C API function returned the incorrect table name for views. (Bug#19671)If a query had a condition of the form
, which participated in equality propagation and also was used fortableX.key=tableY.keyrefaccess, then earlyref-accessNULLfiltering was not performed for the condition. This could make query execution slower. (Bug#19649)Re-execution of a prepared multiple-table
DELETEstatement that involves a trigger or stored function can result in a server crash. (Bug#19634)File size specifications for
InnoDBdata files were case sensitive. (Bug#19609)CHECK TABLEon aMyISAMtable briefly cleared itsAUTO_INCREMENTvalue, while holding only a read lock. Concurrent inserts to that table could use the wrongAUTO_INCREMENTvalue.CHECK TABLEno longer modifies theAUTO_INCREMENTvalue. (Bug#19604)Some yaSSL public function names conflicted with those from OpenSSL, causing conflicts for applications that linked against both OpenSSL and a version of
libmysqlclientthat was built with yaSSL support. The yaSSL public functions now are renamed to avoid this conflict. (Bug#19575)In the
INFORMATION_SCHEMA.FILEStable, theINITIAL_SIZE,MAXIMUM_SIZE, andAUTOEXTEND_SIZEcolumns incorrectly were being stored asVARCHARrather thanBIGINT. . (Bug#19544)InnoDBfailed to increment thehandler_read_prevcounter. (Bug#19542)Portions of statements related to partitioning were not surrounded by version-specific comments by
mysqldump, breaking backward compatibility for dump files. (Bug#19488)Repeated
DROP TABLEstatements in a stored procedure could sometimes cause the server to crash. (Bug#19399)Renaming a database to itself caused a server crash. (Bug#19392)
Race conditions on certain platforms could cause the Instance Manager to fail to initialize. (Bug#19391)
When not running in strict mode, the server failed to convert the invalid years portion of a
DATEorDATETIMEvalue to'0000'when inserting it into a table.Note
This fix was reverted in MySQL 5.1.18.
See also Bug#25301.
Use of the
--no-pageroption caused mysql to crash. (Bug#19363)Multiple calls to a stored procedure that altered a partitioned
MyISAMtable would cause the server to crash. (Bug#19309)ALTER TABLE ... COALESCE PARTITIONdid not delete the files associated with the partitions that were removed. (Bug#19305)Adding an index to a partitioned table that had been created using
AUTO_INCREMENT =caused thevalueAUTO_INCREMENTvalue to be reset. (Bug#19281)Multiple-table
DELETEstatements containing a subquery that selected from one of the tables being modified caused a server crash. (Bug#19225)The final parenthesis of a
CREATE INDEXstatement occurring in a stored procedure was omitted from the binary log when the stored procedure was called. (Bug#19207)An
ALTER TABLEoperation that does not need to copy data, when executed on a table created prior to MySQL 4.0.25, could result in a server crash for subsequent accesses to the table. (Bug#19192)SSL connections using yaSSL on OpenBSD could fail. (Bug#19191)
ALTER TABLE ... REBUILD PARTITIONcould cause the server to hang or crash. (Bug#19122)Using
ALTER TABLEon a subpartitioned table caused the server to crash. (Bug#19067)Trying to execute a query having a
WHEREclause usingon a partitioned table whose partitioning or subpartitioning function used the integer columnint_col= "string_value" ORint_colIS NULLint_colwould crash the server. (Bug#19055)A
SELECTwith a subquery that was bound to the outer query over multiple columns returned different results when a constant was used instead of one of the dependant columns. (Bug#18925)It was possible using
ALTER EVENT ... RENAME ...to move an event to a database on which the user did not have theEVENTprivilege. (Bug#18897)When used in the
DOclause of aCREATE EVENTstatement, the statementsCREATE EVENT,CREATE FUNCTION, andCREATE PROCEDUREcaused the server to crash. (These statements are not permitted insideCREATE EVENT.) (Bug#18896, Bug#16409)BITcolumns in a table could cause joins that use the table to fail. (Bug#18895)The build process incorrectly tried to overwrite
sql/lex_hash.h. This caused the build to fail when using a shadow link tree pointing to original sources that were owned by another account. (Bug#18888)Setting
myisam_repair_threadscaused any repair operation on aMyISAMtable to fail to update the cardinality of indexes, instead making them always equal to 1. (Bug#18874)The MySQL server startup script /etc/init.d/mysql (created from mysql.server) is now marked to ensure that the system services ypbind, nscd, ldap, and NTP are started first (if these are configured on the machine). (Bug#18810)
InnoDB: Quoted Unicode identifiers were not handled correctly. This included names of tables, columns, and foreign keys. (Bug#18800)Intermediate tables created during the execution of an
ALTER TABLEstatement were visible in the output ofSHOW TABLES. (Bug#18775)FEDERATEDtables raised invalid duplicate key errors when attempting on one server to insert rows having the same primary key values as rows that had been deleted from the linked table on the other server. (Bug#18764)Memory used by scheduled events was not freed when the events were dropped. (Bug#18683)
The implementation for
UNCOMPRESS()did not indicate that it could returnNULL, causing the optimizer to do the wrong thing. (Bug#18539)Referring to a stored function qualified with the name of one database and tables in another database caused a “table doesn't exist” error. (Bug#18444)
Identifiers could not contain bytes with a value of 255, though that should be allowed as of the identifier-encoding changes made in MySQL 5.1.6. (Bug#18396)
Triggers on tables in the
mysqldatabase caused a server crash. Triggers for tables in this database now are disallowed. (Bug#18361, Bug#18005)Incorrect type aggregation for
IN()andCASEexpressions could lead to an incorrect result. (Bug#18360)The length of the pattern string prefix for
LIKEoperations was calculated incorrectly for multi-byte character sets. As a result, the scanned range was wider than necessary if the prefix contained any multi-byte characters, and rows could be missing from the result set. (Bug#18359, Bug#16674)On Windows, corrected a crash stemming from differences in Visual C runtime library routines from POSIX behavior regarding invalid file descriptors. (Bug#18275)
Linking the
pthreadslibrary to single-threaded MySQL libraries causeddlopen()to fail at runtime on HP-UX. (Bug#18267)The source distribution failed to compile when configured with the
--with-libwrapoption. (Bug#18246)On Windows, terminating mysqld with Control-C could result in a crash during shutdown. (Bug#18235)
Selecting data from a
MEMORYtable with aVARCHARcolumn and aHASHindex over it returned only the first row matched. (Bug#18233)The use of
MIN()andMAX()on columns with an index prefix produced incorrect results in some queries. (Bug#18206)A
UNIONover more than 128SELECTstatements that use an aggregate function failed. (Bug#18175)The optimizer did not take advantage of indexes on columns used for the second or third arguments of
BETWEEN. (Bug#18165)Performing
INSERT ... SELECT ... JOIN ... USINGwithout qualifying the column names causedERROR 1052 "column 'x' in field list is ambiguous"even in cases where the column references were unambiguous. (Bug#18080)An update that used a join of a table to itself and modified the table on both sides of the join reported the table as crashed. (Bug#18036)
Race conditions on certain platforms could cause the Instance Manager to try to restart the same instance multiple times. (Bug#18023)
Changing the definition of a
DECIMALcolumn withALTER TABLEcaused loss of column values. (Bug#18014)For table-format output, mysql did not always calculate columns widths correctly for columns containing multi-byte characters in the column name or contents. (Bug#17939)
The character set was not being properly initialized for
CAST()with a type likeCHAR(2) BINARY, which resulted in incorrect results or even a server crash. (Bug#17903)Checking a
MyISAMtable (usingCHECK TABLE) having a spatial index and only one row would wrongly indicate that the table was corrupted. (Bug#17877)For a reference to a nonexistent index in
FORCE INDEX, the error message referred to a column, not an index. (Bug#17873)A stored procedure that created and invoked a prepared statement was not executed when called in a mysqld init-file. (Bug#17843)
It is possible to create
MERGEtables into which data cannot be inserted (by not specifying aUNIONclause. However, when an insert was attempted, the error message was confusing. Now an error occurs indicating that the table is read-only. (Bug#17766)Attempting to insert a string of greater than 4096 bytes into a
FEDERATEDtable resulted in the error ERROR 1296 (HY000) at line 2: Got error 10000 'Error on remote system: 1054: Unknown column 'string-value' from FEDERATED. This error was raised regardless of the type of column involved (VARCHAR,TEXT, and so on.) (Bug#17608)If a file name was specified for the
--logor--log-slow-queriesoptions but the server was logging to tables and not files, the server produced no error message. (Bug#17599)If the general log table reached a large enough file size (27GB),
SELECT COUNT(*)on the table caused a server crash. (Bug#17589)Using the extended syntax for
TRIM()— that is,TRIM(... FROM ...)— in aSELECTstatement defining a view caused an invalid syntax error when selecting from the view. (Bug#17526)Use of the
--promptoption orpromptcommand caused mysql to be unable to connect to the Instance Manager. (Bug#17485)OPTIMIZE TABLEandREPAIR TABLEyielded incorrect messages or warnings when used on partitioned tables. (Bug#17455)mysqldump would not dump views that had become invalid because a table named in the view definition had been dropped. Instead, it quit with an error message. Now you can specify the
--forceoption to cause mysqldump to keep going and write an SQL comment containing the view definition to the dump output. (Bug#17371)N'xxx'and_utf8'xxx'were not treated as equivalent becauseN'xxx'failed to unescape backslashes (\) and doubled apostrophe/single quote characters (''). (Bug#17313)Following a failed attempt to add an index to an
ARCHIVEtable, it was no longer possible to drop the database in which the table had been created. (Bug#17310)Assignments of values to variables of type
TEXTwere handled incorrectly in stored routines. (Bug#17225)Views created from prepared statements inside of stored procedures were created with a definition that included both
SQL_CACHEandSQL_NO_CACHE. (Bug#17203)mysqldump wrote an extra pair of
DROP DATABASEandCREATE DATABASEstatements if run with the--add-drop-databaseoption and the database contained views. (Bug#17201)A Table ... doesn't exist error could occur for statements that called a function defined in another database. (Bug#17199)
A prepared statement that altered partitioned table within a stored procedure failed with the error Unknown prepared statement handler. (Bug#17138)
myisam_ftdump would fail when trying to open a MyISAM index file that you did not have write permissions to access, even though the command would only be reading from the file. (Bug#17122)
ALTER TABLEon a table created prior to 5.0.3 would cause table corruption if theALTER TABLEdid one of the following:Change the default value of a column.
Change the table comment.
Change the table password.
For statements that have a
DEFINERclause such asCREATE TRIGGERorCREATE VIEW, long user names or host names could cause a buffer overflow. (Bug#16899)The
PASSWORD()function returned invalid results when used in someUNIONqueries. (Bug#16881)ORDER BY RAND() LIMIT 1always set a user variable to the last possible value from the table. (Bug#16861)Queries containing a subquery that used aggregate functions could return incorrect results. (Bug#16792)
Concatenating the results of multiple constant subselects produced incorrect results. (Bug#16716)
When performing a
GROUP_CONCAT(), the server transformedBLOBcolumnsVARCHARcolumns, which could cause erroneous results when using Connector/J and possibly other MySQL APIs. (Bug#16712)Stored procedures did not use the character set defined for the database in which they were created. (Bug#16676)
Some server errors were not reported to the client, causing both to try to read from the connection until a hang or crash resulted. (Bug#16581)
If the files for an open table were removed at the OS level (external to the server), the server exited with an assertion failure. (Bug#16532)
On Windows, a definition for
mysql_set_server_option()was missing from the C client library. (Bug#16513)mysqlcheck tried to check views instead of ignoring them. (Bug#16502)
Updating a column of a
FEDERATEDtable toNULLsometimes failed. (Bug#16494)For
SELECT ... FOR UPDATEstatements that usedDISTINCTorGROUP BYover all key parts of a unique index (or primary key), the optimizer unnecessarily created a temporary table, thus losing the linkage to the underlying unique index values. This caused aResult set not updatableerror. (The temporary table is unnecessary because under these circumstances the distinct or grouped columns must also be unique.) (Bug#16458)A scheduled event that took longer to execute than the length of time scheduled between successive executions could “skip” executions. For example, an event defined with
EVERY 1 SECOND— but which required longer than 1 second to complete — might be executed only once every 2 seconds. (Bug#16417)A subselect used in the
ON SCHEDULEclause of aCREATE EVENTorALTER EVENTstatement caused the server to crash, rather than producing an error as expected. (Bug#16394)Grant table modifications sometimes did not refresh the in-memory tables if the host name was
''or not specified. (Bug#16297)A subquery in the
WHEREclause of the outer query and usingINandGROUP BYreturned an incorrect result. (Bug#16255)A query could produce different results with and without and index, if the
WHEREclause contained a range condition that used an invalidDATETIMEconstant. (Bug#16249)TIMESTAMPDIFF()examined only the date and ignored the time when the requested difference unit was months or quarters. (Bug#16226)Using tables from MySQL 4.x in MySQL 5.x, in particular those with
VARCHARfields and usingINSERT DELAYEDto update data in the table would result in either data corruption or a server crash. (Bug#16218, Bug#17294, Bug#16611)The value returned by a stored function returning a string value was not of the declared character set. (Bug#16211)
The
index_merge/Intersectionoptimizer could experience a memory overrun when the number of table columns covered by an index was sufficiently large, possibly resulting in a server crash. (Bug#16201)Row equalities (such as
WHERE (a,b) = (c,d)were not taken into account by the optimizer, resulting in slow query execution. Now they are treated as conjunctions of equalities between row elements. (Bug#16081)Some memory leaks in the
libmysqldembedded server were corrected. (Bug#16017)Values greater than 2 gigabytes used in the VALUES LESS THAN clause of a table partitioned by RANGE were treated as negative numbers. (Bug#16002)
A
CREATE TABLEthat produced a The PARTITION function returns the wrong type error also caused an Incorrect information in file to be printed toSTDERR, and a junk file to be left in the database directory. (Bug#16000)The
max_lengthmetadata value for columns created fromCONCAT()could be incorrect when the collation of an argument differed from the collation of theCONCAT()itself. In some contexts such asUNION, this could lead to truncation of the column contents. (Bug#15962)When
NOW()was used in aBETWEENclause of the definition for a view, it was replaced with a constant in the view. (Bug#15950)The server's handling of the number of partitions or subpartitions specified in a
PARTITIONSorSUBPARTITIONSclause was changed. Beginning with this release, the number of partitions must:be a positive, nonzero integer
not have any leading zeroes
not be an expression
Also beginning with this version, no attempt is made to convert, truncate, or evaluate a
PARTITIONSorSUBPARTITIONSvalue; instead, theCREATE TABLEorALTER TABLEstatement containing thePARTITIONSorSUBPARTITIONSclause now fails with an appropriate error message. (Bug#15890)Long multiple-row
INSERTstatements could take a very long time for some multi-byte character sets. (Bug#15811)The C API failed to return a status message when invoking a stored procedure. (Bug#15752)
mysqlimport sends a
set @@character_set_database=binarystatement to the server, but this is not understood by pre-4.1 servers. Now mysqlimport encloses the statement within a/*!40101 ... */comment so that old servers will ignore it. (Bug#15690)DELETEwithLEFT JOINforInnoDBtables could crash the server ifinnodb_locks_unsafe_for_binlogwas enabled. (Bug#15650)BIN(),OCT(), andCONV()did not work with BIT values. (Bug#15583)Nested natural joins worked executed correctly when executed as a nonprepared statement could fail with an
Unknown column 'error when executed as a prepared statement, due to a name resolution problem. (Bug#15355)col_name' in 'field list'The
MD5()andSHA()functions treat their arguments as case-sensitive strings. But when they are compared, their arguments were compared as case-insensitive strings, which leads to two function calls with different arguments (and thus different results) compared as being identical. This can lead to a wrong decision made in the range optimizer and thus to an incorrect result set. (Bug#15351)Invalid escape sequences in option files caused MySQL programs that read them to abort. (Bug#15328)
SHOW GRANTS FOR CURRENT_USERdid not return definer grants when executed inDEFINERcontext (such as within a stored prodedure defined withSQL SECURITY DEFINER), it returned the invoker grants. (Bug#15298)The
--collation-serverserver option was being ignored. With the fix, if you choose a nondefault character set with--character-set-server, you should also use--collation-serverto specify the collation. (Bug#15276)Re-executing a stored procedure with a complex stored procedure cursor query could lead to a server crash. (Bug#15217)
The server crashed if it tried to access a
CSVtable for which the data file had been removed. (Bug#15205)When using tables containing
VARCHARcolumns created under MySQL 4.1 with a 5.0 or later server, for some queries the metadata sent to the client could have an empty column name. (Bug#14897)An invalid comparison between keys with index prefixes over multi-byte character fields could lead to incorrect result sets if the selected query execution plan used a range scan by an index prefix over a
UTF8character field. This also caused incorrect results under similar circumstances with many other character sets. (Bug#14896)When setting a column to its implicit default value as the result of inserting a
NULLinto aNOT NULLcolumn as part of a multi-row insert orLOAD DATAoperation, the server returned a misleading warning message. (Bug#14770)For
BOOLEANmode full-text searches on nonindexed columns,NULLrows generated by aLEFT JOINcaused incorrect query results. (Bug#14708, Bug#25637)The parser rejected queries that selected from a table twice using a
UNIONwithin a subquery. The parser now supports arbitrary subquery, join, and parenthesis operations withinEXISTSsubqueries. A limitation still exists for scalar subqueries: If the subquery containsUNION, the firstSELECTof theUNIONcannot be within parentheses. For example,SELECT (SELECT a FROM t1 UNION SELECT b FROM t2)will work, butSELECT ((SELECT a FROM t1) UNION (SELECT b FROM t2))will not. (Bug#14654)Using
SELECTand a table join while running a concurrentINSERToperation would join incorrect rows. (Bug#14400)Prepared statements caused general log and server memory corruption. (Bug#14346)
The binary log lacked character set information for table names when dropping temporary tables. (Bug#14157)
libmysqldproduced some warnings tostderrwhich could not be silenced. These warnings now are suppressed. (Bug#13717)RPM packages had spurious dependencies on Perl modules and other programs. (Bug#13634)
InnoDBlocking was improved by removing a gap lock for the case that you try to delete the same row twice within a transaction. (Bug#13544)REPLACEstatements caused activation ofUPDATEtriggers, notDELETEandINSERTtriggers. (Bug#13479)The source distribution failed to compile when configured with the
--without-geometryoption. (Bug#12991)With settings of
read_buffer_size>= 2G andread_rnd_buffer_size>=2G,LOAD DATA INFILEfailed with no error message or caused a server crash for files larger than 2GB. (Bug#12982)A
B-TREEindex on aMEMORYtable erroneously reported duplicate entry error for multipleNULLvalues. (Bug#12873)Instance Manager didn't close the client socket file when starting a new mysqld instance. mysqld inherited the socket, causing clients connected to Instance Manager to hang. (Bug#12751)
On Mac OS X, zero-byte
read()orwrite()calls to an SMB-mounted file system could return a nonstandard return value, leading to data corruption. Now such calls are avoided. (Bug#12620)DATE_ADD()andDATE_SUB()returnedNULLwhen the result date was on the day'9999-12-31'. (Bug#12356)For very complex
SELECTstatements could create temporary tables that were too large, and for which the temporary files were not removed, causing subsequent queries to fail. (Bug#11824)After an
INSERT ... ON DUPLICATE KEY UPDATEstatement that updated an existing row,LAST_INSERT_ID()could return a value not in the table. (Bug#11460)USEdid not refresh database privileges when employed to re-select the current database. (Bug#10979)The server returns a more informative error message when it attempts to open a
MERGEtable that has been defined to use non-MyISAMtables. (Bug#10974)The type of the value returned by the
VARIANCE()function varied according to the type of the input value. The function should always return aDOUBLEvalue. (Bug#10966)The same trigger error message was produced under two conditions: The trigger duplicated an existing trigger name, or the trigger duplicated an existing combination of action and event. Now different messages are produced for the two conditions so as to be more informative. (Bug#10946)
A locking safety check in
InnoDBreported a spurious error stored_select_lock_type is 0 inside ::start_stmt() forINSERT ... SELECTstatements ininnodb_locks_unsafe_for_binlogmode. The safety check was removed. (Bug#10746)CREATE USERdid not respect the 16-character user name limit. (Bug#10668)A server or network failure with an open client connection would cause the client to hang even though the server was no longer available.
As a result of this change, the
MYSQL_OPT_READ_TIMEOUTandMYSQL_OPT_WRITE_TIMEOUToptions formysql_options()now apply to TCP/IP connections on all platforms. Previously, they applied only to Windows. (Bug#9678)INSERT INTO ... SELECT ... LIMIT 1could be slow because theLIMITwas ignored when selecting candidate rows. (Bug#9676)The optimizer could produce an incorrect result after
ANDwith collations such aslatin1_german2_ci,utf8_czech_ci, andutf8_lithianian_ci. (Bug#9509)The
DATA DIRECTORYtable option did not work forTEMPORARYtables. (Bug#8706)A stored procedure with a
CONTINUEhandler that encountered an error continued to execute a statement that caused an error, rather with the next statement following the one that caused the error. (Bug#8153)For ODBC compatibility, MySQL supports use of
WHEREforcol_nameIS NULLDATEorDATETIMEcolumns that areNOT NULL, to allow column values of'0000-00-00'or'0000-00-00 00:00:00'to be selected. However, this was not working forWHEREclauses inDELETEstatements. (Bug#8143)A user variable set to a value selected from an unsigned column was stored as a signed value. (Bug#7498)
The
--with-collationoption was not honored for client connections. (Bug#7192)With
TRADITIONALSQL mode, assignment of out-of-bound values and rounding of assigned values was done correctly, but assignment of the same numbers represented as strings sometimes was handled differently. (Bug#6147)On an
INSERTinto an updatable but noninsertable view, an error message was issued stating that the view was not updatable. Now the message says the view is not insertable-into. (Bug#5505)EXPLAINsometimes returned an incorrectselect_typefor aSELECTfrom a view, compared to theselect_typefor the equivalentSELECTfrom the base table. (Bug#5500)Some queries that used
ORDER BYandLIMITperformed quickly in MySQL 3.23, but slowly in MySQL 4.x/5.x due to an optimizer problem. (Bug#4981)Incorporated portability fixes into the definition of
__attribute__inmy_global.h. (Bug#2717)User-created tables having a name beginning with
#sqlwere not visible toSHOW TABLESand could collide with internal temporary table names. Now they are not hidden and do not collide. (Bug#1405)
This is a new Beta development release, fixing recently discovered bugs.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: The Event Scheduler can now be in one of three states (on, off, or the new suspended state). In addition, due to the fact that
SET GLOBAL event_scheduler;now acts in a synchronous rather than asynchronous manner, the Event Scheduler thread can be no longer be activated or deactivated at run time.For more information regarding these changes, see Section 18.4.1, “Event Scheduler Overview”. (Bug#17619)
MySQL Cluster: The limit of 2048 ordered indexes per cluster has been lifted. There is now no upper limit on the number of ordered indexes (including
AUTO_INCREMENTcolumns) that may be used. (Bug#14509)Added the
log_queries_not_using_indexessystem variable. (Bug#19616)Added the
ssl_ca,ssl_capath,ssl_cert,ssl_cipher, andssl_keysystem variables, which display the values given via the corresponding command options. See Section 5.5.7.3, “SSL Command Options”. (Bug#19606)The
ENABLE KEYSandDISABLE KEYSclauses for theALTER TABLEstatement are now supported for partitioned tables. (Bug#19502)Added the
--ssl-verify-server-certoption to MySQL client programs. This option causes the server's Common Name value in its certificate to be verified against the host name used when connecting to the server, and the connection is rejected if there is a mismatch. AddedMYSQL_OPT_SSL_VERIFY_SERVER_CERToption for themysql_options()C API function to enable this verification. This feature can be used to prevent man-in-the-middle attacks. Verification is disabled by default. (Bug#17208)The default for the
innodb_thread_concurrencysystem variable was changed to8. (Bug#15868)It is now possible to use
NEW.values within triggers asvar_nameINOUTparameters to stored procedures. (Bug#14635)Added the
--angel-pid-fileoption to mysqlmanager for specifying the file in which the angel process records its process ID when mysqlmanager runs in daemon mode. (Bug#14106)Previously, to build MySQL from source with SSL support enabled, you would invoke configure with either the
--with-opensslor--with-yassloption. Those options both have been replaced by the--with-ssloption. By default,--with-sslcauses the bundled yaSSL library to be used. To select OpenSSL instead, give the option as--with-ssl=, wherepathpathis the directory where the OpenSSL header files and libraries are located.The
mysql_get_ssl_cipher()C API function was added.mysql_explain_log (a third-party program) is no longer included in MySQL distributions.
Bugs fixed:
Security Fix: An SQL-injection security hole has been found in multi-byte encoding processing. The bug was in the server, incorrectly parsing the string escaped with the
mysql_real_escape_string()C API function.This vulnerability was discovered and reported by Josh Berkus
<josh@postgresql.org>and Tom Lane<tgl@sss.pgh.pa.us>as part of the inter-project security collaboration of the OSDB consortium. For more information about SQL injection, please see the following text.Discussion. An SQL injection security hole has been found in multi-byte encoding processing. An SQL injection security hole can include a situation whereby when a user supplied data to be inserted into a database, the user might inject SQL statements into the data that the server will execute. With regards to this vulnerability, when character set-unaware escaping is used (for example,
addslashes()in PHP), it is possible to bypass the escaping in some multi-byte character sets (for example, SJIS, BIG5 and GBK). As a result, a function such asaddslashes()is not able to prevent SQL-injection attacks. It is impossible to fix this on the server side. The best solution is for applications to use character set-aware escaping offered by a function suchmysql_real_escape_string().However, a bug was detected in how the MySQL server parses the output of
mysql_real_escape_string(). As a result, even when the character set-aware functionmysql_real_escape_string()was used, SQL injection was possible. This bug has been fixed.Workarounds. If you are unable to upgrade MySQL to a version that includes the fix for the bug in
mysql_real_escape_string()parsing, but run MySQL 5.0.1 or higher, you can use theNO_BACKSLASH_ESCAPESSQL mode as a workaround. (This mode was introduced in MySQL 5.0.1.)NO_BACKSLASH_ESCAPESenables an SQL standard compatibility mode, where backslash is not considered a special character. The result will be that queries will fail.To set this mode for the current connection, enter the following SQL statement:
SET sql_mode='NO_BACKSLASH_ESCAPES';
You can also set the mode globally for all clients:
SET GLOBAL sql_mode='NO_BACKSLASH_ESCAPES';
This SQL mode also can be enabled automatically when the server starts by using the command-line option
--sql-mode=NO_BACKSLASH_ESCAPESor by settingsql-mode=NO_BACKSLASH_ESCAPESin the server option file (for example,my.cnformy.ini, depending on your system). (Bug#8378, CVE-2006-2753)See also Bug#8303.
Partitioning: MySQL Cluster:
SELECT MIN(from a Cluster table with user-defined partitioning crashed the server. (Bug#18730)unique_column)MySQL Cluster: Replication: (Replication): Memory was not freed after some
ALTER TABLEoperations, which could cause mysqld processes to crash. (Bug#19885)MySQL Cluster: Running
ALL STARTin theNDBmanagement client or restarting multiple nodes simultaneously could under some circumstances cause the cluster to crash. (Bug#19930)MySQL Cluster: (NDBAPI): On big-endian platforms,
NdbOperation::write_attr()did not update 32-bit fields correctly. (Bug#19537)MySQL Cluster:
TRUNCATEfailed on tables havingBLOBorTEXTcolumns with the error Lock wait timeout exceeded.Note
This issue affected both in-memory and Disk Data tables.
MySQL Cluster:
ALTER TABLE ENGINE=...failed when used to change a MySQL Cluster table having no explicit primary key to use a different storage engine.Note
As a consequence of this fix,
SHOW CREATE TABLEno longer displays auto-partitioning information forNDBCLUSTERtables.MySQL Cluster: (NDBAPI): The
Ndb::dropEventOperation()method failed to clean up all objects used, which could cause memory leaks to occur. (Bug#17610)MySQL Cluster: Using “stale” mysqld
.frmfiles could cause a newly-restored cluster to fail. This situation could arise when restarting a MySQL Cluster using the--initialoption while leaving connected mysqld processes running. (Bug#16875)MySQL Cluster: A Cluster whose storage nodes were installed from the
MySQL-ndb-storage-RPMs could not perform*CREATEorALTERoperations that made use of nondefault character sets or collations. (Bug#14918)MySQL Cluster: Data node failures could cause excessive CPU usage by ndb_mgmd. (Bug#13987)
Replication: The embedded server crashed with row-based replication enabled. (Bug#18518)
Cluster Replication: mysqld processes did not always detect cluster shutdown, leading to issues with Cluster replication and schema distribution. (Bug#19395)
The
Data_freecolumn in the output ofSHOW TABLE STATUSalways displayed 0 for partitioned tables. (Bug#19501)Altering a
VARCHARcolumn in aMyISAMtable to make it longer could cause corruption of the following column. (Bug#19386)In was not possible to invoke a stored routine containing dynamic SQL from a scheduled event. (Bug#19264)
Adding an index to a table created using partitioning by
KEYand theMEMORYstorage engine caused the server to crash. (Bug#19140)Use of uninitialized user variables in a subquery in the
FROMclause resulted in invalid entries in the binary log. (Bug#19136)A
CREATE TABLEstatement that created a table from a materialized view did not inherit default values from the underlying table. (Bug#19089)Premature optimization of nested subqueries in the
FROMclause that refer to aggregate functions could lead to incorrect results. (Bug#19077)When creating a table using
CREATE TABLE ... PARTITION BY ... SELECT ..., the partitioning clause was ignored. (Bug#19062)For dates with 4-digit year parts less than 200, an implicit conversion to add a century was applied for date arithmetic performed with
DATE_ADD(),DATE_SUB(),+ INTERVAL, and- INTERVAL. (For example,DATE_ADD('0050-01-01 00:00:00', INTERVAL 0 SECOND)became'2050-01-01 00:00:00'.) Now these operations returnNULLrather than an incorrect non-NULLvalue. (Bug#18997)BLOBorTEXTarguments to or values returned from stored functions were not copied properly if too long and could become garbled. (Bug#18587)The client libraries were not compiled for position-independent code on Solaris-SPARC and AMD x86_64 platforms. (Bug#18091, Bug#13159, Bug#14202)
Returning the value of a system variable from a stored function caused a server crash. (Bug#18037)
Revised memory allocation for local objects within stored functions and triggers to avoid memory leak for repeated function or trigger invocation. (Bug#17260)
Symlinking
.mysql_historyto/dev/nullto suppress statement history saving by mysql did not work. (mysql deleted the symlink and recreated.mysql_historyas a regular file, and then wrote history to it.) (Bug#16803)IS_USED_LOCK()could return an incorrect connection identifier. (Bug#16501)Simultaneous scheduled events whose actions conflicted with one another could crash the server. (Bug#16428)
Concurrent reading and writing of privilege structures could crash the server. (Bug#16372)
The server no longer uses a signal handler for signal 0 because it could cause a crash on some platforms. (Bug#15869)
EXPLAIN ... SELECT INTOcaused the client to hang. (Bug#15463)CREATE TABLE ... SELECT ...statements that used a stored function explicitly or implicitly (through a view) resulted in aTable not lockederror. (Bug#15137, Bug#12472)Display better error message for
ALTER TABLEoperations that will result in duplicate keys due toAUTO_INCREMENTresequencing. (Bug#14573)The result from
CONV()is a string, but was not always treated the same way as a string when converted to a real value for an arithmetic operation. (Bug#13975)Within a trigger,
SETused the SQL mode of the invoking statement, not the mode in effect at trigger creation time. (Bug#6951)Corrected several problems with the treatment of the
--log-erroroption by mysqld_safe. These problems were manifest as differences from mysqld in error log handling.If a file name was given for
--log-error, mysqld_safe ignored it and did not pass it to mysqld, which then wrote error information tostderrand resulted in incorrect log rotation whenFLUSH LOGSwas used.mysql_safe now adds
.errto the end of the file name if no extension is present (the same as mysqld).mysqld_safe treated a relative path name as relative to its own current working directory. Now it treats a relative path name as relative to the data directory (the same as mysqld).
In addition, some argument quoting problems were corrected. (Bug#6061)
The
basedirandtmpdirsystem variables could not be accessed via@@syntax. (Bug#1039)var_namemysqld_safe treated a relative path name as relative to its own current working directory. Now it treats a relative path name as relative to the data directory (the same as mysqld).
mysql_safe now adds
.errto the end of the file name if no extension is present (the same as mysqld).If a file name was given for
--log-error, mysqld_safe ignored it and did not pass it to mysqld, which then wrote error information tostderrand resulted in incorrect log rotation whenFLUSH LOGSwas used.The patch for Bug#8303 broke the fix for Bug#8378 and was reverted.
In string literals with an escape character (
\) followed by a multi-byte character that had (\) as its second byte, the literal was not interpreted correctly. Now only next byte now is escaped, and not the entire multi-byte character. This means it is a strict reverse of themysql_real_escape_string()function.
Note
This was an internal release only, and no binaries were published.
MySQL 5.1.10 includes the patches for recently reported security
vulnerabilites in the MySQL client-server protocol. We would like
to thank Stefano Di Paola <stefano.dipaola@wisec.it>
for finding and reporting these to us.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Security Enhancement: Added the global
max_prepared_stmt_countsystem variable to limit the total number of prepared statements in the server. This limits the potential for denial-of-service attacks based on running the server out of memory by preparing huge numbers of statements. The current number of prepared statements is available through theprepared_stmt_countsystem variable. (Bug#16365)MySQL Cluster: It is now possible to restore a MySQL Cluster backup between big-endian and little-endian machines. (Bug#19255)
MySQL Cluster: It is now possible to perform a partial start of a cluster. That is, it is now possible to bring up the cluster without first running ndbd
--initialon all configured data nodes. (Bug#18606)MySQL Cluster: It is now possible to install MySQL with Cluster support to a nondefault location and change the search path for font description files using either the
--basediror--character-sets-diroptions. (Previously in MySQL 5.1, ndbd searched only the default path for character sets.)Packaging: The
MySQL-shared-compat-5.1.shared compatibility RPMs no longer contain libraries for MySQL 5.0. This avoids a conflict because the 5.0 and 5.1 libraries share the sameX-.i386.rpmsonamenumber. They now contain libraries for MySQL 3.23, 4.0, 4.1, and 5.1. (Bug#19288)SQL syntax for prepared statements now supports
ANALYZE TABLE,OPTIMIZE TABLE, andREPAIR TABLE. (Bug#19308)The
ONLY_FULL_GROUP_BYSQL mode now also applies to theHAVINGclause. That is, columns not named in theGROUP BYclause cannot be used in theHAVINGclause if not used in an aggregate function. (Bug#18739)XPath expressions passed to the
ExtractValue()andUpdateXML()functions can now include the colon character (“:”). This enables use of these functions with XML which employs namespaces. (Bug#18170)On Windows, some names such as
nul,prn, andauxcould not be used as file names because they are reserved as device names. These are now allowable names in MySQL. They are encoded by appending@@@to the name when the server creates the corresponding file or directory. This occurs on all platforms for portability of the corresponding database object between platforms. (Bug#17870)The bundled yaSSL library was upgraded to version 1.3.5. This improves handling of certain problems with SSL-related command options. (Bug#17737)
You must now have the
DROPprivilege to drop table partitions. (Bug#17139)Server and clients ignored the
--sysconfdiroption that was passed to configure. The directory specified by this option, if set, now is used as one of the standard locations in which to look for option files. (Bug#15069)In result set metadata, the
MYSQL_FIELD.lengthvalue forBITcolumns now is reported in number of bits. For example, the value for aBIT(9)column is 9. (Formerly, the value was related to number of bytes.) (Bug#13601)The following statements now cause an implicit commit:
ANALYZE TABLE,CHECK TABLE,OPTIMIZE TABLE, andREPAIR TABLE.Added the
KEY_BLOCK_SIZEtable option and index option. This can be used inCREATE TABLE,ALTER TABLE, andCREATE INDEXstatements to provide a hint to the storage engine about the size to use for index key blocks. The engine is allowed to change the value if necessary.Added the
sql_big_selectssystem variable to the output ofSHOW VARIABLES.The mysql_upgrade command has been converted from a shell script to a C program, so it is available on non-Unix systems such as Windows. This program should be run for each MySQL upgrade. See Section 4.4.8, “mysql_upgrade — Check Tables for MySQL Upgrade”.
Added the
REFERENTIAL_CONSTRAINTStable toINFORMATION_SCHEMA. It provides information about foreign keys.Added the
have_dynamic_loadingsystem variable that indicates whether the server supports dynamic loading of plugins.Added
--debugoption to Instance Manager.Binary distributions that include SSL support now are built using yaSSL when possible.
Bugs fixed:
Security Fix: A
NULbyte within a comment in a statement string caused the rest of the string not to be written to the query log, allowing logging to be bypassed. (Bug#17667, CVE-2006-0903)Security Fix: A malicious client, using specially crafted invalid
COM_TABLE_DUMPpackets was able to trigger an exploitable buffer overflow on the server. Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and reporting this bug. (CVE-2006-1518)Security Fix: A malicious client, using specially crafted invalid login or
COM_TABLE_DUMPpackets was able to read uninitialized memory, which potentially, though unlikely in MySQL, could have led to an information disclosure. (, ) Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and reporting this bug. (CVE-2006-1516, CVE-2006-1517)MySQL Cluster: Replication: (Replication): Delete and update of rows in a table without a primary key failed on the slave. (Bug#17400)
MySQL Cluster: A 5.1.6 or newer server did not read local checkpoints recorded by any other 5.1 version, thus preventing a system restart following an upgrade. (Bug#19333)
MySQL Cluster: Concurrent
INSERTandROLLBACKstatements from different connections could cause node failures. (Bug#19245)MySQL Cluster: (Disk Data): Running an
INSERTand aDELETEon a Disk Data table in the same transaction could cause a deadlock. (Bug#19244)MySQL Cluster: Starting mysqld without
--log-bincaused DDL statements onNDBtables to time out. (Bug#19214)MySQL Cluster: (NDBAPI): Passing a nonexistent index name to
NdbIndexScanOperation::setBound()caused a segmentation fault. (Bug#19088)MySQL Cluster: mysql-test-run.pl started
NDBeven for test cases that did not need it. (Bug#19083)MySQL Cluster: Stopping multiple nodes could cause node failure handling not to be completed. (Bug#19039)
MySQL Cluster: The Cluster binlog mysqld accepted updates even though the binary log was not set up, which could lead to updates missing from the binary log. (Bug#18932)
MySQL Cluster: mysqld could crash when attempting an update if the cluster had failed previously. (Bug#18798)
MySQL Cluster: An
INSERTorUPDATEof more than 128 bytes of data in a 4-replica cluster could cause data nodes to crash. (Bug#18622)MySQL Cluster: (Disk Data):
CREATE LOGFILE GROUPaccepted values other thanNDBorNDBCLUSTERin theENGINEclause. (Bug#18604)MySQL Cluster: (Disk Data): Omitting the required
ENGINEclause from aCREATE LOGFILE GROUPorCREATE TABLESPACEstatement caused the server to crash. An appropriate error message is now returned instead. (Bug#18603)MySQL Cluster: Queries using
ORDER BYfailed against apkNLIST-partitioned Cluster table having a multi-column primary key, wherepkNrepresents one of the columns making up the primary key. (Bug#18598)MySQL Cluster: A simultaneous
DROP TABLEand table update operation utilising a table scan could trigger a node failure. (Bug#18597)MySQL Cluster: Fragment IDs were not logged correctly, causing ndb_restore_log to fail. (Bug#18594)
MySQL Cluster: Repeated use of the
SHOWandALL STATUScommands in the ndb_mgm client could cause the mgmd process to crash. (Bug#18591)MySQL Cluster: ndbd sometimes failed to start with the error Node failure handling not completed following a graceful restart. (Bug#18550)
MySQL Cluster: ndb_restore failed to restore a backup made from a 5.0 cluster to a 5.1 cluster. (Bug#18210)
MySQL Cluster: Adding an index to an unsigned integer column did not work correctly. (Bug#18133)
MySQL Cluster: A
SELECTfrom anNDBtable withORDER BYand aindexed_columnLIMITclause would fail followingALTER TABLE. (Bug#18094)MySQL Cluster: mysqldump included in its output data from the internal
clusterdatabase. (Bug#17840)MySQL Cluster: Backups could fail for large clusters with many tables, where the number of tables approached
MaxNoOfTables. (Bug#17607)MySQL Cluster: Some queries having a
WHEREclause of the formc1=val1 OR c2 LIKE 'val2'were not evaluated correctly. (Bug#17421)MySQL Cluster: An issue with ndb_mgmd prevented more than 27
mysqldprocesses from connecting to a single cluster at one time. (Bug#17150)MySQL Cluster: In a 2-node cluster with a node failure, restarting the node with a low value for
StartPartialTimeoutcould cause the cluster to come up partitioned (“split-brain” issue).A similar issue could occur when the cluster was first started with a sufficiently low value for this parameter. (Bug#16447, Bug#18612)
MySQL Cluster: Performing multiple
ALTER TABLEoperations on the sameNDBtable from different mysqld processes in the same cluster led to schema versioning errors when trying to access the table again following the restart of one of the mysqld processes. (Bug#16445)MySQL Cluster: On systems with multiple network interfaces, data nodes would get “stuck” in startup phase 2 if the interface connecting them to the management server was working on node startup while the interface interconnecting the data nodes experienced a temporary outage. (Bug#15695)
MySQL Cluster: On slow networks or CPUs, the management client
SHOWcommand could sometimes erroneously show all data nodes as being master nodes belonging to nodegroup 0. (Bug#15530)MySQL Cluster: Unused open handlers for tables in which the metadata had changed were not properly closed. This could result in stale results from
NDBtables following anALTER TABLEstatement. (Bug#13228)MySQL Cluster: Uninitialized internal variables could lead to unexpected results. (Bug#11033, Bug#11034)
MySQL Cluster: When attempting to create an index on a
BITorBLOBcolumn, Error 743: Unsupported character set in table or index was returned instead of Error 906: Unsupported attribute type in index.Cluster Replication: Partitioning: Attempting to create an index using multiple columns on an explicitly partitioned table in a replicated Cluster database could cause the master mysqld process to crash. (Bug#18284)
Cluster Replication: Replication: An issue with replication caused a mysqld connected to a replicated cluster to crash when entering single user mode. (Bug#18535)
Replication:
CREATE VIEWstatements would not be replicated to the slave if the--replicate-wild-ignore-tablerule was enabled. (Bug#18715)Replication: Updating a field value when also requesting a lock with
GET_LOCK()would cause slave servers in a replication environment to terminate. (Bug#17284)Replication: The binary log would create an incorrect
DROPquery when creating temporary tables during replication. (Bug#17263)Disk Data: Issuing a
CREATE LOGFILE GROUPstatement during the drop of anNDBtable would cause database corruption. (Bug#19141)Disk Data: Concurrent table schema operations and operations on log file groups, tablespaces, data files, or undo files could lead to data node failures. (Bug#18575)
Cluster Replication: Using the
--binlog-do-dboption caused problems withCREATE TABLEon the cluster acting as the replication master. (Bug#19492)Cluster Replication: When taking part in Cluster replication of tables containing
BLOBcolumns, mysqld falsely reported a large memory leak in the replication buffers when there was none. (Bug#19247)Cluster Replication: Trying to restore the
apply_statustable from a 5.0 cluster backup failed on a 5.1 server. (Bug#18935)A compatibility issue with NPTL (Native POSIX Thread Library) on Linux could result in a deadlock with
FLUSH TABLES WITH READ LOCKunder some conditions. (Bug#20048)Some outer joins were incorrectly converted to inner joins. (Bug#19816)
This regression was introduced by Bug#17146.
A view definition that referred to an alias in the
HAVINGclause could be saved in the.frmfile with the alias replaced by the expression that it referred to, causing failure of subsequentSELECT * FROMstatements. (Bug#19573)view_namemysql displayed
NULLfor strings that are empty or contain only spaces. (Bug#19564)Selecting from a view that used
GROUP BYon a nonconstant temporal interval (such asDATE(could cause a server crash. (Bug#19490)col) + INTERVAL TIME_TO_SEC(col) SECONDAn outer join of two views that was written using
{ OJ ... }syntax could cause a server crash. (Bug#19396)An issue with file handling in the partitioning code could cause mysqld to crash when started and then stopped within a very short period of time. (Bug#19313)
myisamchk and myisam_ftdump should allow either table names or
.MYIfile names as arguments, but allowed only table names. (Bug#19220)InnoDBcould read a delete mark from its system tables incorrectly. (Bug#19217)Executing a
CREATE EVENTstatement could cause 100% CPU usage. (Bug#19170)Eliminated some memory corruption problems that resultsd in
double free or corruptionerrors and a server crash. (Bug#19154)Attempting to set the default value of an
ENUMorSETcolumn toNULLcaused a server crash. (Bug#19145)Index corruption could occur in cases when
key_cache_block_sizewas not a multiple of themyisam-block-sizevalue (for example, with--key_cache_block_size=1536and--myisam-block-size=1024). (Bug#19079)Instance Manager now finds the version numbers, so that it works properly when the executable name isn't the same as what the Instance Manager launched (such as when wrapping a libtool-wrapped executable from the source tree). (Bug#19059)
Some fast
ALTER TABLEoperations (requiring no temporary table) did not work for all tables. (Bug#19011)Successive
ALTER TABLE ... DROP PARTITIONstatements on the same subpartitioned table could eventually cause the server to crash. (Bug#18962)Creating a table in an
InnoDBdatabase with a column name that matched the name of an internalInnoDBcolumn (includingDB_ROW_ID,DB_TRX_ID,DB_ROLL_PTRandDB_MIX_ID) would cause a crash. MySQL now returns Error 1005 Cannot create table witherrnoset to -1. (Bug#18934)The parser leaked memory when its stack needed to be extended. (Bug#18930)
MySQL would not compile on Linux distributions that use the
tinfolibrary. (Bug#18912)The server attempted to flush uninitialized log tables during
SIGHUPprocessing, causing a crash. (Bug#18848)For a reference to a nonexistent stored function in a stored routine that had a
CONTINUEhandler, the server continued as though a useful result had been returned, possibly resulting in a server crash. (Bug#18787)For single-
SELECTunion constructs of the form (SELECT ... ORDER BYorder_list1[LIMITn]) ORDER BYorder_list2, theORDER BYlists were concatenated and theLIMITclause was ignored. (Bug#18767)Inserts failed with duplicate key errors on a table partitioned using an
AUTO_INCREMENTcolumn for the partitioning key. (Bug#18753, Bug#18552)It was possible to create a
RANGE-partitioned table with a partition defined using the clauseVALUES LESS THAN (NULL), even though such a partition could never contain any values whatsoever. (Bug#18752)Delimited identifiers for partitions were not being treated the same as delimited identifiers for other database objects (such as tables and columns) with regard to allowed characters. (Bug#18750)
Conversion of a number to a
CHAR UNICODEstring returned an invalid result. (Bug#18691)If the second or third argument to
BETWEENwas a constant expression such as'2005-09-01 - INTERVAL 6 MONTHand the other two arguments were columns,BETWEENwas evaluated incorrectly. (Bug#18618)LOAD DATA FROM MASTERwould fail when trying to load theINFORMATION_SCHEMAdatabase from the master, because theINFORMATION_SCHEMAsystem database would already exist on the slave. (Bug#18607)Running an
ALTER TABLEon a partitioned table simultaneously experiencing a high number of concurrent DML statements could crash the server. (Bug#18572)A
LOCK TABLESstatement that failed could causeMyISAMnot to update table statistics properly, causing a subsequentCHECK TABLEto report table corruption. (Bug#18544)mysqltest incorrectly interpreted some
ER_error names given in thexxxerrorcommand. (Bug#18495)InnoDB:ALTER TABLEto add or drop a foreign key for anInnoDBtable had no effect. (Bug#18477)InnoDBdid not use a consistent read forCREATE ... SELECTwheninnodb_locks_unsafe_for_binlogwas set. (Bug#18350)DROP DATABASEdid not drop stored routines associated with the database if the database name was longer than 21 characters. (Bug#18344)A query on a table partitioned or subpartitioned by
HASHdid not display all results when using aWHEREcondition involving a column used in the hashing expression. (Bug#18329, Bug#18423)In mysqltest,
--sleep=0had no effect. Now it correctly causessleepcommands in test case files to sleep for 0 seconds. (Bug#18312)The
ExtractValue()function did not return character data within<![CDATA[]]>as expected. (Bug#18285)A recent change caused the mysql client not to display
NULLvalues correctly and to display numeric columns left-justified rather than right-justified. The problems have been corrected. (Bug#18265)Updates to a
MEMORYtable caused the size ofBTREEindexes for the table to increase. (Bug#18160)A failed
ALTER TABLEoperation could fail to clean up a temporary.frmfile. (Bug#18129)Event-creation statements enclosed in multi-line comments using
/*!syntax were not parsed correctly. (Bug#18078)version_number... */SELECT DISTINCTqueries sometimes returned only the last row. (Bug#18068)InnoDB: ADELETEfollowed by anINSERTand then by anUPDATEon a partitionedInnoDBtable caused subsequent queries to return incorrect results. (Bug#17992)It was possible to use trailing spaces in the names of partitions and subpartitions. Attempting to do so now raises the error Incorrect partition name. (Bug#17973)
LIKEsearches failed on aCHARcolumn used as the partitioning column of a table partitioned byKEY. (Bug#17946)Executing
SELECTon a large table that had been compressed within myisampack could cause a crash. (Bug#17917)The
sql_big_selectssystem variable was not displayed bySHOW VARIABLES. (Bug#17849)REPAIR TABLEdid not restore the length for packed keys in tables created under MySQL 4.x, which caused them to appear corrupt toCHECK TABLEbut not toREPAIR TABLE. (Bug#17810)A range access optimizer heuristic was invalid, causing some queries to be much slower in MySQL 5.0 than in 4.0. (Bug#17379, Bug#18940)
Logging to the
mysql.general_logandmysql.slow_logtables did not work for Windows builds because theCSVstorage engine was unavailable. TheCSVengine now is enabled in Windows builds. (Bug#17368)If the
WHEREcondition of a query contained anOR-edFALSEterm, the set of tables whose rows cannot serve for null-complements in outer joins was determined incorrectly. This resulted in blocking possible conversions of outer joins into joins by the optimizer for such queries. (Bug#17164)Casting a string to
DECIMALworked, but casting a trimmed string (usingLTRIM()orRTRIM()) resulted in loss of decimal digits. (Bug#17043)MyISAMtable deadlock was possible if one thread issued aLOCK TABLESrequest for write locks and then an administrative statement such asOPTIMIZE TABLE, if between the two statements another client meanwhile issued a multiple-tableSELECTfor some of the locked tables. (Bug#16986)ALTER TABLE ... REBUILD PARTITIONreturned an inaccurate error message. (Bug#16819)Use of
--default-storage-engine=innodbresulted in an error with the server reporting thatInnoDBwas an unknown table type. (Bug#16691)MySQL-shared-compat-5.1.9-0.i386.rpmincorrectly depended onglibc2.3 and could not be installed on aglibc2.2 system. (Bug#16539)The presence of multiple equalities in a condition after reading a constant table could cause the optimizer not to use an index. This resulted in certain queries being much slower than in MySQL 4.1. (Bug#16504)
Within a trigger,
CONNECTION_ID()did not return the connection ID of the thread that caused the trigger to be activated. (Bug#16461)The XPath
string-length()function was not implemented for use withExtractValue(). (Bug#16319)The
ExtractValue()function failed with a syntax error when the XPath expression used special characters such asÑ(“N-tilde”). (Bug#16233)The
sql_notesandsql_warningssystem variables were not always displayed correctly bySHOW VARIABLES(for example, they were displayed asONafter being set toOFF). (Bug#16195)If the first argument to
BETWEENwas aDATEorTIMEcolumn of a view and the other arguments were constants,BETWEENdid not perform conversion of the constants to the appropriate temporary type, resulting in incorrect evaluation. (Bug#16069)After calling
FLUSH STATUS, themax_used_connectionsvariable did not increment for existing connections and connections which use the thread cache. (Bug#15933)DELETEandUPDATEstatements that used largeNOT IN (clauses could use large amounts of memory. (Bug#15872)value_list)InnoDBfailure to release an adaptive hash index latch could cause a server crash if the query cache was enabled. (Bug#15758)LAST_INSERT_ID()in a stored function or trigger returned zero. . (Bug#15728)The
system_time_zoneandversion_*system variables could not be accessed viaSELECT @@syntax. (Bug#15684, Bug#12792)var_nameIf the server were built without partition support, it was possible to run partitioning-related statements with no errors or warnings, even though these statements would have no effect. Now such statements are disallowed unless the server has been compiled using the
--with-partitionoption. (Bug#15561)Use of
CONVERT_TZ()in a view definition could result in spurious syntax or access errors. (Bug#15153)Prevent recursive views caused by using
RENAME TABLEon a view after creating it. (Bug#14308)Some queries were slower in 5.0 than in 4.1 because some 4.1 cost-evaluation code had not been merged into 5.0. (Bug#14292)
Avoid trying to include
<asm/atomic.h>when it doesn't work in C++ code. (Bug#13621)Running myisampack followed by myisamchk with the
--unpackoption would corrupt theauto_incrementkey. (Bug#12633)Use of
CONVERT_TZ()in a stored function or trigger (or in a stored procedure called from a stored function or trigger) caused an error. (Bug#11081)When myisamchk needed to rebuild a table,
AUTO_INCREMENTinformation was lost. (Bug#10405)
This is a new Beta development release, fixing recently discovered bugs.
Note
This Beta release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
MySQL Cluster: The
NDBstorage engine now supportsCREATE TABLEstatements of arbitrary length. (Previously,CREATE TABLEstatements for MySQL Cluster tables could contain a maximum of 4096 characters only.) (Bug#17813)MySQL Cluster: Added the
--nowait-nodesstartup option for ndbd, making it possible to skip specified nodes without waiting for them to start when starting the cluster. See Program Options for ndbd and ndbmtd.mysqld_safe no longer checks for a mysqld-max binary. Instead, mysqld_safe nows checks only for the standard mysqld server unless another server binary is specified explicitly via
--mysqldor--mysqld-version. If you previously relied on the implicit invocation of mysqld-max, you should use an appropriate option now. (Bug#17861)For partitioned tables, the output of
SHOW TABLE STATUSnow shows in theEnginecolumn the name of the storage engine used by all partitions for the table; in theCreate_optionscolumn, the output now showspartitionedfor a partitioned table. This change also affects the values shown in the corresponding columns of theINFORMATION_SCHEMA.TABLEStable. (Bug#17631)SHOW PLUGINwas renamed toSHOW PLUGINS.SHOW PLUGINnow is deprecated and generates a warning. (Bug#17112)Large file support was re-enabled for the MySQL server binary for the AIX 5.2 platform. (Bug#13571)
Binary MySQL distributions now include a mysqld-max server, in addition to the usual mysqld optimized server and the mysqld-debug debugging server.
Bugs fixed:
Security Fix: Invalid arguments to
DATE_FORMAT()caused a server crash. Thanks to Jean-David Maillefer for discovering and reporting this problem to the Debian project and to Christian Hammers from the Debian Team for notifying us of it. (Bug#20729, CVE-2006-3469)Partitioning: MySQL Cluster:
BLOBcolumns did not work correctly with user-partitionedNDBtables. (Bug#16796)MySQL Cluster: An uninitialized internal variable could lead to unexpected results. (Bug#18831)
MySQL Cluster:
TRUNCATEdid not reset theAUTO_INCREMENTcounter forMyISAMtables when issued inside a stored procedure.Note
This bug did not affect
InnoDBtables.In addition,
TRUNCATEdoes not reset theAUTO_INCREMENTcounter forNDBtables regardless of when it is called.See also Bug#18864.
For full-text searches in boolean mode, and when a full-text parser plugin was used, a
MYSQL_FTPARSER_PARAM::ftparser_statecould have been corrupted by recursive calls to the plugin. (Bug#18836)mysql_reconnect()sent aSET NAMESstatement to the server, even for pre-4.1 servers that do not understand the statement. (Bug#18830)A query against a partitioned table using
WHEREcould produce incorrect results given the following conditions:colIS NULLThe table had partitions and subpartitions
The partitioning function depended on a single column
colof one of the MySQL integer typesThe partitioning function was not monotonically increasing
The same issue could cause the server to crash when run in debug mode. (Bug#18659)
Partition pruning did not work properly for some kinds of partitioning and subpartitioning, with certain
WHEREclauses. (Partitions and subpartitions that should have been marked as used were not so marked.) The error could manifest as incorrect content inEXPLAIN PARTITIONSoutput as well as missing rows in the results of affected queries. (Bug#18558)Building the server using
--with-example-storage-enginefailed to enable theEXAMPLEstorage engine in the server. (Bug#18464)If
InnoDBencountered aHA_ERR_LOCK_TABLE_FULLerror and rolled back a transaction, the transaction was still written to the binary log. (Bug#18283)Complex queries with nested joins could cause a server crash. (Bug#18279)
COUNT(*)on aMyISAMtable could return different results for the base table and a view on the base table. (Bug#18237)EXTRACT(QUARTER FROMreturned unexpected results. (Bug#18100)date)Queries using
WHERE ... IS NULLreturned incorrect results from partitioned tables. (Bug#18070)Partition pruning did not perform correctly with partitions on
NULL, and could potentially crash the server. (Bug#18053)MEDIUMINTcolumns were not handled in the same way as other column types by partition pruning.Partition pruning would sometimes use inappropriate columns in preforming queries.
Both of these issues were rectified as part of the same bug fix. (Bug#18025)
For tables created in a MySQL 4.1 installation upgraded to MySQL 5.0 and up, multiple-table updates could update only the first matching row. (Bug#16281)
For mysql.server, if the
basediroption was specified afterdatadirin an option file, the setting fordatadirwas ignored and assumed to be located underbasedir. (Bug#16240)Triggers created in one version of the server could not be dropped after upgrading to a newer version. (Bug#15921)
CAST(for largedoubleAS SIGNED INT)doublevalues outside the signed integer range truncated the result to be within range, but the result sometimes had the wrong sign, and no warning was generated. (Bug#15098)Quoted values could not be used for partition option values. (Bug#13520)
Delimited identifiers could not be used in defining partitions. (Bug#13433)
mysql_config returned incorrect libraries on
x86_64systems. (Bug#13158)The server was always built as though
--with-extra-charsets=complexhad been specified. (Bug#12076)
Note
This was an internal release only, and no binaries were published.
Functionality added or changed:
Cluster Replication: Incompatible Change: The
cluster_replicationdatabase has been renamed tocluster. This will effect replication between MySQL Clusters where one cluster is running MySQL 5.1.8 or later, and the other is running MySQL 5.1.7 or earlier. See MySQL Cluster Replication, and especially MySQL Cluster Replication Schema and Tables.Incompatible Change: The semantics of
ALTER TABLEfor partitioned tables is changed, and now means that the storage engine used for tabletENGINE=X;tis changed toX.The previous statement formerly (prior to MySQL 5.1.8) meant that all partitioning was removed from the table. In order to remove the partitioning of a table, the syntax
ALTER TABLEis introduced. ThetREMOVE PARTITIONING;REMOVE PARTITIONINGoption can be used in combination with existingALTER TABLEoptions such as those employed for adding or dropping columns or indexes. (Bug#17754)Incompatible Change: For purposes of determining placement,
RANGEpartitioning now treatsNULLas less than any other value. (Formerly,NULLwas treated as equal to zero.) See Section 17.2.6, “How MySQL Partitioning HandlesNULL”. (Bug#15447)MySQL Cluster: The stability of
CREATEandDROPoperations onNDBtables containingBLOBcolumns has been improved. (Bug#17761)MySQL Cluster: The
NDBCLUSTERstorage engine now supportsINSERT IGNOREandREPLACEstatements. Previously, these statements failed with an error. (Bug#17431)Replication: Triggers from older servers that included no
DEFINERclause in the trigger definition now execute with the privileges of the invoker (which on the slave is the slave SQL thread). Previously, replication slaves could not replicate such triggers. (Bug#16266)Replication: The
binlog_formatsystem variable now can be set to a third format,MIXED, as described in Section 16.1.2, “Replication Formats”.Replication: The
binlog_formatsystem variable now is dynamic and can be changed at runtime, as described in Section 16.1.2, “Replication Formats”.Replication: A slave server may now switch the replication format automatically. This happens when the server is running in either
STATEMENTorMIXEDformat and encounters a row in the binary log that is written inROWlogging format. In that case, the slave switches to row-based replication temporarily for that event, and switches back to the previous format afterwards.Disk Data: You can now have only one log file group at any one time. See Section 12.1.14, “
CREATE LOGFILE GROUPSyntax”. (Bug#16386)Builds for Windows, Linux, and Unix (except AIX) platforms now have SSL support enabled, in the server as well as in the client libraries. Because part of the SSL code is written in C++, this does introduce dependencies on the system's C++ runtime libraries in several cases, depending on compiler specifics. (Bug#18195)
Partition pruning was made more stable, particularly in cases involving queries using tests for
NULLvalues in theWHEREclause against subpartitioned tables which were partitioned byLIST(. (Bug#17891)some_function(col1, ... ,colN) )The output of
SHOW CREATE EVENTno longer qualifies the event name with the name of the schem to which the event belongs. (Bug#17714)The deprecated constructs in the following table now generate warnings. You should not employ them in new applications, as they are likely to be removed in a future version of MySQL. Use the equivalents shown in the table's second column instead. For the same reason, existing applications that depend on the deprecated constructs should be converted to make use of the current equivalents as soon as possible.
Deprecated / Obsolete: Current / Preferred: @@table_type@@storage_engine@@log_bin_trust_routine_creators@@log_bin_trust_function_creatorsTIMESTAMP(N)See Section 11.6, “Date and Time Functions”. TYPE=ENGINE=BACKUP TABLEmysqldump, mysqlhotcopy, or MySQL Administrator RESTORE TABLE,LOAD TABLE FROM MASTERmysqldump, mysql, or MySQL Administrator SHOW TABLE TYPESSHOW [STORAGE] ENGINESSHOW INNODB STATUSSHOW ENGINE INNODB STATUSSHOW MUTEX STATUSSHOW ENGINE INNODB MUTEXSHOW BDB LOGS,SHOW LOGSSHOW ENGINE BDB LOGSSHOW BDB LOGSandSHOW LOGSare removed as of MySQL 5.1.12, and the other deprecated items shown in the table are removed as of MySQL 5.2.5.Important
TYPEvsENGINE. In order not to break legacy applications, support forTYPE =— deprecated since MySQL 4.0 — has been restored, but now generates a warning.engine_nameBeginning with MySQL 5.2.5,
TYPE =will no longer be available and will produce a syntax error.engine_nameYou should not use
TYPEin any new applications, and you should immediately begin conversion of existing applications to use theENGINE =syntax instead.engine_nameTemporary tables may no longer be partitioned. (Bug#17497)
More specific error messages are now given when attempting to create an excessive number of partitions or subpartitions. (Previously, no distinction was made between an excessive number of partitions and an excessive number of subpartitions.) (Bug#17393)
Added the
--eventsoption to mysqldump to enable events to be included in the dump output. (Bug#16853)For an event having no
STARTStime specified when it was created, themysql.eventtable'sstartcolumn now displays the creation time rather thanNULL.In addition, both the
SHOW EVENTSstatement'sStartscolumn and theSTARTScolumn of theINFORMATION_SCHEMA.EVENTStable are now empty rather thanNULLwhenSTARTSwas not used in theCREATE EVENTstatement. (Bug#16537)Event names are now case-insenstive. That is (for example), you cannot have events with the names
MyeventandMyEventbelonging to the same database and definer. (Bug#16415)Description of the
EVENTprivilege has been changed toTo create, alter, drop, and execute events. (Bug#16412)MICROSECONDintervals are no longer allowed for events. (Bug#16411)Events no longer support times past the end of the Unix epoch. (Formerly, such dates were interpreted as being at the beginning of the Unix epoch.) (Bug#16396)
The XPath
last()function is now implemented for use withExtractValue(). (Bug#16318)The
ExtractValue()function withcontains()now uses the SQL collation in making comparisons. Perviously, comparisons were always binary (that is, case-sensitive). (Bug#16316)Names of subpartitions must now be unique for an entire table, and not merely within the same partition. (Bug#15408)
Added the
--sysdate-is-nowoption to mysqld to enableSYSDATE()to be treated as an alias forNOW(). See Section 11.6, “Date and Time Functions”. (Bug#15101)mysqldumpnow surrounds theDEFINER,SQL SECURITY DEFINERandWITH CHECK OPTIONclauses of aCREATE VIEWstatement with "not in version" comments to prevent errors in earlier versions of MySQL. (Bug#14871)The
mysql_ping()function will now retry if thereconnectflag is set and errorCR_SERVER_LOSTis encountered during the first attempt to ping the server. (Bug#14057)The
mysqltestutility now converts allCR/LFcombinations toLFto allow test cases intended for Windows to work properly on UNIX-like systems. (Bug#13809)The output from
SHOW CREATE TABLEis more consistent about using uppercase for keywords. Data types still are in lowercase. (Bug#10460)The client API now attempts to reconnect using TCP/IP if the
reconnectflag is set, as is the case with sockets. (Bug#2845)The syntax for
CREATE PROCEDUREandCREATE FUNCTIONstatements now includes aDEFINERclause. TheDEFINERvalue specifies the security context to be used when checking access privileges at routine invocation time if the routine has theSQL SECURITY DEFINERcharacteristic. See Section 12.1.15, “CREATE PROCEDUREandCREATE FUNCTIONSyntax”, for more information.When mysqldump is invoked with the
--routinesoption, it now dumps theDEFINERvalue for stored routines.
Bugs fixed:
Partitioning: MySQL Cluster: Trying to insert a value into a nonexistent
LISTpartition of anNDBtable would cause the server to crash.Note
Beginning with MySQL 5.1.12, user-defined partitioning types other than
KEYorLINEAR KEYwere disabled forNDBtables.Partitioning: MySQL Cluster: A repeated
SELECTon a partitioned table that used theNDBstorage engine could cause the server to crash. (Bug#17390)MySQL Cluster: Replication:
auto_incrementvalues were not propagated correctly in statement-based replication. (Bug#18208)MySQL Cluster: Replication: Memory was mistakenly freed for
NdbRecAttrobjects during addition of an index while replicating the cluster, which could cause mysqld to crash. (Bug#18106)MySQL Cluster: Replication: Row-based replication could fail with tables using
VARCHARcolumns for primary keys and havingBLOBcolumns. (Bug#18067)MySQL Cluster: Replication: (Replication): The binary log on the secondary master was not being set up correctly following a table rename. (Bug#17838)
MySQL Cluster: Attempting to restart a node with dropped events still pending would fail. (Bug#18491)
MySQL Cluster: Two mysqld processes starting at the same time could cause a race condition. (Bug#18472)
MySQL Cluster: A timeout in the handling of an
ABORTcondition with more that 32 operations could yield a node failure. (Bug#18414)MySQL Cluster: Two mysqld processes did not synchronise
DROP TABLEbinary log events correctly. (Bug#18395)MySQL Cluster: A node restart immediately following a
CREATE TABLEwould fail.Important
This fix supports 2-node Clusters only.
MySQL Cluster: In event of a node failure during a rollback, a “false” lock could be established on the backup for that node, which lock could not be removed without restarting the node. (Bug#18352)
MySQL Cluster: When multiple node restarts were attempted without allowing each restart to complete, the error message returned was Array index out of bounds rather than Too many crashed replicas. (Bug#18349)
MySQL Cluster: The cluster created a crashed replica of a table having an ordered index — or when logging was not enabled, of a table having a table or unique index — leading to a crash of the cluster following 8 successive restarts. (Bug#18298)
MySQL Cluster: Issuing a
DROP LOGFILE GROUPstatement would cause ndbd processes to crash if MySQL had been compiled with gcc4. (Bug#18295)MySQL Cluster: When replacing a failed master node, the replacement node could cause the cluster to crash from a buffer overflow if it had an excessively large amount of data to write to the cluster log. (Bug#18118)
MySQL Cluster: Insufficient
StringBuffermemory when attempting to create a trigger caused the server to crash. (Bug#18101)MySQL Cluster: Variable-length columns used as primary keys were not handled correctly. (Bug#18075)
MySQL Cluster:
CREATE UNIQUE INDEXon a column containing nonunique data could cause one or more ndbd nodes to hang or crash. (Bug#18040)MySQL Cluster: Node recovery of tables with
VARCHARcolumns using character sets was inconsistent, which could cause a number of issues, including the data nodes failing to restart andALTER TABLEstatements to hang. (Bug#18026)MySQL Cluster: A
SELECT ... ORDER BYquery on an explicitly partitioned Cluster table with no explicit indexes would crash the server. (Bug#17899)MySQL Cluster:
ALTER TABLE ... ADD INDEXfailed with ERROR 756: Index on disk column is not supported when run against a Disk Data table having a primary key. (Bug#17888)MySQL Cluster: In some cases, a single ndbd node failed following a system restart. (Bug#17854)
MySQL Cluster: A simultaneous
RENAMEof several tables was logged multiple times. (Bug#17827)MySQL Cluster: Trying to perform a
DELETEfrom anNDBtable following aLOCK TABLEScaused the ndbd processes to hang. (Bug#17812)MySQL Cluster: Trying to update very large partitioned tables using the
NDBstorage engine sometimes caused the server to crash. (Bug#17806, Bug#16385)MySQL Cluster: Using
ALTER TABLE ... ADD PARTITIONon a table partitioned byLISTwould cause the client to hang. (Bug#17701)MySQL Cluster: With a single replica, transactions waiting in the log synchronisation queue were not being restarted, causing them to be aborted. (Bug#17536)
MySQL Cluster:
ALTER TABLEon a partitionedNDBtable could cause the server to crash. (Bug#17499)MySQL Cluster:
DELETEoperations onNDBtables could cause memory leaks. (Bug#16874)MySQL Cluster: Some query cache statistics were not always correctly reported for Cluster tables. (Bug#16795)
MySQL Cluster: Restarting nodes were allowed to start and join the cluster too early. (Bug#16772)
MySQL Cluster:
UNDO_BUFFER_SIZEwas limited to 17 MB. (Bug#16657, Bug#17890)MySQL Cluster: Inserting and deleting
BLOBcolumn values while a backup was in process could cause data nodes to shut down. (Bug#14028)Replication: Replication of data stored in a partitioned table would cause slave servers to issue a assertion and terminate. (Bug#18436)
Replication: Use of
TRUNCATE TABLEfor aTEMPORARYtable on a master server was propagated to slaves properly, but slaves did not decrement theSlave_open_temp_tablescounter properly. (Bug#17137)Replication: Slave servers would retry the execution of an SQL statement an infinite number of times, ignoring the value
SLAVE_TRANSACTION_RETRIESwhen using the NDB engine. (Bug#16228)Replication: The
DEFINERvalue for stored routines was not replicated. (Bug#15963)Disk Data:
CREATE UNIQUE INDEXfailed with Error 4243: Index not found. (Bug#18039)Disk Data: It was not possible to create more than 9 tablespaces. (Bug#16913)
A
SELECT ... ORDER BY ...from a view defined using a function could crash the server. An example of such a view isCREATE VIEW v1 AS SELECT SQRT(c1) FROM t1. (Bug#18386)The server would crash when
SHOW STATUSwas called on a server linked withyaSSL. (Bug#18310)The
ExtractValue()function did not return an error when passed an invalid XPath string. (Bug#18172)Using the
position()function in the XPath argument toExtractValue()crashed the server. (Bug#18171)REPAIR TABLE,OPTIMIZE TABLE, andALTER TABLEoperations on transactional tables (or on tables of any type on Windows) could corrupt triggers associated with those tables. (Bug#18153)Connecting to a server with a UCS2 default character set with a client using a non-UCS2 character set crashed the server. (Bug#18004)
Using
ALTER TABLE ... REBUILD PARTITIONwithout specifying the name of the partition caused the server to crash, rather than reporting a syntax error. (Bug#17947)ALTER TABLE ... REBUILD PARTITIONwith no partition name specified would crash the server. (Bug#17940)A query with a
WHEREcondition failed on a table partitioned bydate_column>date_valueRANGE. (Bug#17894)Renaming and adding a new column to a partitioned table in the same
ALTER TABLEstatement caused the server to crash. (Bug#17772)MyISAM: Performing a bulk insert on a table referenced by a trigger would crash the table. (Bug#17764)Using triggers with partitioned
InnoDBtables led to incorrect results. (Bug#17744)Updating a view that filters certain rows to set a filtered out row to be included in the table caused infinite loop. For example, if the view has a WHERE clause of
salary > 100then issuing an UPDATE statement ofSET salary = 200 WHERE id = 10, caused an infinite loop. (Bug#17726)A security enhancement in Visual Studio 8 could cause a MySQL debug server compiled with it to hang when running
SELECTqueries against partitioned tables. (Bug#17722)The
EXAMPLEstorage engine did not work on Windows. (Bug#17721)ALTER TABLE ... REORGANIZE PARTITIONfailed with Error on rename offilename... on Windows. (Bug#17720)The MySQL server could crash with out of memory errors when performing aggregate functions on a
DECIMALcolumn. (Bug#17602)NULLvalues were written to themysql.slow_logtable incorrectly. (Bug#17600)mysql_fix_privilege_tables did not create the
mysql.plugintable. (Bug#17568)Improper checking of binary log statements could result in a server crash. (Bug#17457)
Rpeated invocations of a stored procedure containing a
SHOW CREATE EVENTstatement would result in the error Packets out of order. (Bug#17403)For
FEDERATEDtables, aSELECTstatement with anORDER BYclause did not return rows in the proper order. (Bug#17377)SELECT ... WHERE, whencolumnLIKE 'A%'columnhad a key and used thelatin2_czech_cscollation, caused the wrong number of rows to be returned. (Bug#17374)Calling
CREATE TABLEorALTER TABLEtwice on a partitioned table in a stored procedure or a prepared statement resulted in errors and sometimes server crashes. (Bug#17290)Checks for permissions on database operations could be performed in a case-insensitive manner (a user with permissions on database
MYDATABASEcould by accident get permissions on databasemyDataBase), if the privilege data were still cached from a previous check. (Bug#17279)Stored procedures that call UDFs and pass local string variables caused server crashes. (Bug#17261)
A problem with
NULLs and interval mapping sometimes caused incorrect results or crashes when trying to use less-than searches on partitioned tables. (Bug#17173)Attempting to add a new partition to a table partitioned by a unique key would cause an Out of memory error. (Bug#17169)
Creating a table with the same name as the mapped name of another table caused a server crash. For example, if MySQL maps the table name
txu#P#p1totxu@0023P@0023p1on disk, creating another table namedtxu@0023P@0023p1crashed the server. (Bug#17142)Trying to add a partition to a table having subpartitions could crash the server. (Bug#17140)
Attempting to use a conflicting
VALUESclause inALTER TABLE ... ADD PARTITIONcaused the server to crash. An example of such a conflicting clause would be that usesVALUES LESS THAN ((which indicates a range) with a table that is partitioned byconstant)LIST. (Bug#17127)A failed
ALTER TABLE ... ADD PRIMARY KEYon a partitioned table would result in bad table metadata and could possibly crash the server. (Bug#17097)Stored routine names longer than 64 characters were silently truncated. Now the limit is properly enforced and an error occurs. (Bug#17015)
Cursors in stored routines could cause a server crash. (Bug#16887)
Triggers created without
BEGINandENDclauses resulted in “You have an error in your SQL syntax” errors when dumping and replaying a binary log. (Bug#16878)Using
ALTER TABLEto increase the length of aBINARY(column caused column values to be padded with spaces rather thanM)0x00bytes. (Bug#16857)ALTER TABLE ... COALESCE PARTITIONfailed with an Out of Memory error. (Bug#16810)ALTER TABLE ... ADD COLUMN ... AFTER ...failed when used on partitioned tables. (Bug#16806)If the server was started with the
--skip-grant-tablesoption, it was impossible to create a trigger or a view without explicitly specifying aDEFINERclause. (Bug#16777)In a highly concurrent environment, a server crash or deadlock could result from execution of a statement that used stored functions or activated triggers coincident with alteration of the tables used by these functions or triggers. (Bug#16593)
Clients compiled from source with the
--without-readlinedid not save command history from session to session. (Bug#16557)Using
ORDER BYwithin a stored procedure (whereintvarintvaris an integer variable or expression) would crash the server.Note
The use of an integer
iin anORDER BYclause for sorting the result by theiith column is deprecated (and nonstandard). It should not be used in new applications. See Section 12.2.8, “SELECTSyntax”.Slow queries executed by scheduled events were not being written to the slow query log. (Bug#16426)
INSERTstatements executed by scheduled events were not written to the general log. (Bug#16413)Repeated invocations of a stored procedure containing a
CREATE EVENTorALTER EVENTstatement would crash the server. (Bug#16408)Names of subpartitions were not displayed in the output of
SHOW CREATE TABLE. (Bug#16370)The
ExtractValue()function would not accept expressions which matched element names containing an underscore character. (Bug#16320)The
self()XPath function was not handled correcty byExtractValue(). (Bug#16315)The
ExtractValue()function allowed the use of the!character in identifiers by ignoring the illegal character. This is now correctly reported as a syntax error. (Bug#16313)A memory leak caused warnings on slaves for certain statements that executed without warning on the master. (Bug#16175)
No error was reported when subpartitions were defined for a nonsubpartitioned table. (Bug#15961)
Character set conversion of string constants for
UNIONof constant and table column was not done when it was safe to do so. (Bug#15949)The
mysql_close()C API function leaked handles for shared-memory connections on Windows. (Bug#15846)A
SELECTusing a function against a nested view would crash the server. (Bug#15683)Setting up subpartitions on at least one but not all the partitions of a partitioned table caused the server to crash. (Bug#15407)
During conversion from one character set to
ucs2, multi-byte characters with noucs2equivalent were converted to multiple characters, rather than to0x003F QUESTION MARK. (Bug#15375)CREATE TABLE ... PARTITION ... AS SELECT ...would cause the server to crash. (Bug#15336)When attempting to insert a
0into aLIST-partitioned table that had no value-list containing0, no error was reported. (Bug#15253)SELECT COUNT(*)for aMyISAMtable could return different results depending on whether an index was used. (Bug#14980)Stored routines that contained only a single statement were not written properly to the dumpfile when using
mysqldump. (Bug#14857)Execution of a stored function or trigger which inserted data into a table while running concurrent selects on the same table could result in storing incorrect data in the query cache. (Bug#14767)
Naming a partition using the characters Ç or ç (“c-cedilla”; Unicode
00C7or00E7) made unreadable the table containing the partition. (Bug#14527)Searches on indexed columns of partitioned tables failed to find all matching rows following updates of the indexed columns. (Bug#14526)
Creating a partition which depends on an expression containing a column using the UTF8 character set would cause the server to crash. (Bug#14367)
On Linux, creation of table partitions failed within a stored procedure. (Bug#14363)
Invoking more than once a prepared statement that creates a partitioned table would crash the server. (Bug#14350)
The
RENAME TABLEstatement did not move triggers to the new table. (Bug#13525)The server would execute stored routines that had a nonexistent definer. (Bug#13198)
The length of a
VARCHAR()column that used theutf8character set would increase each time the table was re-created in a stored procedure or prepared statement, eventually causing theCREATE TABLEstatement to fail. (Bug#13134)Loading of UDFs in a statically linked MySQL caused a server crash. UDF loading is now blocked if the MySQL server is statically linked. (Bug#11835)
Setting the
myisam_repair_threadssystem variable to a value larger than 1 could cause corruption of largeMyISAMtables. (Bug#11527)Issuing
GRANT EXECUTEon a procedure would display any warnings related to the creation of the procedure. (Bug#7787)
Functionality added or changed:
Incompatible Change: The
mysql_stmt_attr_get()C API function now returns a boolean rather than an unsigned int forSTMT_ATTR_UPDATE_MAX_LENGTH. (Bug#16144)Incompatible Change: Due to a change in the naming scheme for partitioning and subpartitioning files, it is not possible for the server to read partitioned tables created in previous MySQL versions. Attempting to read pre-5.1.6 partitioned tables with a MySQL 5.1.7 or later server now generates a suitable warning message.
Two possible workarounds are:
Create a nonpartitioned table with the same table schema using a standard
CREATE TABLEstatement (that is, with no partitioning clauses)Issue a
SELECT INTOto copy the data into the nonpartitioned table before the upgrade
Following the upgrade, you can partition the new table using
ALTER TABLE ... PARTITION BY ....Alternatively, you can dump the table using mysqldump prior to upgrading and reload it afterwards with
LOAD DATA.
In either case, you should drop the pre-5.1.6 partitioned tables before upgrading to 5.1.6 or later.
Important
If any partitioned tables that were created prior to MySQL 5.1.6 are present following an upgrade to MySQL 5.1.6 or later, it is also not possible to read from the
INFORMATION_SCHEMA.PARTITIONStable, nor will you be able to drop those tables or the database or databases in which they are located. In this event, you must:Shut down mysqld
Manually delete the table, partition, and (if any) subpartition files
Restart the MySQL Server
Incompatible Change:
TYPE =is no longer accepted as a synonym for theengine_nameENGINE =table option. (engine_nameTYPEhas been deprecated since MySQL 4.0.)MySQL Cluster: Attempting to
SELECT ... FROM INFORMATION_SCHEMA.FILESnow raises a warning in the event that the cluster has crashed. (Bug#17087)Replication: In row-based replication, when executing a Rows_log_event, the associated table was locked, the rows applied and the lock released. This did not work since there are storage engines that count locks and perform an autocommit when the number of locks reach zero. Now we ensure that all table maps come before all
ROWSevents in a statement.Disk Data: Status messages have been added to ndb_restore to enable users to know that data files for Disk Data are being created. (Bug#16873)
Cluster Replication: It is now possible to replicate
NDBtables having no explicit primary key. See MySQL Cluster Replication.Creator privileges are now checked for all events before execution. (Bug#17289)
CREATE EVENT,DROP EVENT, andALTER EVENTstatements are not allowed in triggers. (Bug#16410)The SQL mode in effect at the time an event is created or altered is recorded and used during event execution. (Bug#16407)
New
charsetcommand added to mysql command-line client. By typingcharsetorname\C(such asname\C UTF8), the client character set can be changed without reconnecting. (Bug#16217)Added the
--wait-timeoutoption to mysqlmanager to allow configuration of the timeout for dropping an inactive connection, and increased the default timeout from 30 seconds to 28,800 seconds (8 hours). (Bug#15980, Bug#12674)All subpartitions within a given partitioned table are now guaranteed to have unique names. (Bug#15408)
mysqlimport now has a
--use-threads=option for loading data files in parallel usingNNthreads.Added the
RENAME DATABASEstatement.Added the
PROCESSLISTtable toINFORMATION_SCHEMA.Several changes were made to make upgrades easier:
Added the mysql_upgrade program that checks all tables for incompatibilities with the current version of MySQL Server and repairs them if necessary. This program should be run for each MySQL upgrade (rather than mysql_fix_privilege_tables). See Section 4.4.8, “mysql_upgrade — Check Tables for MySQL Upgrade”.
Added the
FOR UPGRADEoption for theCHECK TABLEstatement. This option checks whether tables are incompatible with the current version of MySQL Server.Added the
--check-upgradeto mysqlcheck that invokesCHECK TABLEwith theFOR UPGRADEoption. Added the--fix-db-namesand--fix-table-namesoptions to mysqlcheck.
Added the
IN NATURAL LANGUAGE MODEandIN NATURAL LANGUAGE MODE WITH QUERY EXPANSIONmodifiers for full-text searches. See Section 11.8, “Full-Text Search Functions”.
Bugs fixed:
MySQL Cluster: Creating
NDBtables containingBLOBcolumns but no primary key caused unpredictable behavior. (Bug#17559)MySQL Cluster: Inserting the output of
REPEAT('into asome_string',some_int)BLOBcolumn resulted in the error Invalid blob attributes or invalid blob parts table. (Bug#17505)MySQL Cluster: ndbd restarts could sometimes fail due to incorrect memory access. (Bug#17417)
MySQL Cluster: Sharing of table names containing special characters between multiple SQL nodes was not handled correctly when binary logging was enabled (a timeout error resulted). (Bug#17415)
MySQL Cluster: Table definitions were not shared between multiple SQL nodes in a cluster without binary logging being enabled. (Bug#17414)
MySQL Cluster: Cluster log file paths were truncated to 128 characters. They may now be as long as
MAX_PATH(the maximum path length permitted by the operating system). (Bug#17411)MySQL Cluster:
SHOW CREATE TABLEwould fail when run against a table created in a different session. (Bug#17340)MySQL Cluster: Following multiple forced shutdowns and restarts of data nodes,
DROP DATABASEcould fail. (Bug#17325)MySQL Cluster: The
REDOlog would become corrupted (and thus unreadable) in some circumstances, due to a failure in the query handler. (Bug#17295)MySQL Cluster: An
UPDATEwith an inner join failed to match any records if both tables in the join did not have a primary key. (Bug#17257)MySQL Cluster: A
DELETEwith a join in theWHEREclause failed to retrieve any records if both tables in the join did not have a primary key. (Bug#17249)MySQL Cluster:
CREATE TEMPORARY TABLEof a Cluster table would fail with an Unsupported error or crash the server. (Bug#17210, Bug#16552)MySQL Cluster: The storage engine did not allow views to be updated. (Bug#17206)
MySQL Cluster: When attempting to import data into an
NDBtable usingLOAD DATA INFILE, the server would hang in the event of a duplicate key error. (Bug#17154)MySQL Cluster: In some cases,
LOAD DATA INFILEdid not load all data intoNDBtables. (Bug#17081)MySQL Cluster:
CREATE TABLEfailed whennew_tblLIKEold_tbl;old_tblused theNDBstorage engine. (Bug#17005)MySQL Cluster: An unhandled resources issue could cause node failure with a
DELETE FROM TABLEaffecting thousands of rows. (Bug#16492)MySQL Cluster:
UNIQUEkeys in Cluster tables were limited to 225 bytes in length. (Bug#15918)MySQL Cluster:
REPLACEfailed when attempting to update a primary key value in a Cluster table. (Bug#14007)MySQL Cluster: No error message was generated for setting
NoOfFragmentLogFilestoo low. (Bug#13966)MySQL Cluster: No error message was generated for setting
MaxNoOfAttributestoo low. (Bug#13965)MySQL Cluster: Performing large numbers of data manipulation statements on cluster tables using Disk Data could lead to a server crash.
Cluster Replication: Replication: Row-based replication of a cluster failed to take
--binlog-ignore-dbsettings into account. (Bug#17188)Replication: An
ALTER DATABASEstatement on a replication master crashed the slaves. (Bug#17521)Replication: For a transaction that used
MyISAMandInnoDBtables, interruption of the transaction due to a dropped connection on a master server caused slaves to lose synchrony. (Bug#16559)Replication: Previously, a stored function invocation was written to the binary log as
DOif the invocation changes data and occurs within a nonlogged statement, or if the function invokes a stored procedure that produces an error. These invocations now are logged asfunc_name()SELECTinstead for better control over error code checking (slave servers could stop due to detecting a different error than occurred on the master). (Bug#14769)func_name()Replication:
BITfields were not properly handled when using row-based replication. (Bug#13418)Disk Data: In some cases, a cluster using Disk Data tables could not be restarted following a normal shutdown. (Bug#16872)
Cluster Replication: Row-based replication was not set up correctly if a backup was already in progress. For example, connecting a mysqld instance to a cluster which was being backed up would result in the message NDB: skipping setup table
tbl_namebeing written to the error log. (Bug#17459)Cluster Replication: Cluster tables not having an explicit primary key could not be replicated. (Bug#14541)
Column counts were encoded incorrectly in the binary log for row-based logging format. (Bug#17678)
Data truncations on non-
UNIQUEindexes could crashInnoDBwhen using multi-byte character sets. (Bug#17530)Execution times for scheduled events were not calculated correctly: the last execution time was used as a base rather than the actual start time. (Bug#17494)
Creating an event and using a whitespace character other than space following the
DOkeyword caused a server crash. (Bug#17453)Partitioning with certain
SUBPARTITION BY HASHclauses caused an error when querying for a partitioned column using anIS NULLcomparison. (Bug#17430, Bug#17432)Race conditions between event creation, dropping, and execution could result in a server crash or hang. (Bug#17373)
Trying to create a partitioned table with more than 32 attributes failed. (Bug#17179)
Attempting to add a new partition to a table partitioned by a unique key would cause an Out of memory error. (Bug#17169)
myisam_ftdump did not work for
FULLTEXTindexes associated with a parser plugin. (Bug#17116)On Windows platforms, some attempts to create partitioned tables from the command line would cause the
mysqlclient to hang. (Bug#17082)A
SELECTfrom the last partition of a subpartitioned table having aUNIQUE KEYcould crash the MySQL Server. (Bug#16907)Statements that contained Unicode characters were not logged to the log tables correctly. (Bug#16905)
A
SELECTon a subpartitioned table having a multiple-columnPRIMARYorUNIQUE KEY, and whose partitioning function used only the first column of the key, could cause mysqld to crash. (Bug#16901)A
RETURNstatement within a trigger caused a server crash.RETURNnow is disallowed within triggers. To exit immediately, useLEAVE. (Bug#16829)Using
REPLACE INTOon a partitioned table having a primary key would crash the server in the event of a duplicate key error. (Bug#16782)DROP TABLEwould sometimes fail on a table having subpartitions that used the default storage engine. (Bug#16775)If the query optimizer transformed a
GROUP BYclause in a subquery, it did not also transform theHAVINGclause if there was one, producing incorrect results. (Bug#16603)Querying the
INFORMATION_SCHEMA.PARTITIONStable on a nonmax server caused a server crash. This also happened following the creation of a table with a very large number (hundreds) of partitions. (Bug#16591, Bug#17141)SHOW CREATE EVENTdisplayed no output. (Bug#16423)DROP DATABASEdid not drop events for the database. (Bug#16406)The
mysql_fix_privilege_tables.sqlscript did not properly initialize theEvent_privcolumn to'Y'for those accounts that should have theEVENTprivilege. (Bug#16400)SELECTwithGROUP BYon a view could cause a server crash. (Bug#16382)MySQL server dropped client connection for certain
SELECTstatements against views defined that usedMERGEalgorithm. (Bug#16260)Using an XPath expression containing
=withExtractValue()caused the server to crash. (Bug#16242)When used with the
ExtractValue()function, an XPath expression having no leading “/” character would crash the server. (Bug#16234)Using
GROUP BYon column used inWHEREclause could cause empty set to be returned. (Bug#16203)CAST(... AS TIME)operations returned different results when using versus not using prepared-statement protocol. (Bug#15805)The
SELECTprivilege was required for triggers that performed no selects. (Bug#15196)The
UPDATEprivilege was required for triggers that performed no updates. (Bug#15166)A statement containing
GROUP BYandHAVINGclauses could return incorrect results when theHAVINGclause contained logic that returnedFALSEfor every row. (Bug#14927)Killing a long-running query containing a subquery could cause a server crash. (Bug#14851)
SUBSTRING_INDEX()could yield inconsistent results when applied with the same arguments to consecutive rows in a query. (Bug#14676)SET sql_mode =, whereNN> 31, did not work properly. (Bug#13897)SHOW CREATE TABLEproduced extraneous spaces following the keywordsPRIMARY KEY. (Bug#13883)InnoDBcould display an incorrect error message for a cascading update. (Bug#9680)CHECKSUM TABLEreturned different values forMyISAMtables depending on whether theQUICKorEXTENDEDoption was used. (Bug#8841)SET TRANSACTION ISOLATION LEVELacted likeSET SESSION TRANSACTION ISOLATION LEVEL. That is, it set the isolation level for longer than the next transaction. (Bug#7955)Repeated invocation of
my_init()andmy_end()caused corruption of character set data and connection failure. (Bug#6536)
Functionality added or changed:
Incompatible Change: Words with apostrophes are now matched in a FULLTEXT search against nonapostrophe words (for example, a search for
Jerrywill match against the termJerry's). Users upgrading to this version must issueREPAIR TABLE ... QUICKstatements for tables containingFULLTEXTindexes. (Bug#14194)Incompatible Change: This release introduces the
TRIGGERprivilege. Previously, theSUPERprivilege was needed to create or drop triggers. Now those operations require theTRIGGERprivilege. This is a security improvement because you no longer need to grant users theSUPERprivilege to enable them to create triggers. However, the requirement that the account named in a trigger'sDEFINERclause must have theSUPERprivilege has changed to a requirement for theTRIGGERprivilege. After upgrading, be sure to update your grant tables by running mysql_upgrade. This will assign theTRIGGERprivilege to all accounts that had theSUPERprivilege. (After updating, you might also consider whether any of those accounts no longer need theSUPERprivilege.) If you fail to update the grant tables, triggers may fail when activated. (Bug#9412)Incompatible Change: Before MySQL 5.1.6, the server writes general query log and slow query log entries to log files. As of MySQL 5.1.6, the server's logging capabilities for these logs are more flexible. Log entries can be written to log files (as before) or to the
general_logandslow_logtables in themysqldatabase. If logging is enabled, either or both destinations can be selected. The--log-outputoption controls the destination or destinations of log output. See Section 5.2.1, “Selecting General Query and Slow Query Log Output Destinations”.If logging is enabled, the default destination now is to log to tables, which differs from earlier versions. If you had the server configured for logging to log files formerly, use
--log-output=FILEto preserve this behavior after an upgrade to MySQL 5.1.6 or higher.Important Change: MySQL Cluster: Replication: Replication between MySQL Clusters is now supported. It is now also possible to replicate between a MySQL Cluster and a noncluster database. See MySQL Cluster Replication, for more information.
MySQL Cluster: Added the
ndb_extra_loggingsystem variable.MySQL Cluster: The
NDBstorage engine now supports theCREATE INDEXandDROP INDEXstatements.Packaging: MySQL 5.1.6 introduces some changes to distribution packaging:
Distributions include both a mysqld optimized server and mysqld-debug debugging server. There is no separate debug distribution.
There is no longer a mysqld-max server. (Note: This changed in MySQL 5.1.9: The mysqld-max server also is included in binary distributions.)
Server binaries no longer are stripped, except for RPM distributions.
Binary distributions for Unix and Unix-like systems no longer include safe_mysqld as a link to mysqld_safe. safe_mysqld has been deprecated since MySQL 4.0 and now is removed.
The mysqldump utility now supports an option for dumping tablespaces. Use
-Yor--all-tablespacesto enable this functionality. (Bug#16753)Partition support is not an “engine”, but it was included in the output of
SHOW ENGINES. Now it is not. Thehave_partition_enginevariable was renamed tohave_partitioning. (Bug#14355, Bug#16718)ANALYZE TABLEis now supported for partitioned tables. (Bug#13441)Added the
--use-threadsoption for mysqlslap.Queries against partitioned tables can now take advantage of partition pruning. In some cases, this can result in query execution that is an order of magnitude faster than the same query against a nonpartitioned version of the same table.
There is no longer a mysqld-max server. (Note: This changed in MySQL 5.1.9: The mysqld-max server also is included in binary distributions.)
Added the
FILEStable toINFORMATION_SCHEMA.Binary distributions for Unix and Unix-like systems no longer include safe_mysqld as a link to mysqld_safe. safe_mysqld has been deprecated since MySQL 4.0 and now is removed.
Special characters in database and table identifiers now are encoded when creating the corresponding directory names and file names. This relaxes the restrictions on the characters that can appear in identifiers. See Section 8.2.3, “Mapping of Identifiers to File Names”.
Added the
event_schedulersystem variable.MySQL 5.1.6 introduces the Event Scheduler which allows one to schedule statements for execution at predetermined times. Events can be transient (one-time-only) or recurrent at regular intervals, and may execute queries and statements permitted in stored routines, including compound statements.
Events can be altered after creation, and dropped when no longer needed.
Information about scheduled events can be obtained using the statements
SHOW EVENTSandSHOW CREATE EVENT, or by querying theINFORMATION_SCHEMA.EVENTStable. All of these are available beginning in MySQL 5.1.6.Users must have the
EVENTprivilege (also added in 5.1.6) to create events.For more information, see Section 18.4, “Using the Event Scheduler”.
Distributions include both a mysqld optimized server and mysqld-debug debugging server. There is no separate debug distribution.
Server binaries no longer are stripped, except for RPM distributions.
The
ARCHIVEstorage engine now supports theAUTO_INCREMENTcolumn attribute and theAUTO_INCREMENTtable option. Section 13.11, “TheARCHIVEStorage Engine”.Server plugins can register their own status variables to be displayed by the
SHOW STATUSstatement.Added the
PARTITIONStable toINFORMATION_SCHEMA.Added the
EVENTStable toINFORMATION_SCHEMA.
Bugs fixed:
MySQL Cluster:
NDBleaked disk space when performing repeatedINSERTorDELETEstatements. (Bug#16771)MySQL Cluster: ndb_delete_all ran out of memory when processing tables containing
BLOBcolumns. (Bug#16693)MySQL Cluster: Trying to import too many dumped tables requiring resources beyond those allocated in the cluster configuration file caused the server to crash instead of reporting an insufficient resources error. (Bug#16455)
MySQL Cluster: A
BITcolumn whose offset and length totaled 32 caused the cluster to crash. (Bug#16125)MySQL Cluster: The
ndb_autodiscovertest failed sporadically due to a node not being permitted to connect to the cluster. (Bug#15619)MySQL Cluster:
NDBreturned an incorrect Can't find file error for OS error 24; this has been changed to Too many open files. (Bug#15020)MySQL Cluster:
CREATE TABLESPACEstatements were incorrectly parsed on 64-bit platforms. (INITIAL SIZEworked, butsizeINITIAL SIZE =failed.) (Bug#13556)sizeMySQL Cluster: Using mysqldump to obtain a dump of a partitioned table employing the
NDBstorage engine produced a nonfunctional table creation statement. (Bug#13155)Disk Data: Tablespaces created using parameters with relatively low values (10 MB or less) produced filesizes much smaller than expected. (Bug#16742)
Disk Data:
NDBreturned the wrong error when the tablespace on disk was full. (Bug#16738)Disk Data: The error message generated by a failed
ADD UNDOFILEdid not provide any reasons for the failure. (Bug#16267)Disk Data:
DROP LOGFILE GROUPcorrupted the cluster file system and caused ndbd to fail when running more than one node on the same system. (Bug#16193)Cluster API: Upon the completion of a scan where a key request remained outstanding on the primary replica and a starting node died, the scan did not terminate. This caused incomplete error handling for the failed node. (Bug#15908)
When the fulltext search parser plugin returned more words than half of the length (in bytes) of the query string, the server would crash. (Bug#16722)
An indexing error sometimes caused values to be assigned to the wrong
RANGEpartition. (Bug#16684)An
INSERTstatement in a stored procedure corrupted the binary log. (Bug#16621)Trying to add more than one partition in a single
ALTER TABLE ... ADD PARTITIONstatement caused the server to crash. (Bug#16534)Parallel builds occasionally failed on Solaris. (Bug#16282)
Inserting a negative value into an integer column used as the partitioning key for a table partitioned by
HASHcould cause the server to crash. (Bug#15968)Creating a partitioned table using a storage engine other than the session default storage engine caused the server to crash. (Bug#15966)
The error message for specifying values for which no partition exists returned wrong values on certain platforms. (Bug#15910)
Specifying a value for
--tmpdirwithout a trailing slash had unpredictable results. (Bug#15904)STR_TO_DATE(1,NULL)caused a server crash. (Bug#15828, CVE-2006-3081)ALTER TABLE ... ADD PARTITIONSon a table with one partition crashed the server. (Bug#15820)The
mysql_real_connect()C API function incorrectly reset theMYSQL_OPT_RECONNECToption to its default value. (Bug#15719)In some cases the query optimizer did not properly perform multiple joins where inner joins followed left joins, resulting in corrupted result sets. (Bug#15633)
Certain permission management statements could create a
NULLhost name for a user, resulting in a server crash. (Bug#15598)Improper memory handling for stored routine variables could cause memory overruns and binary log corruption. (Bug#15588)
The absence of a table in the left part of a left or right join was not checked prior to name resolution, which resulted in a server crash. (Bug#15538)
An
ALTER TABLE ... PARTITION BY ...statement did not have any effect. (Bug#15523)Using
RANGEpartitioning with aCASEexpression as the partitioning function would cause records to be placed in the wrong partition. (Bug#15393)Certain subqueries where the inner query was the result of a aggregate function would return different results with MySQL 5.1 than with MySQL 4.1.
Subselects could also return wrong results when the query cache and grouping were involved. (Bug#15347)
Attempting to insert data into a partitioned table that used the
BLACKHOLEstorage engine caused mysqld to crash. (Bug#14524)A
FULLTEXTquery in a prepared statement could result in unexpected behavior. (Bug#14496)With a table partitioned by
LIST, inserting a value which was smaller than any value shown in the partitioning value-lists could cause the server to crash. (Bug#14365)The
DATA DIRECTORYandINDEX DIRECTORYclauses of aCREATE TABLEstatement involving partitions did not work. (Bug#14354)SHOW CREATE TABLEdid not display thePARTITIONSclause for tables partitioned byHASHorKEY. (Bug#14327)ALTER TABLE ... DROP PARTITIONwould truncate allDATEcolumn values in the table's remaining partitions toNULL. (Bug#13644)ALTER TABLE ... ADD PARTITIONcould crash the server or cause an Out of memory error in some circumstances. (Bug#13447)The server would allow foreign keys to be declared in the definition of a partitioned table despite the fact that partitioned tables do not support foreign keys (see Section 17.5, “Restrictions and Limitations on Partitioning”). (Bug#13446)
A
SELECTfrom a key-partitioned table with a multi-column key could cause the server to crash. (Bug#13445)Issuing a
TRUNCATEstatement twice in succession on the same partitioned table would cause the server to crash. (Bug#13442)Using a
REPLACEstatement on a partitioned table caused the server to crash. (Bug#13440)Using an identifier rather than a literal integer value in the
LESS THANclause of a range-partitioned table could cause the server to crash and corruption of tables. (Bug#13439)Using
ENGINE=...within aPARTITIONclause could cause the server to crash. (Bug#13438)CREATE TABLE ... LIKEdid not work if the table whose schema was to be copied was a partitoned table. (Bug#13435)Multi-byte path names for
LOAD DATAandSELECT ... INTO OUTFILEcaused errors. Added thecharacter_set_filesystemsystem variable, which controls the interpretation of string literals that refer to file names. (Bug#12448)Temporary table aliasing did not work inside stored functions. (Bug#12198)
Using the
TRUNCATE()function with a negative number for the second argument on aBIGINTcolumn returned incorrect results. (Bug#8461)Certain Japanese table names were not properly saved during a
CREATE TABLEstatement. (Bug#3906)
Functionality added or changed:
Replication: Added the
binlog_formatsystem variable that controls whether to use row-based or statement-based binary logging. Added the--binlog-formatand--binlog-row-event-max-sizeserver options for binary logging control. See Section 16.1.2, “Replication Formats”.Added the
--port-open-timeoutoption to mysqld to control how many seconds the server should wait for the TCP/IP port to become free if it cannot be opened. (Bug#15591)A new statement,
BINLOG, is generated by mysqlbinlog to represent row-based events in binary log files. The statement argument, a base 64-encoded string, is decoded by the server to determine the data change indicated by the corresponding event.Added the
--create-schema,--lock-directory,--number-of-queries,--only-print,--preserve-schema, and--slaveoptions for mysqlslap.If
innodb_locks_unsafe_for_binlogis enabled or if the transaction isolation mode isREAD COMMITTED,InnoDBcan use “semi-consistent” reads. This affects treatment byUPDATEstatements for rows that are already locked by another transaction. If a row is locked,InnoDBreturns the latest committed version to MySQL so that MySQL can determine whether the row matches theWHEREcondition of theUPDATE. If the row matches (must be updated), MySQL reads the row again and this timeInnoDBeither locks it or waits for a lock on it.See also Bug#3300.
Added the
--base64-outputoption to mysqlbinlog to print all binary log entries using base64 encoding. This is for debugging only. Logs produced using this option should not be applied on production systems.Added the
INFORMATION_SCHEMA PLUGINStable and theSHOW PLUGINstatement.Two new Hungarian collations are included:
utf8_hungarian_cianducs2_hungarian_ci. These support the correct sort order for Hungarian vowels. However, they do not support the correct order for sorting Hungarian consonant contractions; we expect to fix this issue in a future release.Plugins now can have status variables that are displayed in the output from
SHOW STATUS. See Section 21.2.3, “Writing Plugins”.Added the
INFORMATION_SCHEMA ENGINEStable.Added the XML functions
ExtractValue()andUpdateXML().ExtractValue()returns the content of a fragment of XML matching a given XPath expression.UpdateXML()replaces the element selected from a fragment of XML by an XPath expression supplied by the user with a second XML fragment (also user-supplied), and returns the modified XML. See Section 11.10, “XML Functions”.
Bugs fixed:
INSERT DELAYEDcaused mysqld to crash. (Bug#16095)The
--plugin_diroption was not working. Specifying the parser name for fulltext also did not work correctly. (Bug#16068)Attempting to insert into a table partitioned by
LISTa value less than any specified in one of the table's partition definitions resulted in a server crash. In such cases, mysqld now returns ERROR 1500 (HY000): Table has no partition for valuev, wherevis the out-of-range value. (Bug#15819)Issuing a
DROP USERcommand could cause some users to encounter aerror. (Bug#15775)hostnameis not allowed to connect to this MySQL serverThe output of mysqldump --triggers did not contain the
DEFINERclause in dumped trigger definitions. (Bug#15110)The output of
SHOW TRIGGERScontained extraneous whitespace. (Bug#15103)Creating a trigger caused a server crash if the table or trigger database was not known because no default database had been selected. (Bug#14863)
InnoDB: Comparison of indexedVARCHAR CHARACTER SET ucs2 COLLATE ucs2_bincolumns usingLIKEcould fail. (Bug#14583)A
COMMITstatement followed by aALTER TABLEstatement on a BDB table caused server crash. (Bug#14212)An
INSERT ... SELECTstatement between tables in aMERGEset can return errors when statement involves insert into child table from merge table or vice-versa. (Bug#5390)InnoDB: A semi-consistent read for anUPDATEstatement with no index column in theWHEREcondition locked all the rows in the table. (Bug#3300)
Functionality added or changed:
Added the
--server-idoption to mysqlbinlog to enable only those events created by the server having the given server ID to be extracted. (Bug#15485)It is now possible to build the server such that
MyISAMtables can support up to 128 keys rather than the standard 64. This can be done by configuring the build using the option--with-max-indexes=, whereNN≤128 is the maximum number of indexes to permit per table. (Bug#10932)Added the
myisam_use_mmapsystem variable.Added the
--bdb-data-directand--bdb-log-directserver options.Added the mysqlslap program, which is designed to emulate client load for a MySQL server and report the timing of each stage. It works as if multiple clients are accessing the server.
The bundled
BDBlibrary was upgraded to version 4.4.16.Added the
cp1250_polish_cicollation for thecp1250character set.
Bugs fixed:
MySQL Cluster: The
--ndboption for perror did not function. (Bug#15486)MySQL Cluster: Using
ORDER BYwhen selecting from a table having the primary key on aprimary_key_columnVARCHARcolumn caused a forced shutdown of the cluster. (Bug#15240, Bug#15682, Bug#14828, Bug#15517)Server could not be built on default Debian systems with BDB enabled. (Bug#15734)
SHOW ENGINESoutput showed theFEDERATEDengine asDISABLEDeven for builds withFEDERATEDsupport. (Bug#15559)BDB: ADELETE,INSERT, orUPDATEof aBDBtable could cause the server to crash where the query contained a subquery using an index read. (Bug#15536)It was not possible to reorganize a partition reusing a discarded partition name.
Now, for example, you can create a table such as this one:
CREATE TABLE t1 (a INT) PARTITION BY RANGE (a) ( PARTITION p0 VALUES LESS THAN (10), PARTITION p1 VALUES LESS THAN (20), PARTITION p2 VALUES LESS THAN MAXVALUE );and then repartition it as shown here:
ALTER TABLE t1 REORGANIZE PARTITION p2 INTO ( PARTITION p2 VALUES LESS THAN (30) );Previously, attempting to do so would produce the error All partitions must have unique names in the table . (Bug#15521)
The
BLACKHOLEstorage engine did not handle transactions properly: Rolled-back transactions were written to the binary log. Now they ae not. (Bug#15406)A left join on a column that having a
NULLvalue could cause the server to crash. (Bug#15268)Selecting from a view processed with the temptable algorithm caused a server crash if the query cache was enabled. (Bug#15119)
Creating a view that referenced a stored function that selected from a view caused a crash upon selection from the view. (Bug#15096)
Multiple-table update operations were counting updates and not updated rows. As a result, if a row had several updates it was counted several times for the “rows matched” value but updated only once. (Bug#15028)
ROW_COUNT()returned an incorrect result afterEXECUTEof a prepared statement. (Bug#14956)ANALYZE TABLEdid not properly update table statistics for aMyISAMtable with aFULLTEXTindex containing stopwords, so a subsequentANALYZE TABLEwould not recognize the table as having already been analyzed. (Bug#14902)Creating a view within a stored procedure could result in an out of memory error or a server crash. (Bug#14885)
SELECTqueries that began with an opening parenthesis were not being placed in the query cache. (Bug#14652)Space truncation was being ignored when inserting into
BINARYorVARBINARYcolumns. Now space truncation results in a warning, or an error in strict mode. (Bug#14299)The maximum value of
MAX_ROWSwas handled incorrectly on 64-bit systems. (Bug#14155)For binary string data types, mysqldump --hex-blob produced an illegal output value of
0xrather than''. (Bug#13318)Some comparisons for the
IN()operator were inconsistent with equivalent comparisons for the=operator. (Bug#12612)Attempts to assign
NULLto aNOT NULLcolumn in strict mode now result in a message ofColumn ', rather thancol_name' cannot be nullColumn set to default value; NULL supplied to NOT NULL column '. (Bug#11491)col_name' at rownSHOW CREATE DATABASEwas sometimes refused when the client had privileges for the database. (Bug#9785)Invalid casts to
DATEvalues now result in a message ofIncorrect datetime value, rather thanTruncated incorrect datetime value. (Bug#8294)mysql ignored the
MYSQL_TCP_PORTenvironment variable. (Bug#5792)
Functionality added or changed:
Plugin API: Incompatible Change: MySQL 5.1 adds support for a very flexible plugin API that enables loading and unloading of various components at runtime, without restarting the server. Although the work on this is not finished yet, plugin full-text parsers are a first step in this direction. This allows users to implement their own input filter on the indexed text, enabling full-text search capability on arbitrary data such as PDF files or other document formats. A pre-parser full-text plugin performs the actual parsing and extraction of the text and hands it over to the built-in MySQL full-text search. (Author: Sergey Vojtovich)
The plugin API requires the
mysql.plugintable. When upgrading from an older version of MySQL, you should run the mysql_fix_privilege_tables command to create this table. See Section 4.4.4, “mysql_fix_privilege_tables — Upgrade MySQL System Tables”.Plugins are installed in the directory named by the
plugin_dirsystem variable. This variable also controls the location from which the server loads user-defined functions (UDFs), which is a change from earlier versions of MySQL. That is, all UDF library files now must be installed in the plugin directory. When upgrading from an older version of MySQL, you must migrate your UDF files to the plugin directory.Incompatible Change: Renamed the
table_cachesystem variable totable_open_cache. Any scripts that refer totable_cacheshould be updated to use the new name.MySQL Cluster:
VARCHARcolumns used in MySQL Cluster tables are now variable-sized; that is, they now only allocate as much space as required to store the data. Previously, aVARCHAR(column allocated n+2 bytes (aligned to 4 bytes), regardless of whether the actual inserted value required that much space. (In other words, an)VARCHARcolumn always required the same, fixed, amount of storage as aCHARcolumn of the same size.)Partitioning: allows distributing portions of individual tables across a file system, according to rules which can be set when the table is created. In effect, different portions of a table are stored as separate tables in different locations, but from the user point of view, the partitioned table is still a single table. See Chapter 17, Partitioning, for further information on this functionality. (Author: Mikael Ronström)
RAND()no longer allows nonconstant initializers. (Prior to MySQL 5.1.3, the effect of nonconstant initializers is undefined.) (Bug#6172)Added the
table_definition_cachesystem variable. If you use a large number of tables, you can create a large table definition cache to speed up opening of tables. The table definition cache takes less space and does not use file descriptors, unlike the normal table cache.SETsets an option to the specified value and writes it to the config file See Section 4.6.10, “mysqlmanager — The MySQL Instance Manager”, for more details on these new commands. (Author: Petr Chardin)instance_name.option_name=option_valueSHOWprovides a listing of all log files used by the instance. (Author: Petr Chardin)instance_nameLOG FILESAdded the
SHOW AUTHORSstatement.Fast
ALTER TABLE: Operations that change only table metadata and not table data do not require a temporary table to be used, which improves performance. For example, renaming a column changes only the.frmfile and no longer uses a temporary table.The Instance Manager (IM) now has some additional functionality:
SHOWprovides a listing of all log files used by the instance. (Author: Petr Chardin)instance_nameLOG FILESSHOWretrieves a part of the specified log file. (Author: Petr Chardin)instance_nameLOG {ERROR | SLOW | GENERAL}sizeSETsets an option to the specified value and writes it to the config file See Section 4.6.10, “mysqlmanager — The MySQL Instance Manager”, for more details on these new commands. (Author: Petr Chardin)instance_name.option_name=option_value
SHOWretrieves a part of the specified log file. (Author: Petr Chardin)instance_nameLOG {ERROR | SLOW | GENERAL}sizeAdded the
SHOW FUNCTION CODEandSHOW PROCEDURE CODEstatements (available only for servers that have been built with debugging support). See Section 12.5.5.29, “SHOW PROCEDURE CODESyntax”.The performance of boolean full-text searches (using the “+” Operator) has been improved. See Section 11.8, “Full-Text Search Functions”, for more details about full-text searching. (Author: Sergey Vojtovich)
Bugs fixed:
RESET MASTERfailed to delete log files on Windows. One consequence of this change is that server opens the general query and slow log files in shared mode, so now they can be renamed while the server has them open (something not true in previous versions). (Bug#13377)Set functions could not be aggregated in outer subqueries. (Bug#12762)
Functionality added or changed:
Added the
bdb_cache_partsandbdb_region_sizesystem variables, and allowedbdb_cache_sizeto be larger than 4GB on systems that support it. (Bug#14895)Added
MAXLOCKS,MINLOCKS,MAXWRITE, andMINWRITEas allowable values of the--bdb-lock-detectoption. (Bug#14876)Added
--replaceto mysqldump. This option usesREPLACE INTO, rather thanINSERT INTO, when writing the dumpfile.Added
Transactions,XA, andSavepointscolumns toSHOW ENGINESoutput.
Bugs fixed:
Foreign keys were not properly enforced in
TEMPORARYtables. Foreign keys now are disallowed inTEMPORARYtables. (Bug#12084)
Bugs fixed:
Partitioning: MySQL Cluster: Specifying the wrong nodegroup in a
CREATE TABLEstatement using partitioning would lead to the table name being locked after the statement failed (that is, the table name could not be re-used). (Bug#12114)Using
ORDER BYin a query with a partitioned table on a 64-bit operating system could crash the server. (Bug#12116)Performing a
CREATE TABLEstatement with aPARTITION BYclause in a prepared statement could crash a server running in debug mode. (Bug#12097)When two threads competed for the same table, a deadlock could occur if one thread also had a lock on another table through
LOCK TABLESand the thread was attempting to remove the table in some manner while the other thread tried to place locks on both tables. (Bug#10600)
- C.3.1. Changes in MySQL Enterprise Monitor 2.0.6 (27th August 2009)
- C.3.2. Changes in MySQL Enterprise Monitor 2.0.5 (18th March 2009)
- C.3.3. Changes in MySQL Enterprise Monitor 2.0.4 (5th February 2009)
- C.3.4. Changes in MySQL Enterprise Monitor 2.0.3 (23rd January 2009)
- C.3.5. Changes in MySQL Enterprise Monitor 2.0.2 (14th January 2009)
- C.3.6. Changes in MySQL Enterprise Monitor 2.0.1 (15th December 2008)
- C.3.7. Changes in MySQL Enterprise Monitor 2.0.0 (11th December 2008)
This appendix lists the changes to the MySQL Enterprise Monitor, beginning with the most recent release. Each release section covers added or changed functionality, bug fixes, and known issues, if applicable. All bug fixes are referenced by bug number and include a link to the bug database. Bugs are listed in order of resolution. To find a bug quickly, search by bug number.
This section documents all changes and bug fixes that have been applied since the release of MySQL Enterprise Monitor, version 2.0.5.
Functionality added or changed:
Events used a GMT timestamp for the event time within email notifications, rather than the local time for the server generating the event.
MySQL Enterprise Monitor has been changed so that it displays the time using the server's locale and GMT. (Bug#43739)
Bugs fixed:
If a migration from 1.3 to 2.0 was initiated and a new server created during the migration, but then deleted before migration was finished, the new server delete operation failed with an Null Pointer Exception (NPE). (Bug#44991)
The Rule “InnoDB Buffer Cache Hit Rate Not Optimal” in the “Memory Usage” Advisor did not contain an uptime check. This resulted in premature firing of an info event. (Bug#44770)
In the Advisor “Administration” the Rule “InnoDB Redo Logs Not Sized Correctly” did not fire correctly. The rule contained the expression:
(%have_innodb% == "YES") && ((%innodb_log_file_size% * %innodb_log_files_in_group%) < LEAST(1073741824, (%innodb_buffer_pool_size% / 2)))
This was incorrect and needed to be changed to:
(%have_innodb% == "YES") && ((%innodb_log_file_size% * %innodb_log_files_in_group%) <= LEAST(1073741824, (%innodb_buffer_pool_size% / 2)))
The recommendation for the rule
Table Cache Not Optimalsays:Recommended Action SET GLOBAL table_cache = (64 + 16);
But an error was generated on executing that query:
mysql> SET GLOBAL table_cache = (64 + 16); ERROR 1193 (HY000): Unknown system variable 'table_cache' mysql> select version(); +------------+ | version() | +------------+ | 5.1.31-log | +------------+ 1 row in set (0.01 sec)
When running the shutdown script for Enterprise Dashboard, it took an unacceptably long time for Tomcat to terminate completely, the
javaprocess eventually had to be killed manually. (Bug#44327)The upgrade installer overwrote any custom settings stored in
WEB-INF/config.properties. For example it set the database host back tolocalhost. (Bug#44003)When updating an Agent from 2.0 to 2.1 the
mysql-monitor-agent.iniwas incorrectly updated.This happened if the Agent was configured to use SSL to connect to the Enterprise Dashboard, on a port other than 18443. The update installer caused any value specified for the port to be changed to 18443. This did not happen if the Agent was not using SSL. (Bug#43900)
An error was generated when an attempt was made to rename a Replication Group to one that had previously been deleted. (Bug#43846)
A new topology was not discovered after the previous replication group was renamed. (Bug#43815)
On Unix systems, executing the command:
./mysqlmonitorctl.sh stop
did not make sure that
mysqldwas shutdown before finishing.This resulted in a situation such as the following:
# /opt/mysql/enterprise/monitor-2.0.0.7092/mysqlmonitorctl.sh stop Using CATALINA_BASE: /opt/mysql/enterprise/monitor/apache-tomcat Using CATALINA_HOME: /opt/mysql/enterprise/monitor/apache-tomcat Using CATALINA_TMPDIR: /opt/mysql/enterprise/monitor/apache-tomcat/temp Using JRE_HOME: /opt/mysql/enterprise/monitor-2.0.0.7092/java Stopping tomcat service ... [ OK ] /opt/mysql/enterprise/monitor-2.0.0.7092/mysqlmonitorctl.sh : mysql stopped
However, running the following command a few minutes later showed that the MySQL server was still running:
# /opt/mysql/enterprise/monitor-2.0.0.7092/mysqlmonitorctl.sh status MySQL Network MySQL is running MySQL Network Tomcat is not running
The MySQL Enterprise Monitor upgrade installer incorrectly replaced the
AdvisorScript.jarin<instDir>/apache-tomcat/webapps/ROOT/WEB-INF/lib/with the default Advisor JAR. (Bug#43773)The agent created the
mysql.inventorytable with an engine type of InnoDB, instead of MyISAM, when InnoDB was specified as the default engine type inmy.cnf. This happened because the agent did not explicitly specify the table engine type to be of MyISAM. (Bug#43551)The MySQL Enterprise Monitor installer failed to install correctly due to insufficient disk space, even though the installer calculated there was suffcient disk space for the installation. This was due to the installer having out of date information regarding disk space requirements. (Bug#43538)
After removing enough servers to bring the host count back down to the number covered in the subscription, the Subscription Warnings reflected the new number. However, the warning message displayed:
You are currently monitoring 1 host, however your subscription covers only 1. Your subscription needs to be updated to cover at least 0 additional hosts.
Instead of displaying:
Your subscription is up-to-date You have no warnings at this time.
The former message resulted in confusion. (Bug#43163)
If a host was not a slave during the initial discovery phase, then it would not be displayed in the Replication tab if it subsequently became a slave.
This was because after the initial discovery phase, if a host did not have
slavestatuspresent, no subsequent checks were made to check for the host being a slave. It was therefore missed for the purposes of replication discovery and never showed in the Replication tab. (Bug#42997)The advisor “User Has Rights To Database That Does Not Exist” generated erroneous alerts.
If a database was created with an “_” character in the name, and then user privileges granted to this database using the escaped character sequence “\_” to prevent wildcards, then the advisor generates an error stating there is no database for the privilege.
For example, if the following is carried out on the monitored server:
CREATE DATABASE test_foo; GRANT SELECT ON `test\_foo`.* to testuser@'localhost' identified by 'test';
then the advisor warns that these users have rights to a database that does not exist:
''@'%' on DB test_%, 'test'@'localhost' on DB test_foo, 'testuser'@'localhost' on DB test_foo
The generic Linux IA64 glibc2.3 Agent installer was missing from the build. (Bug#41224)
The Enterprise Dashboard displayed a blank entry for Disk Space in the Meta Info area. This happened on Open Solaris 2008.05. This problem only occurred when using the ZFS file system. (Bug#40907)
The graphs for Thread Cache, Connections and Temporary Tables contained incorrect Japanese translations on their Y axis. The Japanese displayed “total connection time (min)” when it should have displayed something else. For example, the Thread Cache graph should have displayed “total/min”. (Bug#40413)
When the Agent was started as a service on Windows for the first time, the name in the Task Manager window was
MYSQL-~1.EXE. This occurred whether the Agent was started from within the installer or from the Start Menu.If the service was restarted, the Agent's name changed to the correct value,
mysql-service-agent.exe. (Bug#30166)
This section documents all changes and bug fixes that have been applied since the release of MySQL Enterprise Monitor, version 2.0.4.
Bugs fixed:
The FreeBSD 7 Agent was inadvertently a Linux binary.
shell> file mysqlmonitoragent-2.0.5.7153-freebsd7-x86-32bit-installer.bin mysqlmonitoragent-2.0.5.7153-freebsd7-x86-32bit-installer.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
Calling the Agent with the option
--agent-run-os-testsresulted in a crash. This happened on Linux x86-64 systems. The resultant stack trace was:(qa-merlin) 2009-03-04 16:39:42: (critical) chassis.c:1097: could not raise RLIMIT_NOFILE to 8192, Invalid argument (22). Current limit still 1024. sigar-test-all.c.124 (test_sigar_pid_get): pid = 5188 sigar-test-all.c.106 (test_sigar_mem_get): ...cut... sigar-test-all.c.427 (test_sigar_file_system_list_get): (items = 13) [0] fs.dirname = / fs.devname = /dev/mapper/vg00-root fs.typename = local fs.sys-type-name = ext3 fs.type = 2 fsusage.total = 15481840 fsusage.free = 14116140 fsusage.used = 1365700 fsusage.avail = 13329708 fsusage.files = 1966080 fsusage.use_percent = 0.100000 [0] diskusage.reads = 315302 diskusage.writes = 6318240 diskusage.write_bytes = 25879511040 diskusage.read_bytes = 6561092608 diskusage.queue = 47457530080206 Segmentation fault
On some systems no output was shown, other than the message “Segmentation fault”. (Bug#43381)
Following a change in the replication configuration, MySQL Enterprise Monitor did not display the new topology correctly. (Bug#43240)
When a data collection became invalid, the agent sent NULLs for those collection values. However, the timestamps that it sent with the values were the timestamps from the last valid value that was collected.
Due to key constraints on the Service Manager side, MySQL Enterprise Monitor disregarded anything sent with duplicate timestamps, thus the NULLs received from the agent were never processed. Some mechanisms, such as replication discovery, depend on the NULLs to identify a situation where data has become invalid. (Bug#43239)
MySQL Enterprise Monitor did not add a log entry each time data was purged. The log entry should have noted how many rows of each type of data were purged (historical data, logs, quan data). (Bug#43159)
MySQL Enterprise Monitor generated a stack overflow. This was as a result of a bug in Hibernate, which caused Hibernate to enter infinite recursion while trying to load a relationship. (Bug#43107)
The “Table Cache Set Too Low For Startup” and “Table Cache Not Optimal” rules were not supported on MySQL 5.1 because the
table_cachesystem variable was deprecated and replaced withtable_open_cache. (Bug#42663)Migrated server was not completely deleted.
In a Monitor that had been updated from 1.3.2 to 2.0.4, with 2 database servers queued for migration, if a server being migrated was deleted, or a migrated server was deleted, this would not be reflected in the user interface or in the license count, until Tomcat was restarted. (Bug#42604)
The installer used to upgrade from version 1.3 corrupted passwords containing the “?” character. (Bug#42452)
The replication status of a server was displayed as “unknown”. However, the agent logged no errors and the server showed no other event problems. The server status was displayed as “up” and the database connection was also displayed as “up”. (Bug#42407)
Sun multi-core processors caused all cores to be reported on the meta information page.
The larger T-series SPARC processors have 32+ cores. This caused the meta information page in the Dashboard to scroll as it reported each one. (Bug#42355)
If an attempt was made to disable a rule using the link next to the rule, the following error message was generated:
U0002 You must log in to access the requested resource. Go to login page.
However, clicking on the link did not prompt the user to login again. (Bug#42313)
Changing
ssh-agentfrom OpenSSH or specifying a malevolent value ofagent-host-id, could inject data into the monitored MySQL Server.For example, setting
agent-host-idto the value “I'm a test” would result in the following message in the error log:2009-01-23 15:45:11: ((error)) agent_mysqld.c:281: mysql_real_query('INSERT INTO mysql.inventory (name, value) VALUES ( 'hostid', 'I'm a test' )') on 'mysql' failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm a test' )' at line 1 (mysql-errno = 1064)When
SHOW GLOBAL STATUSreturned a value greater than 214748364, it was sent to the Service Manager as 214748364. (Bug#42245)The Agent failed to identify local sockets as local on Mac OS X 10.4.
If the Agent was configured to use a Unix domain socket on Mac OS X 10.4, it did not treat the connection as local and failed to provide CPU and memory information to MySQL Enterprise Monitor. This is shown in the log file:
2009-01-20 18:15:02: (message) network-socket.c:752: is-local family 0 != 1 2009-01-20 18:15:02: (message) agent_mysqld.c:322: [mysql] mysqld is not local or not directly connected
However, this problem did not happen on Mac OS X 10.5. (Bug#42220)
Some graphs on the Graph tab were not updated after the page was refreshed, or was clicked.
The only way to get an updated graph was to change the graph size (in pixels) and then click . (Bug#42162)
The
my.cnffile for the Enterprise Monitor internal database had the following configuration item:innodb_autoextend_increment = 50M
This generated the error:
16:36:23 [Warning] option 'innodb_autoextend_increment': unsigned value 52428800 adjusted to 1000
This variable is interpreted as being specified in MB, so 50M would be 50 TB. Such a high value results in the variable being adjusted to 1000 MB.
The value in the configuration file should be:
innodb_autoextend_increment = 50
A number of Advisor rules had advice text that had not been translated into Japanese. The Advisors that contained untranslated rules included Performance, Schema and Security. (Bug#42067)
The Service Manager did not handle the case where the agent failed to supply a valid
master_ip. The Service Manager would then not restart. The logs contained the following:2009-01-09 14:39:50,472 ERROR [main:org.springframework.web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serverConnectionMonitor' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Unsatisfied dependency expressed through constructor argument with index 2 of type [com.mysql.etools.monitor.bo.Manager]: Error creating bean with name 'manager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is com.mysql.etools.monitor.pom.UnsupportedAttributeException: 101c6b5b-15eb-49aa-916c-843c51b28d38: mysql.slavestatus.Master_ip
Having too many users with strong privileges generated Service Manager errors and events failed to be triggered.
If there were approximately 1000 users with full privileges and the value of
group_concat_max_lenwas set to 100001, the size of the data that the agent sent to the Service Manager was too large and caused Service Manager errors. Also, the Security event “Account has Strong MySQL privileges” did not trigger. (Bug#41987)Query Analyzer's Query Type filter for
SELECTignored statements starting with parenthesis.If you sent a statement through Query Analyzer starting with parenthesis, such as:
(SELECT 1 FROM dual);
and then attempted to filter for
SELECTqueries only, queries starting with parenthesis were not displayed. (Bug#41968)The agent angel process was spawning too soon, which caused a duplicate UUID error.
g_error()logged a fatal error, and calledabort(). This terminated the program. Then the angel respawned with the same UUID, but with a -1 session resync request, which the MEM server denied because the old session was still active. This resulted in a permissions denied error (1142) on themysql.inventory table.2008-12-17 18:58:58: (message) agent_mysqld.c:313: [mysql] mysqld is local and directly connected 2008-12-17 18:58:58: ((error)) agent_mysqld.c:444: [mysql] mysql_real_query("SELECT value FROM mysql.inventory WHERE name = 'uuid'") failed: SELECT command denied to user 'ent_agent'@'127.0.0.1' for table 'inventory' (errno=1142) 2008-12-17 18:58:58: (debug) chassis.c:282: 15134 returned: 15134 2008-12-17 18:58:58: (message) chassis.c:304: [angel] PID=15134 died on signal=6 (it used 0 kBytes max) ... waiting 3min before restart 2008-12-17 18:59:00: (debug) chassis.c:244: we are the child: 15149 2008-12-17 18:59:00: (message) chassis.c:259: [angel] we try to keep PID=15149 alive 2008-12-17 18:59:00: (debug) chassis.c:277: waiting for 15149 2008-12-17 18:59:00: (message) mysql-proxy 0.7.0 started 2008-12-17 18:59:00: (message) MySQL Monitor Agent 2.0.0.7111 started.master_uuiddiscovery did not work with MySQL Server versions prior to 5.1.master_uuiddid not show in any Agent to Monitor communications, and no log or error messages were generated.However, now the bug has been fixed, an Agent monitoring a 5.0 MySQL Server would register the following in its logs:
... <classname>slavestatus</classname> <instance>12515cdc-8c00-4223-9d2a-2666a403512c</instance> <attribute>Master_uuid</attribute> </target> <utc>2009-03-03T19:58:05.700Z</utc> <value>b2fd9f86-6e42-49f2-b930-e8fb3e728179</value>
Note the presence of
master_uuid. (Bug#41525)The
master_uuidwas not used for replication topology discovery.The agent collected
master_uuidby reading themaster.infofile, and then running aSELECTdirectly against its master. This was to try and read themysql.inventorytable on the master to obtain the instancemaster_uuid.However, this was not being used correctly by the replication topology discovery within the server. (Bug#41519)
Queries such as
SELECTagainst the mastermysql.inventorywas not logged on slave-based agents. This made diagnosing topology discovery issues difficult. (Bug#41518)After an error was generated due to an incorrect password while trying to create a new user, the following error was obtained when subsequently attempting to create a valid new user:
U0002 You must log in to access the requested resource
Agent startup failed on Solaris 10. The error generated was:
# ./mysql-monitor-agent start Bad string ERROR! /opt/mysql/enterprise/agent/etc/mysql-monitor-agent.ini has to have a [mysql-proxy].pid-file setting
This was caused by unexpected behavior of the tr command. (Bug#41260)
On the Query Analysis page, if a query was clicked the minimum displayed was greater than the average. (Bug#41259)
In some circumstances the agent/proxy ran out of file descriptors, causing secondary failures. It could not recover from that state. The relevant part of the log file is shown here:
2008-11-27 11:11:00: (critical) last message repeated 2 times 2008-11-27 11:11:00: (critical) job_collect_os.c:411: sigar_cpu_info_list_get() failed 2008-11-27 11:11:00: (critical) job_collect_os.c:445: sigar_cpu_list_get() failed 2008-11-27 11:11:00: (critical) job_collect_os.c:411: sigar_cpu_info_list_get() failed 2008-11-27 11:11:00: (critical) job_collect_os.c:445: sigar_cpu_list_get() failed 2008-11-27 11:11:00: (critical) job_collect_os.c:411: sigar_cpu_info_list_get() failed 2008-11-27 11:11:00: (critical) job_collect_os.c:445: sigar_cpu_list_get() failed 2008-11-27 11:11:00: (critical) job_collect_os.c:411: sigar_cpu_info_list_get() failed 2008-11-27 11:11:00: (critical) job_collect_os.c:445: sigar_cpu_list_get() failed 2008-11-27 11:11:30: (critical) network-socket.c.292: socket(127.0.0.1:3306) failed: Too many open files (24) 2008-11-27 11:11:30: (critical) proxy-plugin.c.1532: Cannot connect, all backends are down. 2008-11-27 11:20:22: (critical) last message repeated 4 times 2008-11-27 11:20:22: (critical) network-io.c:215: curl_easy_perform('https://user:password@merlin-dashboard:443/heartbeat') failed: SSL connection timeout (curl-error = 'Timeout was reached' (28), os-error = 'Connection refused' (111))If an installation of Service Manager 2.0.0.7102 included a
backupdirectory, due to a previous upgrade, and was upgraded using at least Service Manager 2.0.0.7103, then the installer displayed an error message and exited.The error message displayed was:
There has been an error. Error renaming /Applications/mysql/enterprise/monitor/apache-tomcat to /Applications/mysql/enterprise/monitor/backup/apache-tomcat The application will exit now
The Agent started without problems and connected to the master. But it was unable to perform a
SELECTfrom the tablemysql.inventoryin order to obtain server information. (Bug#40933)Canonical Query Text for
Select -1was displayed asSELECT -?instead ofSELECT ?on the Query Analyzer tab. (Bug#40435)The agent installer for Solaris 8 x86 32-bit was missing. (Bug#40248)
The MySQL Enterprise Monitor Dashboard did not display the subscribed notification group(s) on the Advisor Current Scheduled and Add to Schedule pages. (Bug#36007)
The startup scripts supplied with MySQL Network Monitoring and Advisory tool did not supply all of the LSB
init.dscript options required. A list of the required options can be found at the following website http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.htmlThe required options missing include
statusandforce-reload. The optionstatusis used by monitoring tools and cluster software such as Red Hat Cluster, to ensure that the service is still running. Theforce-reloadoption is an alias for restart. (Bug#29848)Multiple errors showed in the agent log after issuing a
SHOW INNODB STATUSstatement. TheInnoDB Buffer Poolgraph also went blank. (Bug#27372)
This section documents all changes and bug fixes that have been applied since the release of MySQL Enterprise Monitor, version 2.0.3.
Bugs fixed:
The Monitor Agent did not log connections to, and disconnects from, the monitored database.
This meant it was not possible to check if the Agent was connected to the database by simply looking at the log file. (Bug#42403)
The Monitor Agent failed to create the
mysql.inventorytable. The logs displayed the following error message:(critical) (share/mysql-proxy/quan.lua:711) [proxy] please add SELECT permissions for this user on mysql.inventory to enable the QUAN feature, got Table 'mysql.inventory' doesn't exist
This happened even though the Monitor Agent used the
rootaccount. (Bug#42389)After installing Monitor Agent 2.0.4.7138 and then starting it with
--version, the incorrect version was displayed. Although 2.0.4.7138 was installed, the Monitor Agent displayed the version number as 2.0.2.7138. (Bug#42263)An invalid path was shown in the error message if the upgrade installer failed to find the previous install location.
The error message is shown below, note that the error message displays a different path to that provided by the user:
Please specify the directory that contains the previous installation of the MySQL Enterprise Monitor Agent Installation directory [/home/mysql/mysql/enterprise/agent]: /var/lib/mysql/agent Warning: The directory /home/mysql/mysql/enterprise/agent does not contain a a previous installation. Please select the right installation directory. Press [Enter] to continue : ---------------------------------------------------------------------------- Please specify the directory that contains the previous installation of the MySQL Enterprise Monitor Agent
The agent password error in the Service Manager did not log the originating host, making it impossible to determine the agent that failed to log in:
ErrorJan 5, 2009 4:56:08 PM<?xml version='1.0'?><exceptions><error><![CDATA[E1702: IncorrectPasswordException: [agent]]]></error></exceptions>
The Service Manager's JDBC connections did not have
sql_modeset to includeNO_ENGINE_SUBSTITUTION. This resulted in the failure of Data Definition Language (DDL) if the Service Manager was inadvertently pointed to an incorrectmysqldinstance. (Bug#42137)A number of Advisor rules had advice text that had not been translated into Japanese. The Advisors that contained untranslated rules included Performance, Schema and Security. (Bug#42067)
Monitor Agent configuration files had global read privileges on the filesystem. (Bug#41794)
When the log files rotated to the maximum allowed by the
log4jconfiguration, the metadata contained in theFileAppenderbecame out of synchronization due to a logic bug. This caused an assertion error on any subsequent request for the logs tab or data. (Bug#41593)SNMP trap messages were sending 127.0.0.1 as the IP address, and there was no feature to allow the user to configure the IP address contained in the SNMP message, which would have been useful for troubleshooting. (Bug#41361)
On all available test systems, including SUSE Linux Enterprise Server (SLES) 9 and 10 x86-32, x86-64, IA64, and Ubuntu 6.10 x86-64, the agent memory grew incrementally within ~3 hours to ~25M.
The agents then switched to the 'red' condition on the dashboard and no more data was reported. The agent processes were still alive.
This was also present in MySQL Enterprise Monitor version 2.0.0.7111 on Suse 7.3, with the glibc2.2 x86 agent.
There was no load on the monitored servers, and the problem also occurred when the “self-quan” was not configured. (Bug#41244)
Although the Monitor tab loaded initially, after a 64-bit MySQL server running a 32-bit MySQL Monitor Agent was clicked, a Null Pointer Exception was generated. (Bug#41164)
The Monitor Agent startup configuration did not seem to work and did not generate a log file. (Bug#40583)
An error generated by a rule failed to clear.
When a rule was created with the
os:disk:fs_useddata item, if the instance was not a valid mount point then the Monitor Agent reported the error:2008-08-11 17:57:00: (critical) disk-get failed for all: 2
Note the above instance was for “all”, and similar results occurred for instance “disk”.
The issue was that upon editing the rule, or even deleting the rule, the agent still showed the above error type. Restarting the agent and the monitoring service failed to remove the error. (Bug#38709)
If the “On Save send test trap” checkbox was checked when the button was clicked and the locale was set to Japanese, an error occurred. The orange error banner was displayed at the top of the page with the error message in Japanese. (Bug#32069)
This section documents all changes and bug fixes that have been applied since the release of MySQL Enterprise Monitor, version 2.0.2.
Bugs fixed:
The Monitor Agent failed to connect to the server, and no error message was displayed in the log file.
However, when the log verbosity level was set to
message, the following message was recorded:2009-01-12 13:34:43: (warning) agent_mysqld.c:600: agent connecting to mysql-server failed: mysql_real_connect(host = '127.0.0.1', port = 3306, socket = ''): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 (mysql-errno = 2013)
There was a mismatch between the contents of an SNMP Trap from MySQL Enterprise Monitor and the definition given in the file
MONITOR.MIB. (Bug#41912)If a copy was made of a standard rule, the resulting Wiki markup was incorrect, resulting in the display of user-interface text containing HTML markup. (Bug#41375)
Allowing the heat chart rules to be set to unscheduled caused the user interface to appear broken. (Bug#41312)
When a custom rule requiring disk information was created, for example:
[Expression] %disk_reads%> THRESHOLD [Thresholds] Critical Alert: 9000 Warning Alert: 3000 Info Alert: 1000 [Variable Assignment] variables: %disk_reads% Data Item: os:disk:disk_reads Instance: /
The following error was written to the file
mysql-service-agent.log:2007-09-05 17:11:00: (critical) disk-get failed for c0d0p1: 2
It therefore appeared that the Monitor Agent was not able to obtain the required information. (Bug#30820)
This section documents all changes and bug fixes that have been applied since the release of MySQL Enterprise Monitor, version 2.0.1.
Bugs fixed:
The button was missing from the Setup page you were taken to after the current subscription expired. (Bug#41685)
If the
host-idof the monitored instance and thehost-idof the current agent did not match, the agent generated the following error message:Please TRUNCATE TABLE mysql.inventory on this mysql-instance and restart the agent.
However, it did not suggest using
sql_log_bin = 0. This is used for all other actions against this table so that they are not replicated to slaves, each of which has their own copy of this table. (Bug#41673)The Agent did not start up when the monitored server had many databases and tables, and was under heavy load. This was because the
trigger_schemaquery was taking too long on agent start up. (Bug#41555)The Monitor Agent failed to install on Solaris 10 x86. The following error was generated:
Installing 0% ______________ 50% ______________ 100% ######################################## Warning: Problem running post-install step. Installation may not complete correctly Error running /usr/local/mysqlagent/bin/mysql-monitor-agent --defaults-file=/usr/local/mysqlagent/etc/mysql-monitor-agent.ini --plugins=agent --agent-generate-uuid=true : 2008-12-12 13:06:02: (critical) Conversion from character set '646' to 'UTF-8' is not supported 2008-12-12 13:06:02: (message) shutting down normally
The console/stdout appender remained in the log4j configuration, which meant that all the MySQL Enterprise Monitor server logs were duplicated to Catalina's stdout, and thus
catalina.out, which was wasteful, especially as that file was not rotated or managed. (Bug#41439)When creating new multiple user accounts, the first attempt worked fine. However, following attempts to create new users did not show the Query Analyzer Options in the Create User popup until the role field was changed. (Bug#41430)
When login privileges were required the Service Manager did not redirect the user to the login page. This resulted in error messages being displayed rather than simply redirecting the user to the login page. This problem typically occurred if it was necessary to restart Tomcat. (Bug#41320)
The monitor 2.0.0.7105 and 2.0.0.7122 Solaris Intel update installer quits unexpectedly. The installer exits from the GUI in the Backup of Previous Installation screen, when OpenSolaris is running on top of Sun xVM.
The console output for both installer versions is given below:
shell> ./mysqlmonitor-2.0.0.7105-solaris-intel-update-installer.bin X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 73 (X_GetImage) Serial number of failed request: 21161 Current serial number in output stream: 21161
shell> ./mysqlmonitor-2.0.0.7122-solaris-intel-update-installer.bin X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 73 (X_GetImage) Serial number of failed request: 21148 Current serial number in output stream: 21148
The Rename Group function failed if the new group name was different to the current one only in the case used; for example, if “Merlin” was changed to “MERLIN”.
The error generated was:
U0105 This group name is already in use. Enter a different name.
The Agent returned an inventory list of all databases and tables. This information was not used by MySQL Enterprise Monitor, other than to populate the
inv_databasesandinv_tablestables. For large-scale deployments, where there were many databases and tables, this resulted in redundant XML messages being sent from the Agent to the Service Manager. (Bug#33150)
This section documents all changes and bug fixes that have been applied since the release of MySQL Enterprise Monitor, version 2.0.0.
Bugs fixed:
This section documents all changes and bug fixes that have been applied since the release of MySQL Enterprise Monitor, version 1.3.3.
Functionality added or changed:
Important Change: The
server-nameconfiguration parameter is deprecated. For compatibility, during an upgrade, the information will be migrated to adisplaynameconfiguration parameter within the individual instance configuration files. This configuration parameter is provided only for compatibility, as display name information is now stored within the main repository. Support fordisplaynameis also deprecated and will be removed in a future release.Important Note: The rules “32-Bit Binary Running on 64-Bit AMD Or Intel System” and “Key Buffer Size Greater Than 4 GB” occasionally do not evaluate correctly due to timing issues. This causes them to be displayed with the Severity level of “Unknown”. This is a known issue and will be resolved in future versions of MySQL Enterprise Monitor.
Important Note: When you start the Merlin 2.0 agent from the command line on Windows, you get the following error dialog:
"mysql-proxy.exe - Entry Point Not Found" "The procedure entry point libiconv_set_relocation_prefix could not be located in the dynamic link library iconv.dll"
If you click the agent works fine after that.
This only occurs when starting the agent from the command line, and only when there is another version of one of the DLLs that the agent uses somewhere on the current path. This error can be avoided by opening a command prompt, typing
SET PATH=to clear the path, and then starting the agent.Important Note: If you are monitoring one instance of MySQL server (mysqld) and then upgrade that MySQL server, the correct version of the MySQL server is not displayed in the Dashboard. This is a known issue that will be fixed in future versions of MySQL Enterprise Monitor.
The following has been added to the Tomcat
config.propertiesproperties file:# max connections in the pool for the repository default.maxActive=70The dashboard could be used to change the agent password to one containing the
@character, or other special characters, which subsequently caused errors. To fix this problem, special characters in passwords are now prevented by the dashboard. The list of disallowed special characters can be found at the following location: http://en.wikipedia.org/wiki/Percent-encoding#Types_of_URI_characters (Bug#37172)The Query Analysis page was missing the Refresh dropdown control that the Monitor, Events, and Graphs pages had at the top. (Bug#36831)
The User Interface only returned error strings, without any associated error codes. This meant that if the error string was in a language that the user did not understand, it would be very difficult to determine which error actually occurred.
The User Interface now supports error codes, as well as error strings. This change allows easier testing of multiple locales. (Bug#32131)
The wording was changed on the fading popup subscription alert. The text “account” was changed to “subscription”. (Bug#31492)
The alert thresholds for the Query Cache Advisor were changed:
Information Warning Critical From 95 85 75 To 60 50 40 The agent log file name has changed from
mysql-service-agent.logtomysql-monitor-agent.log. The old log file will be retained during a upgrade install.
Bugs fixed:
Starting a new agent against an instance that contained many databases broke up the initial discovery packet, causing collections such as CPU usage and their graphs to fail. See also Bug#33150 and Bug#41314. (Bug#41933)
When altering an existing rule you had to add an empty string,
"", to any threshold level that was empty. Otherwise, the rule failed to run and the resulting exceptions caused the Events page to be unusable due to duplicate key exceptions. (Bug#41310)After installing the 2.0.0.7119 Dashboard the following error was generated in the logs:
com.opensymphony.xwork2.util.OgnlValueStack Warning Dec 5, 2008 10:41:26 AM Caught an Ognl exception while getting property titleAddition
The
dc_ng_long_nowtable became very large partly due to an unused columnbegin_time. (Bug#41093)Although there was a unique constraint on the user name, it was not enforced during first-time setup. This resulted in a stack trace being produced, rather than a more user-friendly error message, if the same name was used for the
adminandagentaccounts. (Bug#40870)MySQL Enterprise Monitor server had stopped sending up/down SNMP traps. (Bug#40861)
The Query Analyzer's Explain Query tab did not have pop up text or a link to the documentation regarding
SELECTqueries. (Bug#40841)When you tried to import a Trial-level advisor JAR using a Trial user account, one of the following error messages was generated:
U0009 The uploaded Advisor jar was invalid
U0161 Please import a Platinum level Advisor .jar to use with this Platinum level product key
Meta Info on the Dashboard did not display information for the meta data
os_description. (Bug#40830)Attempting to create an alias of statements such as
COMMIT,ROLLBACK,BEGIN, resulted in the error:Can't find template commitTnx.st; group hierarchy is [HTMLFormatting] org.antlr.stringtemplate.StringTemplateGroup.lookupTemplate(StringTemplateGroup.java:507)
Trying to upgrade from 2.0.0.7088 to 2.0.0.7092 failed as there was a missing file. When the update program
mysqlmonitor-2.0.0.7092-solaris-intel-update-installer.binwas run, the file/tmp/com/mysql/merlin/server/version.propscould not be found. (Bug#40692)On OS X with Java 1.5, Tomcat crashed on launch with the error:
Invalid memory access of location 00000007 eip=013df179
When the agent was installed using the command line installer and
--enableproxy 0was specified, the installer should have removedquan.luafrom theagent-item-filesoption in the INI file. (Bug#40551)The Agent could not connect to a database with the
hostnameset tolocalhost. Doing so resulted in the error:(critical) the MySQL server could not be reached at socket '(null)', we will check in 10 seconds
The update installer for the 2.0 Monitor did not have an Is SSL support required? checkbox. Therefore, the appropriate SSL connector definition was commented out in the
conf/server.xmlfile. (Bug#40414)The Service Manager installer did not uninstall or wipe out the previous installation if you answered “Yes” to the question:
“The directory you selected already contains a MySQL installation. If you continue installation all data will be lost. Do you wish to continue?” (Bug#40410)
If you unchecked the Enable Proxy checkbox on the Query Analysis Configuration screen, the agent's INI file still contained proxy configuration data and was not commented out. (Bug#40272)
As different queries were sent through the agent it used increasing amounts of memory. (Bug#40260)
The Service Manager installer set the Java Virtual Machine option
HeapDumpPathto<install_root>\tempon Windows and/tmpon other platforms. For consistency theHeapDumpPathdirectory should have been set to<install_root>\tmpon Windows. (Bug#40215)When using the command line agent setup program, a socket file was not accepted for the monitored instance. (Bug#40085)
The language option when installing the MySQL Enterprise Monitor in Japanese using the command-line instllaer has been changed from
jptoja. (Bug#40082)When monitoring MySQL 5.1.24 and above, the user used by the agent to connect to the MySQL server for monitoring must have the
PROCESSprivilege. (Bug#40050)The check box option string “Is SSL support required?”, on the Tomcat Server Option dialog of the Monitor installation, was not correctly translated into Japanese. (Bug#39814)
The base application directory for the MySQL Enterprise Dashboard has been updated from
http://localhost:18080/merlintohttp://localhost:18080/. (Bug#39403)If the Service Manager or the MySQL Server running the Repository crashed, they did not restart automatically. (Bug#39377)
If the agent crashed, there was no watchdog, angel or keep-alive mechanism to restart the agent and keep it running. (Bug#39374)
If the MySQL client libraries were located in a nonstandard location, the agent 2.0.0.7042 installer failed with a “library not found” error. (Bug#39317)
For the rule “Server-Enforced Data Integrity Checking Not Strict”, the Recommended Action did not display correctly. It displayed as
SET sql_mode=modes, rather thanSET [GLOBAL|SESSION] sql_mode=modes. (Bug#39261)A query that was issued through the proxy, and that had an auto-explain performed on that query, did not give the correct response to a subsequent query of
SELECT FOUND_ROWS(). (Bug#39223)It was not possible to establish a connection with the Dashboard using the SSL protocol (https://). (Bug#39198)
When a 1.3 MySQL Enterprise Monitor installation with many rules scheduled was upgraded to 2.0, the upgraded installation was then found to have only the heat chart rules scheduled. (Bug#39043)
The agent installer did not allow a second agent to be installed on Windows. (Bug#38976)
The Dashboard incorrectly diplayed that insufficient licenses were available, even though sufficient licenses had been purchased. (Bug#38514)
After running the MySQL Service Agent uninstall program, the file
/etc/init.d/mysql-service-agentremained present on the server. (Bug#38490)The notice fader continued to display English text after you changed the locale to Japanese. (Bug#38460)
The Subscription Expired pop-up window referred to the “Global Preferences” page, instead of the “Global Settings” page. (Bug#38358)
An inappropriate time zone was used to parse user-entered date and time strings. (Bug#38323)
A sigar network stats error was generated on the Solaris platform:
# /opt/mysql/enterprise/agent/bin/mysql-service-agent --version MySQL Service Agent - 1.2.0.7879, (glib lib=2.8.5, headers=2.8.5) SunOS mysqlprd01 5.10 Generic_127127-11 sun4v sparc SUNW,T5240 2008-07-21 10:07:24: (critical) sigar_net_interface_config_primary_get() failed: 6 2008-07-21 10:08:00: (critical) sigar_net_interface_config_primary_get() failed: 6 # /opt/mysql/enterprise/agent/bin/sigar-test-all >/tmp/test.txt sigar_net_interface_stat_get(e1000g0:2) failed#
After deleting a server from the Settings, Manage Servers tab, at the very bottom of the page the Monitoring x instances on x host values did not reflect the deletion. (Bug#38225)
The MySQL Enterprise Monitor alert “INFO Alert - Users Can View All Databases On MySQL Server (v 1.5 *)” from the Security advisor was incorrect. This is because the default server behavior allows users to see databases for which they have privileges, not “all databases on server” as suggested by the alert. (Bug#38052)
The “Maximum Connection Limit Nearing Or Reached” advisor did not generate a new Critical Alert event when there was an open info success event. (Bug#37816)
The Linux IA64 installer appeared to crash. The installer appeared to crash on RH4_IA64 if called with option "--version":
------------------------------------------------------------------------------- <INSTALLER> --version mysqlmonitorage(30704): unaligned access to 0x6000000000a8413c, ip=0x2000000003ddd5f0 mysqlmonitorage(30704): unaligned access to 0x6000000000a84144, ip=0x2000000003ddd5f1 mysqlmonitorage(30704): unaligned access to 0x6000000000a8414c, ip=0x2000000003ddd600 mysqlmonitorage(30704): unaligned access to 0x6000000000a84154, ip=0x2000000003ddd601 MySQL Enterprise Monitor Agent 0.7.0.1737 --- Built on 2008-06-25 19:31:53 -------------------------------------------------------------------------------
However, this warning is harmless and will not impact the operation of the agent. (Bug#37496)
If the log-level option in the agent configuration file was set to an unknown level by mistake, the
init.dscript appeared to enter an infinite loop. (Bug#37108)Malformatted server meta information appeared on the Dashboard; RAM and Disk Space appeared under the CPU category. (Bug#36740)
A “rename” link incorrectly appeared next to the Upgrade category on the Manage Rules page. (Bug#36584)
In the case where exceptions were passed through to the User Interface, the substituted arguments in the message contained developer-only information. (Bug#36580)
Agent Version, Last MySQL Contact, OS Info, CPU Info, and IP Addresses were all blank on the dashboard when the agent for the selected server was not functioning. (Bug#36301)
mysql-monitor-agent became confused by the
.DS_Storefiles that are created on Mac OS X. (Bug#36216)The rule “Key Buffer Size Greater Than 4 GB” incorrectly triggered the following alert:
CRITICAL Alert - Key Buffer Size Greater Than 4 GB
However, on non-Windows systems, a key buffer size greater than 4 GB is supported. (Bug#36143)
Since the repository database for MySQL Enterprise Monitor uses InnoDB there was no way to reduce the size of the data files after an old log/event data purge operation. Further, the purge data operation executed once per day, and had no option to trigger the purge operation manually. (Bug#35971)
On the Graphs page, if all graphs were expanded, then the Time Display interval updated, the page was refreshed with the button displayed, even though all the graphs were already expanded. (Bug#35917, Bug#35133)
The Meta Info area of the Monitor page incorrectly reported the operating system version number for the MySQL version. (Bug#35836)
The rule “XA Distributed Transaction Support Enabled For InnoDB” incorrectly sent a warning when the binary log was on. (Bug#35786)
On the Monitor page, the time displayed for
Last MySQL Contactlagged behind that forLast Agent Contactby a large amount. (Bug#35774)MySQL Enterprise Monitor did not update replication settings correctly. After a slave became the master, the Adviser still referred to it as a slave. (Bug#35771)
The Adviser email suggested using the
--log-queries-not-using-indexesoption. However, this option is not available in MySQL Server versions prior to 4.1. (Bug#35770)Thumbnail graphs did not update properly after a time zone change. (Bug#35756)
If a system had a global
wait_timeoutlower than the general activity of the agent, the agent was disconnected. The monitored server then logged an error and incrementedAborted_clients. (Bug#35648)Alerts fired after a blackout period based on data collections that happened during the blackout. (Bug#35617)
The translation of the button on the Rule Definition window was incorrect. (Bug#35495)
An uninstallation message asked about removing Apache files, even though Apache is no longer used. (Bug#35154)
After updating from a previous version to the latest 1.3 version, the Query Cache Has Sub-Optimal Hit Rate was still displayed in English after setting the locale to Japanese. Note, the rule was translated correctly if the full installer was used. (Bug#35134)
The MySQL Enterprise Monitor uninstall dialog box had missing text when using the Japanese locale. (Bug#34982)
Running the installer with the
--helpoption caused an incorrect message to be displayed. (Bug#34200)When using the unattended
unInstallscript on Linux together with the option--env deleteUserData=yesthe correct warning text was displayed. However, this text should not be displayed in unattended mode. Further, the option--env deleteUserData=yeswas not displayed by the--helpoutput. (Bug#34071)Platinum Unlimited customers sometimes received a warning stating incorrectly that their subscription supported zero hosts. (Bug#34010)
Clicking on the resolution notes link for a closed event on the events tab showed incorrect behavior. The popup initially showed the resolution notes, but when the resolution tab was clicked the notes disappeared and were replaced by an edit box. (Bug#33935)
The status on the product information page was not translated when the user locale was set to Japanese. (Bug#32785)
When the locale was set to Japanese, the date picker still had English month titles. (Bug#32741)
Flashing display of a pop-up used while saving outgoing email settings was caused by problematic initial placement calculations. (Bug#32579)
AIX 5.2 Agent did not work on AIX 5.3. (Bug#32414)
When the First Time Setup program was run it did not prompt the user to allow importing an Advisor bundle. (Bug#32199)
Agent on MacOSX did not read IP addresses for network interfaces correctly, so the monitor displayed empty host IP addresses. (Bug#32188)
HTML code in queries was not escaped when reporting replication errors, causing the code to be rendered into the page. (Bug#32186)
The First Run pop-up defaulted to English rather than to the locale set in the browser. (Bug#32129)
The error dialog box flashed in the upper left corner before being positioned in the center of the screen. This error dialog box now opens in the center of the screen. (Bug#32068)
The Events list did not take into account Daylight Time and Standard Time when listing events that happened during 1:00am-1:59am. An event that occurred at 1:10am Standard Time was listed before an event that occurred 50 minutes before it at 1:20am Daylight Time. (Bug#32016)
The pop-up for editing log levels failed to load due to bad instantiation data. (Bug#32013)
During the repeated hour of Daylight Savings Time (when 2am turns back into 1am), the graphs were not drawing data. Instead, there was a straight line from the point at 1:00 to the second 1:00, which is what happens if there is no data. The repository did, however, have data for this hour. (Bug#31997)
Only US English was supported for a locale setting. Other English variants are now available for the
localesetting on theGeneral Settingsor theUser Preferencespages. (Bug#31801)If the user locale was changed the graph cache would continue to display the graph in the last locale until it timed out. (Bug#31680)
No init script was installed for the MySQL Network Monitoring Service Manager, and so it did not restart automatically on reboot. (Bug#31676)
The graph's displayed time was not the local time of the Dashboard corresponding to the requested time on the monitored server. (Bug#31656)
Saving a rule with a name that already existed resulted in a stack trace in the window, instead of a more user-friendly error message. (Bug#30925)
The
network.mysql.comerror messages were remapped thereby causing confusion. For example, the following error message:E9000: MySQL Enterprise Customer Center is having difficulties fetching your contract information. Please contact enterprise-feedback@mysql.com for assistance.
Was remapped to:
Unable to connect to verify credentials (Bug#30873)
A newly added server showed as “down” in the user interface, and could potentially have sent a false alarm notification. (Bug#30735)
The information on the , page did not accurately reflect how many rules and graphs were actually in the database and available to the user. (Bug#29623)
The agent did not process
SIGHUP. (Bug#29380)Monitor did not have a facility to stop or downgrade an agent collection frequency. (Bug#28589)
After an agent installation was updated from 1.0.1.4391 to 1.1.0.4899, the version in the menu was incorrectly displayed as 1.0.1.4391, even though the update was successful and the file version of
agent.exewas correctly displayed as 1.1.0.4899. (Bug#27447)When viewing the Results of an Event in the Events tab of the Dashboard, the Notifications section did not reflect the Notifications settings at the time the Event was triggered, but rather the Notifications settings at the time the Event Results were viewed. (Bug#26349)
When the Monitor Agent was remotely monitoring a MySQL server it incorrectly reported that it could collect operating system information. (Bug#22497)
The Account Without Password advisor did not report all users who were without a password, it only reported one. (Bug#15165)
- C.4.1. Changes in MySQL Connector/ODBC 5.1.6 (Not yet released)
- C.4.2. Changes in MySQL Connector/ODBC 5.1.5 (18 August 2008)
- C.4.3. Changes in MySQL Connector/ODBC 5.1.4 (15 April 2008)
- C.4.4. Changes in MySQL Connector/ODBC 5.1.3 (26 March 2008)
- C.4.5. Changes in MySQL Connector/ODBC 5.1.2 (13 February 2008)
- C.4.6. Changes in MySQL Connector/ODBC 5.1.1 (13 December 2007)
- C.4.7. Changes in MySQL Connector/ODBC 5.1.0 (10 September 2007)
- C.4.8. Changes in MySQL Connector/ODBC 5.0.12 (Never released)
- C.4.9. Changes in MySQL Connector/ODBC 5.0.11 (31 January 2007)
- C.4.10. Changes in MySQL Connector/ODBC 5.0.10 (14 December 2006)
- C.4.11. Changes in MySQL Connector/ODBC 5.0.9 (22 November 2006)
- C.4.12. Changes in MySQL Connector/ODBC 5.0.8 (17 November 2006)
- C.4.13. Changes in MySQL Connector/ODBC 5.0.7 (08 November 2006)
- C.4.14. Changes in MySQL Connector/ODBC 5.0.6 (03 November 2006)
- C.4.15. Changes in MySQL Connector/ODBC 5.0.5 (17 October 2006)
- C.4.16. Changes in Connector/ODBC 5.0.3 (Connector/ODBC 5.0 Alpha 3) (20 June 2006)
- C.4.17. Changes in Connector/ODBC 5.0.2 (Never released)
- C.4.18. Changes in Connector/ODBC 5.0.1 (Connector/ODBC 5.0 Alpha 2) (05 June 2006)
- C.4.19. Changes in MySQL Connector/ODBC 3.51.27 (20 November 2008)
- C.4.20. Changes in MySQL Connector/ODBC 3.51.26 (07 July 2008)
- C.4.21. Changes in MySQL Connector/ODBC 3.51.25 (11 April 2008)
- C.4.22. Changes in MySQL Connector/ODBC 3.51.24 (14 March 2008)
- C.4.23. Changes in MySQL Connector/ODBC 3.51.23 (09 January 2008)
- C.4.24. Changes in MySQL Connector/ODBC 3.51.22 (13 November 2007)
- C.4.25. Changes in MySQL Connector/ODBC 3.51.21 (08 October 2007)
- C.4.26. Changes in MySQL Connector/ODBC 3.51.20 (10 September 2007)
- C.4.27. Changes in MySQL Connector/ODBC 3.51.19 (10 August 2007)
- C.4.28. Changes in MySQL Connector/ODBC 3.51.18 (08 August 2007)
- C.4.29. Changes in MySQL Connector/ODBC 3.51.17 (14 July 2007)
- C.4.30. Changes in MySQL Connector/ODBC 3.51.16 (14 June 2007)
- C.4.31. Changes in MySQL Connector/ODBC 3.51.15 (07 May 2007)
- C.4.32. Changes in MySQL Connector/ODBC 3.51.14 (08 March 2007)
- C.4.33. Changes in MySQL Connector/ODBC 3.51.13 (Never released)
- C.4.34. Changes in MySQL Connector/ODBC 3.51.12 (11 February 2005)
- C.4.35. Changes in MySQL Connector/ODBC 3.51.11 (28 January 2005)
Bugs fixed:
MySQL Connector/ODBC failed to build with MySQL 5.1.30 due to incorrect use of the data type
bool. (Bug#42120)Calling
SQLDescribeCol()with a NULL buffer and nonzero buffer length caused a crash. (Bug#41942)MySQL Connector/ODBC updated some fields with random values, rather than with
NULL. (Bug#41256)When a column of type
DECIMALcontainingNULLwas accessed, MySQL Connector/ODBC returned a 0 rather than aNULL. (Bug#41081)Calling
SQLDriverConnect()with aNULLpointer for the output buffer caused a crash ifSQL_DRIVER_NOPROMPTwas also specified:SQLDriverConnect(dbc, NULL, "DSN=myodbc5", SQL_NTS, NULL, 0, NULL, SQL_DRIVER_NOPROMPT)
Setting the ADO
Recordsetdecimal field value to 44.56 resulted in an incorrect value of 445600.0000 being stored when the record set was updated with theUpdatemethod. (Bug#39961)The
SQLTablesWAPI gave incorrect results. For example, table name and table type were returned asNULLrather than as the correct values. (Bug#39957)MyODBC would crash when a character set was being used on the server that was not supported in the client, for example cp1251:
[MySQL][ODBC 5.1 Driver][mysqld-5.0.27-community-nt]Restricted data type attribute violation
The fix causes MyODBC to return an error message instead of crashing. (Bug#39831)
When the
SQLTablesmethod was called withNULLpassed as thetablenameparameter, only one row in theresultset, with table name ofNULLwas returned, instead of all tables for the given database. (Bug#39561)The
SQLGetInfo()function returned 0 forSQL_CATALOG_USAGEinformation. (Bug#39560)MyODBC Driver 5.1.5 was not able to connect if the connection string parameters contained spaces or tab symbols. For example, if the
SERVERparameter was specified as “SERVER= localhost” instead of “SERVER=localhost” the following error message will be displayed:[MySQL][ODBC 5.1 Driver] Unknown MySQL server host ' localhost' (11001).
The pointer passed to the
SQLDriverConnectmethod to retrieve the output connection string length was one greater than it should have been due to the inclusion of the NULL terminator. (Bug#38949)Data-at-execution parameters were not supported during positioned update. This meant updating a long text field with a cursor update would erroneously set the value to null. This would lead to the error
Column 'column_name' cannot be nullwhile updating the database, even whencolumn_namehad been assigned a valid nonnull string. (Bug#37649)The
SQLDriverConnectmethod truncated theOutputConnectionStringparameter to 52 characters. (Bug#37278)The connection string option
Enable Auto-reconnectdid not work. When the connection failed, it could not be restored, and the errors generated were the same as if the option had not been selected. (Bug#37179)Insertion of data into a
LONGTEXTtable field did not work. If such an attempt was made the corresponding field would be found to be empty on examination, or contain random characters. (Bug#36071)No result record was returned for
SQLGetTypeInfofor theTIMESTAMPdata type. An application would receive the resultreturn code 100 (SQL_NO_DATA_FOUND). (Bug#30626)It was not possible to use MySQL Connector/ODBC to connect to a server using SSL. The following error was generated:
Runtime error '-2147467259 (80004005)': [MySQL][ODBC 3.51 Driver]SSL connection error.
When the
recordSet.Updatefunction was called to update anadLongVarCharfield, the field was updated but the recordset was immediately lost. This happened with driver cursors, whether the cursor was opened in optimistic or pessimistic mode.When the next update was called the test code would exit with the following error:
-2147467259 : Query-based update failed because the row to update could not be found.
Microsoft Access was not able to read
BIGINTvalues properly from a table with just two columns of typeBIGINTandVARCHAR.#DELETEappeared instead of the correct values. (Bug#17679)
Bugs fixed:
ODBC
TIMESTAMPstring format is not handled properly by the MyODBC driver. When passing aTIMESTAMPorDATEto MyODBC, in the ODBC format: {d <date>} or {ts <timestamp>}, the string that represents this is copied once into the SQL statement, and then added again, as an escaped string. (Bug#37342)The connector failed to prompt for additional information required to create a DSN-less connection from an application such as Microsoft Excel. (Bug#37254)
SQLDriverConnectdoes not returnSQL_NO_DATAon cancel. The ODBC documentation specifies that this method should returnSQL_NO_DATAwhen the user cancels the dialog to connect. The connector, however, returnsSQL_ERROR. (Bug#36293)Assigning a string longer than 67 characters to the
TableTypeparameter resulted in a buffer overrun when theSQLTables()function was called. (Bug#36275)The ODBC connector randomly uses logon information stored in
odbc-profile, or prompts the user for connection information and ignores any settings stored inodbc-profile. (Bug#36203)After having successfully established a connection, a crash occurs when calling
SQLProcedures()followed bySQLFreeStmt(), using the ODBC C API. (Bug#36069)
Bugs fixed:
Wrong result obtained when using
sum()on adecimal(8,2)field type. (Bug#35920)The driver installer could not create a new DSN if many other drivers were already installed. (Bug#35776)
The
SQLColAttribute()function returnedSQL_TRUEwhen querying theSQL_DESC_FIXED_PREC_SCALE (SQL_COLUMN_MONEY)attribute of aDECIMALcolumn. Previously, the correct value ofSQL_FALSEwas returned; this is now again the case. (Bug#35581)On Linux,
SQLGetDiagRec()returnedSQL_SUCCESSin cases when it should have returnedSQL_NO_DATA. (Bug#33910)The driver crashes ODBC Administrator on attempting to add a new DSN. (Bug#32057)
Platform specific notes:
Important Change: You must uninstall previous 5.1.x editions of MySQL Connector/ODBC before installing the new version.
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
The installer for 64-bit Windows installs both the 32-bit and 64-bit driver. Please note that Microsoft does not yet supply a 64-bit bridge from ADO to ODBC.
Bugs fixed:
Important Change: In previous versions, the SSL certificate would automatically be verified when used as part of the MySQL Connector/ODBC connection. The default mode is now to ignore the verificate of certificates. To enforce verification of the SSL certificate during connection, use the
SSLVERIFYDSN parameter, setting the value to 1. (Bug#29955, Bug#34648)Inserting characters to a UTF8 table using surrogate pairs would fail and insert invalid data. (Bug#34672)
Installation of MySQL Connector/ODBC would fail because it was unable to uninstall a previous installed version. The file being requested would match an older release version than any installed version of the connector. (Bug#34522)
Using
SqlGetDatain combination withSQL_C_WCHARwould return overlapping data. (Bug#34429)Descriptor records were not cleared correctly when calling
SQLFreeStmt(SQL_UNBIND). (Bug#34271)The dropdown selection for databases on a server when creating a DSN was too small. The list size now automatically adjusts up to a maximum size of 20 potential databases. (Bug#33918)
Microsoft Access would be unable to use
DBEngine.RegisterDatabaseto create a DSN using the MySQL Connector/ODBC driver. (Bug#33825)MySQL Connector/ODBC erroneously reported that it supported the
CAST()andCONVERT()ODBC functions for parsing values in SQL statements, which could lead to bad SQL generation during a query. (Bug#33808)Using a linked table in Access 2003 where the table has a
BIGINTcolumn as the first column in the table, and is configured as the primary key, shows#DELETEDfor all rows of the table. (Bug#24535)Updating a
RecordSetwhen the query involves aBLOBfield would fail. (Bug#19065)
MySQL Connector/ODBC 5.1.2-beta, a new version of the ODBC driver for the MySQL database management system, has been released. This release is the second beta (feature-complete) release of the new 5.1 series and is suitable for use with any MySQL server version since MySQL 4.1, including MySQL 5.0, 5.1, and 6.0. (It will not work with 4.0 or earlier releases.)
Keep in mind that this is a beta release, and as with any other pre-production release, caution should be taken when installing on production level systems or systems with critical data.
Platform specific notes:
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
The installer for 64-bit Windows installs both the 32-bit and 64-bit driver. Please note that Microsoft does not yet supply a 64-bit bridge from ADO to ODBC.
Due to differences with the installation process used on Windows and potential registry corruption, it is recommended that uninstall any existing versions of MySQL Connector/ODBC 5.1.x before upgrading.
See also Bug#34571.
Functionality added or changed:
Explicit descriptors are implemented. (Bug#32064)
A full implementation of SQLForeignKeys based on the information available from INFORMATION_SCHEMA in 5.0 and later versions of the server has been implemented.
Changed
SQL_ATTR_PARAMSET_SIZEto return an error until support for it is implemented.Disabled
MYSQL_OPT_SSL_VERIFY_SERVER_CERTwhen using an SSL connection.SQLForeignKeysusesINFORMATION_SCHEMAwhen it is available on the server, which allows more complete information to be returned.
Bugs fixed:
The
SSLCIPHERoption would be incorrectly recorded within the SSL configuration on Windows. (Bug#33897)Within the GUI interface, when connecting to a MySQL server on a nonstandard port, the connection test within the GUI would fail. The issue was related to incorrect parsing of numeric values within the DSN when the option was not configured as the last parameter within the DSN. (Bug#33822)
Specifying a nonexistent database name within the GUI dialog would result in an empty list, not an error. (Bug#33615)
When deleting rows from a static cursor, the cursor position would be incorrectly reported. (Bug#33388)
SQLGetInfo()reported characters forSQL_SPECIAL_CHARACTERSthat were not encoded correctly. (Bug#33130)Retrieving data from a
BLOBcolumn would fail withinSQLGetDatawhen the target data type wasSQL_C_WCHARdue to incorrect handling of the character buffer. (Bug#32684)Renaming an existing DSN entry would create a new entry with the new name without deleting the old entry. (Bug#31165)
Reading a
TEXTcolumn that had been used to store UTF8 data would result in the wrong information being returned during a query. (Bug#28617)SQLForeignKeyswould return an empty string for the schema columns instead ofNULL. (Bug#19923)When accessing column data,
FLAG_COLUMN_SIZE_S32did not limit the octet length or display size reported for fields, causing problems with Microsoft Visual FoxPro.The list of ODBC functions that could have caused failures in Microsoft software when retrieving the length of
LONGBLOBorLONGTEXTcolumns includes:SQLColumnsSQLColAttributeSQLColAttributesSQLDescribeColSQLSpecialColumns(theoretically can have the same problem)
Dynamic cursors on statements with parameters were not supported. (Bug#11846)
Evaluating a simple numeric expression when using the OLEDB for ODBC provider and ADO would return an error, instead of the result. (Bug#10128)
Adding or updating a row using
SQLSetPos()on a result set with aliased columns would fail. (Bug#6157)
MySQL Connector/ODBC 5.1.1-beta, a new version of the ODBC driver for the MySQL database management system, has been released. This release is the first beta (feature-complete) release of the new 5.1 series and is suitable for use with any MySQL server version since MySQL 4.1, including MySQL 5.0, 5.1, and 6.0. (It will not work with 4.0 or earlier releases.)
Keep in mind that this is a beta release, and as with any other pre-production release, caution should be taken when installing on production level systems or systems with critical data.
Includes changes from Connector/ODBC 3.51.21 and 3.51.22.
Built using MySQL 5.0.52.
Platform specific notes:
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
The installer for 64-bit Windows installs both the 32-bit and 64-bit driver. Please note that Microsoft does not yet supply a 64-bit bridge from ADO to ODBC.
Due to differences with the installation process used on Windows and potential registry corruption, it is recommended that uninstall any existing versions of MySQL Connector/ODBC 5.1.x before upgrading.
See also Bug#34571.
Functionality added or changed:
Incompatible Change: Replaced myodbc3i (now myodbc-installer) with MySQL Connector/ODBC 5.0 version.
Incompatible Change: Removed monitor (myodbc3m) and dsn-editor (myodbc3c).
Incompatible Change: Disallow
SET NAMESin initial statement and in executed statements.A wrapper for the
SQLGetPrivateProfileStringW()function, which is required for Unicode support, has been created. This function is missing from the unixODBC driver manager. (Bug#32685)Added MSI installer for Windows 64-bit. (Bug#31510)
Implemented support for
SQLCancel(). (Bug#15601)Removed nonthreadsafe configuration of the driver. The driver is now always built against the threadsafe version of libmysql.
Implemented native Windows setup library
Replaced the internal library which handles creation and loading of DSN information. The new library, which was originally a part of MySQL Connector/ODBC 5.0, supports Unicode option values.
The Windows installer now places files in a subdirectory of the
Program Filesdirectory instead of the Windows system directory.
Bugs fixed:
The
SET NAMESstatement has been disabled because it causes problems in the ODBC driver when determining the current client character set. (Bug#32596)SQLDescribeColWreturned UTF-8 column asSQL_VARCHARinstead ofSQL_WVARCHAR. (Bug#32161)ADO was unable to open record set using dynamic cursor. (Bug#32014)
ADO applications would not open a
RecordSetthat contained aDECIMALfield. (Bug#31720)Memory usage would increase considerably. (Bug#31115)
SQLSetPoswithSQL_DELETEadvances dynamic cursor incorrectly. (Bug#29765)Using an ODBC prepared statement with bound columns would produce an empty result set when called immediately after inserting a row into a table. (Bug#29239)
ADO Not possible to update a client side cursor. (Bug#27961)
Recordset
Update()fails when usingadUseClientcursor. (Bug#26985)MySQL Connector/ODBC would fail to connect to the server if the password contained certain characters, including the semicolon and other punctuation marks. (Bug#16178)
Fixed
SQL_ATTR_PARAM_BIND_OFFSET, and fixed row offsets to work with updatable cursors.SQLSetConnectAttr()did not clear previous errors, possibly confusingSQLError().SQLError()incorrectly cleared the error information, making it unavailable from subsequent calls toSQLGetDiagRec().NULL pointers passed to
SQLGetInfo()could result in a crash.SQL_ODBC_SQL_CONFORMANCEwas not handled bySQLGetInfo().SQLCopyDesc()did not correctly copy all records.Diagnostics were not correctly cleared on connection and environment handles.
This release is the first of the new 5.1 series and is suitable for use with any MySQL server version since MySQL 4.1, including MySQL 5.0, 5.1, and 6.0. (It will not work with 4.0 or earlier releases.)
Keep in mind that this is a alpha release, and as with any other pre-production release, caution should be taken when installing on production level systems or systems with critical data. Not all of the features planned for the final Connector/ODBC 5.1 release are implemented.
Functionality is based on Connector/ODBC 3.51.20.
Platform specific notes:
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
There are no installer packages for Microsoft Windows x64 Edition.
Due to differences with the installation process used on Windows and potential registry corruption, it is recommended that uninstall any existing versions of MySQL Connector/ODBC 5.1.x before upgrading.
See also Bug#34571.
Functionality added or changed:
Added support for Unicode functions (
SQLConnectW, etc).Added descriptor support (
SQLGetDescField,SQLGetDescRec, etc).Added support for
SQL_C_WCHAR.
Note
Development on Connector/ODBC 5.0.x has ceased. New features and functionality will be incorporated into Connector/ODBC 5.1. See Section 20.1.2.1, “Connector/ODBC Roadmap”.
Bugs fixed:
Functionality added or changed:
Added support for ODBC v2 statement options using attributes.
Driver now builds and is partially tested under Linux with the iODBC driver manager.
Bugs fixed:
Connection string parsing for DSN-less connections could fail to identify some parameters. (Bug#25316)
Updates of
MEMOorTEXTcolumns from within Microsoft Access would fail. (Bug#25263)Transaction support has been added and tested. (Bug#25045)
Internal function,
my_setpos_delete_ignore()could cause a crash. (Bug#22796)Fixed occasional mis-handling of the
SQL_NUMERIC_Ctype.Fixed the binding of certain integer types.
Connector/ODBC 5.0.10 is the sixth BETA release.
Functionality added or changed:
Significant performance improvement when retrieving large text fields in pieces using
SQLGetData()with a buffer smaller than the whole data. Mainly used in Access when fetching very large text fields. (Bug#24876)Added initial unicode support in data and metadata. (Bug#24837)
Added initial support for removing braces when calling stored procedures and retrieving result sets from procedure calls. (Bug#24485)
Added loose handling of retrieving some diagnostic data. (Bug#15782)
Added wide-string type info for
SQLGetTypeInfo().
Bugs fixed:
Connector/ODBC 5.0.9 is the fifth BETA release.
This is an implementation and testing release, and is not designed for use within a production environment.
Functionality added or changed:
Added support for column binding as SQL_NUMBERIC_STRUCT.
Added recognition of
SQL_C_SHORTandSQL_C_TINYINTas C types.
Bugs fixed:
Fixed wildcard handling of and listing of catalogs and tables in
SQLTables.Added limit of display size when requested via
SQLColAttribute/SQL_DESC_DISPLAY_SIZE.Fixed buffer length return for SQLDriverConnect.
ODBC v2 behavior in driver now supports ODBC v3 date/time types (since DriverManager maps them).
Catch use of
SQL_ATTR_PARAMSET_SIZEand report error until we fully support.Fixed statistics to fail if it couldn't be completed.
Corrected retrieval multiple field types bit and blob/text.
Fixed SQLGetData to clear the NULL indicator correctly during multiple calls.
Connector/ODBC 5.0.8 is the fourth BETA release.
This is an implementation and testing release, and is not designed for use within a production environment.
Functionality added or changed:
Also made
SQL_DESC_NAMEonly fill in the name if there was a data pointer given, otherwise just the length.Fixed display size to be length if max length isn’t available.
Wildcards now support escaped chars and underscore matching (needed to link tables with underscores in access).
Bugs fixed:
Fixed binding using
SQL_C_LONG.Fixed using wrong pointer for
SQL_MAX_DRIVER_CONNECTIONSinSQLGetInfo.Set default return to
SQL_SUCCESSif nothing is done forSQLSpecialColumns.Fixed MDiagnostic to use correct v2/v3 error codes.
Allow SQLDescribeCol to be called to retrieve the length of the column name, but not the name itself.
Length now used when handling bind parameter (needed in particular for
SQL_WCHAR) - this enables updating char data in MS Access.Updated retrieval of descriptor fields to use the right pointer types.
Fixed hanlding of numeric pointers in SQLColAttribute.
Fixed type returned for
MYSQL_TYPE_LONGtoSQL_INTEGERinstead ofSQL_TINYINT.Fix size return from
SQLDescribeCol.Fixed string length to chars, not bytes, returned by SQLGetDiagRec.
Connector/ODBC 5.0.7 is the third BETA release.
This is an implementation and testing release, and is not designed for use within a production environment.
Functionality added or changed:
Added support for
SQLStatisticstoMYODBCShell.Improved trace/log.
Bugs fixed:
SQLBindParameter now handles
SQL_C_DEFAULT.Corrected incorrect column index within
SQLStatistics. Many more tables can now be linked into MS Access.Fixed
SQLDescribeColreturning column name length in bytes rather than chars.
Connector/ODBC 5.0.6 is the second BETA release.
This is an implementation and testing release, and is not designed for use within a production environment.
Features, limitations and notes on this release
MySQL Connector/ODBC supports both
UserandSystemDSNs.Installation is provided in the form of a standard Microsoft System Installer (MSI).
You no longer have to have MySQL Connector/ODBC 3.51 installed before installing this version.
Bugs fixed:
You no longer have to have MySQL Connector/ODBC 3.51 installed before installing this version.
MySQL Connector/ODBC supports both
UserandSystemDSNs.Installation is provided in the form of a standard Microsoft System Installer (MSI).
Connector/ODBC 5.0.5 is the first BETA release.
This is an implementation and testing release, and is not designed for use within a production environment.
You no longer have to have Connector/ODBC 3.51 installed before installing this version.
Bugs fixed:
You no longer have to have MySQL Connector/ODBC 3.51 installed before installing this version.
This is an implementation and testing release, and is not designed for use within a production environment.
Features, limitations and notes on this release:
The following ODBC API functions have been added in this release:
SQLBindParameterSQLBindCol
Connector/ODBC 5.0.2 was an internal implementation and testing release.
Features, limitations and notes on this release:
Connector/ODBC 5.0 is Unicode aware.
Connector/ODBC is currently limited to basic applications. ADO applications and Microsoft Office are not supported.
Connector/ODBC must be used with a Driver Manager.
The following ODBC API functions are implemented:
SQLAllocHandleSQLCloseCursorSQLColAttributeSQLColumnsSQLConnectSQLCopyDescSQLDisconnectSQLExecDirectSQLExecuteSQLFetchSQLFreeHandleSQLFreeStmtSQLGetConnectAttrSQLGetDataSQLGetDescFieldSQLGetDescRecSQLGetDiagFieldSQLGetDiagRecSQLGetEnvAttrSQLGetFunctionsSQLGetStmtAttrSQLGetTypeInfoSQLNumResultColsSQLPrepareSQLRowcountSQLTables
The following ODBC API function are implemented, but not yet support all the available attributes/options:
SQLSetConnectAttrSQLSetDescFieldSQLSetDescRecSQLSetEnvAttrSQLSetStmtAttr
Bugs fixed:
The client program hung when the network connection to the server was interrupted. (Bug#40407)
The connection string option
Enable Auto-reconnectdid not work. When the connection failed, it could not be restored, and the errors generated were the same as if the option had not been selected. (Bug#37179)It was not possible to use MySQL Connector/ODBC to connect to a server using SSL. The following error was generated:
Runtime error '-2147467259 (80004005)': [MySQL][ODBC 3.51 Driver]SSL connection error.
Functionality added or changed:
There is a new connection option,
FLAG_NO_BINARY_RESULT. When set this option disables charset 63 for columns with an emptyorg_table. (Bug#29402)
Bugs fixed:
When an
ADOConnectionis created and attempts to open a schema withADOConnection.OpenSchemaan access violation occurs inmyodbc3.dll. (Bug#30770)When
SHOW CREATE TABLEwas invoked and then the field values read, the result was truncated and unusable if the table had many rows and indexes. (Bug#24131)
Bugs fixed:
The
SQLColAttribute()function returnedSQL_TRUEwhen querying theSQL_DESC_FIXED_PREC_SCALE (SQL_COLUMN_MONEY)attribute of aDECIMALcolumn. Previously, the correct value ofSQL_FALSEwas returned; this is now again the case. (Bug#35581)The driver crashes ODBC Administrator on attempting to add a new DSN. (Bug#32057)
When accessing column data,
FLAG_COLUMN_SIZE_S32did not limit the octet length or display size reported for fields, causing problems with Microsoft Visual FoxPro.The list of ODBC functions that could have caused failures in Microsoft software when retrieving the length of
LONGBLOBorLONGTEXTcolumns includes:SQLColumnsSQLColAttributeSQLColAttributesSQLDescribeColSQLSpecialColumns(theoretically can have the same problem)
Bugs fixed:
Security Enhancement: Accessing a parameer with the type of
SQL_C_CHAR, but with a numeric type and a length of zero, the parameter marker would get stropped from the query. In addition, an SQL injection was possible if the parameter value had a nonzero length and was not numeric, the text would be inserted verbatim. (Bug#34575)Important Change: In previous versions, the SSL certificate would automatically be verified when used as part of the MySQL Connector/ODBC connection. The default mode is now to ignore the verificate of certificates. To enforce verification of the SSL certificate during connection, use the
SSLVERIFYDSN parameter, setting the value to 1. (Bug#29955, Bug#34648)When using ADO, the count of parameters in a query would always return zero. (Bug#33298)
Using tables with a single quote or other nonstandard characters in the table or column names through ODBC would fail. (Bug#32989)
When using Crystal Reports, table and column names would be truncated to 21 characters, and truncated columns in tables where the truncated name was the duplicated would lead to only a single column being displayed. (Bug#32864)
SQLExtendedFetch()andSQLFetchScroll()ignored the rowset size if theDon't cache resultDSN option was set. (Bug#32420)When using the ODBC
SQL_TXN_READ_COMMITTEDoption, 'dirty' records would be read from tables as if the option had not been applied. (Bug#31959)When creating a System DSN using the ODBC Administrator on Mac OS X, a User DSN would be created instead. The root cause is a problem with the iODBC driver manager used on Mac OS X. The fix works around this issue.
Note
ODBC Administrator may still be unable to register a System DSN unless the
/Library/ODBC/odbc.inifile has the correct permissions. You should ensure that the file is writable by theadmingroup.Calling
SQLFetchorSQLFetchScrollwould return negative data lengths when usingSQL_C_WCHAR. (Bug#31220)SQLSetParam()caused memory allocation errors due to driver manager's mapping of deprecated functions (buffer length -1). (Bug#29871)Static cursor was unable to be used through ADO when dynamic cursors were enabled. (Bug#27351)
Using
connection.Executeto create a record set based on a table without declaring the cmd option asadCmdTablewill fail when communicating with versions of MySQL 5.0.37 and higher. The issue is related to the way thatSQLSTATEis returned when ADO tries to confirm the existence of the target object. (Bug#27158)Updating a
RecordSetwhen the query involves aBLOBfield would fail. (Bug#19065)With some connections to MySQL databases using MySQL Connector/ODBC, the connection would mistakenly report 'user cancelled' for accesses to the database information. (Bug#16653)
Platform specific notes:
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
There are no installer packages for Microsoft Windows x64 Edition.
Bugs fixed:
MySQL Connector/ODBC would incorrectly return
SQL_SUCCESSwhen checking for distributed transaction support. (Bug#32727)When using unixODBC or directly linked applications where the thread level is set to less than 3 (within
odbcinst.ini), a thread synchronization issue would lead to an application crash. This was becauseSQLAllocStmt()andSQLFreeStmt()did not synchronize access to the list of statements associated with a connection. (Bug#32587)Cleaning up environment handles in multithread environments could result in a five (or more) second delay. (Bug#32366)
Renaming an existing DSN entry would create a new entry with the new name without deleting the old entry. (Bug#31165)
Setting the default database using the
DefaultDatabaseproperty of an ADOConnectionobject would fail with the errorProvider does not support this property. TheSQLGetInfo()returned the wrong value forSQL_DATABASE_NAMEwhen no database was selected. (Bug#3780)
Functionality added or changed:
The workaround for this bug was removed due to the fixes in MySQL Server 5.0.48 and 5.1.21.
This regression was introduced by Bug#10491.
Bugs fixed:
The
Englishlocale would be used when formatting floating point values. TheClocale is now used for these values. (Bug#32294)When accessing information about supported operations, the driver would return incorrect information about the support for
UNION. (Bug#32253)Unsigned integer values greater than the maximum value of a signed integer would be handled incorrectly. (Bug#32171)
The wrong result was returned by
SQLGetData()when the data was an empty string and a zero-sized buffer was specified. (Bug#30958)Added the
FLAG_COLUMN_SIZE_S32option to limit the reported column size to a signed 32-bit integer. This option is automatically enabled for ADO applications to provide a work around for a bug in ADO. (Bug#13776)
Bugs fixed:
When using a rowset/cursor and add a new row with a number of fields, subsequent rows with fewer fields will include the original fields from the previous row in the final
INSERTstatement. (Bug#31246)Uninitiated memory could be used when C/ODBC internally calls
SQLGetFunctions(). (Bug#31055)The wrong
SQL_DESC_LITERAL_PREFIXwould be returned for date/time types. (Bug#31009)The wrong
COLUMN_SIZEwould be returned bySQLGetTypeInfofor the TIME columns (SQL_TYPE_TIME). (Bug#30939)Clicking outside the character set selection box when configuring a new DSN could cause the wrong character set to be selected. (Bug#30568)
Not specifying a user in the DSN dialog would raise a warning even though the parameter is optional. (Bug#30499)
SQLSetParam()caused memory allocation errors due to driver manager's mapping of deprecated functions (buffer length -1). (Bug#29871)When using ADO, a column marked as
AUTO_INCREMENTcould incorrectly report that the column allowedNULLvalues. This was dur to an issue withNULLABLEandIS_NULLABLEreturn values from the call toSQLColumns(). (Bug#26108)MySQL Connector/ODBC would return the wrong the error code when the server disconnects the active connection because the configured
wait_timeouthas expired. Previously it would returnHY000. MySQL Connector/ODBC now correctly returns anSQLSTATEof08S01. (Bug#3456)
Bugs fixed:
Using
FLAG_NO_PROMPTdoesn't suppress the dialogs normally handled bySQLDriverConnect. (Bug#30840)The specified length of the user name and authentication parameters to
SQLConnect()were not being honored. (Bug#30774)The wrong column size was returned for binary data. (Bug#30547)
SQLGetData()will now always returnSQL_NO_DATA_FOUNDon second call when no data left, even if requested size is 0. (Bug#30520)SQLGetConnectAttr()did not reflect the connection state correctly. (Bug#14639)Removed checkbox in setup dialog for
FLAG_FIELD_LENGTH(identified asDon't Optimize Column Widthwithin the GUI dialog), which was removed from the driver in 3.51.18.
Connector/ODBC 3.51.19 fixes a specific issue with the 3.51.18 release. For a list of changes in the 3.51.18 release, see Section C.4.28, “Changes in MySQL Connector/ODBC 3.51.18 (08 August 2007)”.
Functionality added or changed:
Because of Bug#10491 in the server, character string results were sometimes incorrectly identified as
SQL_VARBINARY. Until this server bug is corrected, the driver will identify all variable-length strings asSQL_VARCHAR.
Platform specific notes:
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
Binary packages for Sun Solaris are now available as
PKGpackages.Binary packages as disk images with installers are now available for Mac OS X.
A binary package without an installer is available for Microsoft Windows x64 Edition. There are no installer packages for Microsoft Windows x64 Edition.
Functionality added or changed:
Incompatible Change: The
FLAG_DEBUGoption was removed.When connecting to a specific database when using a DSN, the system tables from the
mysqldatabase are no longer also available. Previously, tables from the mysql database (catalog) were listed asSYSTEM TABLESbySQLTables()even when a different catalog was being queried. (Bug#28662)Installed for Mac OS X has been re-instated. The installer registers the driver at a system (not user) level and makes it possible to create both user and system DSNs using the MySQL Connector/ODBC driver. The installer also fixes the situation where the necessary drivers would bge installed local to the user, not globally. (Bug#15326, Bug#10444)
MySQL Connector/ODBC now supports batched statements. In order to enable cached statement support you must switch enable the batched statement option (
FLAG_MULTI_STATEMENTS, 67108864, or Allow multiple statements within a GUI configuration). Be aware that batched statements create an increased chance of SQL injection attacks and you must ensure that your application protects against this scenario. (Bug#7445)The
SQL_ATTR_ROW_BIND_OFFSET_PTRis now supported for row bind offsets. (Bug#6741)The
TRACEandTRACEFILEDSN options have been removed. Use the ODBC driver manager trace options instead.
Bugs fixed:
When using a table with multiple
TIMESTAMPcolumns, the finalTIMESTAMPcolumn within the table definition would not be updateable. Note that there is still a limitation in MySQL server regarding multipleTIMESTAMPcolumns . (Bug#9927) (Bug#30081)Fixed an issue where the myodbc3i would update the user ODBC configuration file (
~/Library/ODBC/odbcinst.ini) instead of the system/Library/ODBC/odbcinst.ini. This was caused because myodbc3i was not honoring thesandumodifiers for the-dcommand-line option. (Bug#29964)Getting table metadata (through the
SQLColumns()would fail, returning a bad table definition to calling applications. (Bug#29888)DATETIMEcolumn types would returnFALSEin place ofSQL_SUCCESSwhen requesting the column type information. (Bug#28657)The
SQL_COLUMN_TYPE,SQL_COLUMN_DISPLAYandSQL_COLUMN_PRECISIONvalues would be returned incorrectly bySQLColumns(),SQLDescribeCol()andSQLColAttribute()when accessing character columns, especially those generated throughconcat(). The lengths returned should now conform to the ODBC specification. TheFLAG_FIELD_LENGTHoption no longer has any affect on the results returned. (Bug#27862)Obtaining the length of a column when using a character set for the connection of
utf8would result in the length being returned incorrectly. (Bug#19345)The
SQLColumns()function could return incorrect information aboutTIMESTAMPcolumns, indicating that the field was not nullable. (Bug#14414)The
SQLColumns()function could return incorrect information aboutAUTO_INCREMENTcolumns, indicating that the field was not nullable. (Bug#14407)A binary package without an installer is available for Microsoft Windows x64 Edition. There are no installer packages for Microsoft Windows x64 Edition.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
BIT(n)columns are now treated asSQL_BITdata wheren = 1and binary data wheren > 1.The wrong value from
SQL_DESC_LITERAL_SUFFIXwas returned for binary fields.The
SQL_DATETIME_SUBcolumn in SQLColumns() was not correctly set for date and time types.The value for
SQL_DESC_FIXED_PREC_SCALEwas not returned correctly for values in MySQL 5.0 and later.The wrong value for
SQL_DESC_TYPEwas returned for date and time types.SQLConnect()andSQLDriverConnect()were rewritten to eliminate duplicate code and ensure all options were supported using both connection methods.SQLDriverConnect()now only requires the setup library to be present when the call requires it.The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
Binary packages as disk images with installers are now available for Mac OS X.
Binary packages for Sun Solaris are now available as
PKGpackages.The wrong value for
DECIMAL_DIGITSinSQLColumns()was reported forFLOATandDOUBLEfields, as well as the wrong value for the scale parameter toSQLDescribeCol(), and theSQL_DESC_SCALEattribute fromSQLColAttribute().The
SQL_DATA_TYPEcolumn inSQLColumns()results did not report the correct value for date and time types.
Platform specific notes:
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
Binary packages for Sun Solaris are now available as
PKGpackages.Binary packages as disk images with installers are now available for Mac OS X.
A binary package without an installer is available for Microsoft Windows x64 Edition. There are no installer packages for Microsoft Windows x64 Edition.
Functionality added or changed:
It is now possible to specify a different character set as part of the DSN or connection string. This must be used instead of the
SET NAMESstatement. You can also configure the character set value from the GUI configuration. (Bug#9498, Bug#6667)Fixed calling convention ptr and wrong free in myodbc3i, and fixed the null terminating (was only one, not two) when writing DSN to string.
Dis-allow NULL ptr for null indicator when calling SQLGetData() if value is null. Now returns SQL_ERROR w/state 22002.
The setup library has been split into its own RPM package, to allow installing the driver itself with no GUI dependencies.
Bugs fixed:
myodbc3idid not correctly format driver info, which could cause the installation to fail. (Bug#29709)MySQL Connector/ODBC crashed with Crystal Reports due to a rproblem with
SQLProcedures(). (Bug#28316)Fixed a problem where the GUI would crash when configuring or removing a System or User DSN. (Bug#27315)
Fixed error handling of out-of-memory and bad connections in catalog functions. This might raise errors in code paths that had ignored them in the past. (Bug#26934)
For a stored procedure that returns multiple result sets, MySQL Connector/ODBC returned only the first result set. (Bug#16817)
Calling
SQLGetDiagFieldwithRecNumber 0, DiagIdentifier NOT 0returnedSQL_ERROR, preventing access to diagnostic header fields. (Bug#16224)Added a new DSN option (
FLAG_ZERO_DATE_TO_MIN) to retrieveXXXX-00-00dates as the minimum allowed ODBC date (XXXX-01-01). Added another option (FLAG_MIN_DATE_TO_ZERO) to mirror this but for bound parameters.FLAG_MIN_DATE_TO_ZEROonly changes0000-01-01to0000-00-00. (Bug#13766)If there was more than one unique key on a table, the correct fields were not used in handling
SQLSetPos(). (Bug#10563)When inserting a large
BLOBfield, MySQL Connector/ODBC would crash due to a memory allocation error. (Bug#10562)The driver was using
mysql_odbc_escape_string(), which does not handle theNO_BACKSLASH_ESCAPESSQL mode. Now it usesmysql_real_escape_string(), which does. (Bug#9498)SQLColumns()did not handle many of its parameters correctly, which could lead to incorrect results. The table name argument was not handled as a pattern value, and most arguments were not escaped correctly when they contained nonalphanumeric characters. (Bug#8860)There are no binary packages for Microsoft Windows x64 Edition.
There is no binary package for Mac OS X on 64-bit PowerPC because Apple does not currently provide a 64-bit PowerPC version of iODBC.
Correctly return error if
SQLBindColis called with an invalid column.Fixed possible crash if
SQLBindCol()was not called beforeSQLSetPos().The Mac OS X binary packages are only provided as tarballs, there is no installer.
The binary packages for Sun Solaris are only provided as tarballs, not the PKG format.
The HP-UX 11.23 IA64 binary package does not include the GUI bits because of problems building Qt on that platform.
Functionality added or changed:
MySQL Connector/ODBC now supports using SSL for communication. This is not yet exposed in the setup GUI, but must be enabled through configuration files or the DSN. (Bug#12918)
Bugs fixed:
Calls to SQLNativeSql() could cause stack corruption due to an incorrect pointer cast. (Bug#28758)
Using curors on results sets with multi-column keys could select the wrong value. (Bug#28255)
SQLForeignKeysdoes not escape_and%in the table name arguments. (Bug#27723)When using stored procedures, making a
SELECTor second stored procedure call after an initial stored procedure call, the second statement will fail. (Bug#27544)SQLTables() did not distinguish tables from views. (Bug#23031)
Data in
TEXTcolumns would fail to be read correctly. (Bug#16917)Specifying strings as parameters using the
adBSTRoradVarWChartypes, (SQL_WVARCHARandSQL_WLONGVARCHAR) would be incorrectly quoted. (Bug#16235)SQL_WVARCHAR and SQL_WLONGVARCHAR parameters were not properly quoted and escaped. (Bug#16235)
Using
BETWEENwith date values, the wrong results could be returned. (Bug#15773)When using the
Don't Cache Results(option value1048576) with Microsoft Access, the connection will fail using DAO/VisualBasic. (Bug#4657)Return values from
SQLTables()may be truncated. (Bugs #22797)
Bugs fixed:
MySQL Connector/ODBC would incorrectly claim to support
SQLProcedureColumns(by returning true when queried aboutSQLPROCEDURECOLUMNSwithSQLGetFunctions), but this functionality is not supported. (Bug#27591)An incorrect transaction isolation level may not be returned when accessing the connection attributes. (Bug#27589)
Adding a new DSN with the
myodbc3iutility under AIX would fail. (Bug#27220)When inserting data using bulk statements (through
SQLBulkOperations), the indicators for all rows within the insert would not updated correctly. (Bug#24306)Using
SQLProceduresdoes not return the database name within the returned resultset. (Bug#23033)The
SQLTransact()function did not support an empty connection handle. (Bug#21588)Using
SQLDriverConnectinstead ofSQLConnectcould cause later operations to fail. (Bug#7912)When using blobs and parameter replacement in a statement with
WHERE CURSOR OF, the SQL is truncated. (Bug#5853)MySQL Connector/ODBC would return too many foreign key results when accessing tables with similar names. (Bug#4518)
Functionality added or changed:
Use of
SQL_ATTR_CONNECTION_TIMEOUTon the server has now been disabled. If you attempt to set this attribute on your connection theSQL_SUCCESS_WITH_INFOwill be returned, with an error number/string ofHYC00: Optional feature not supported. (Bug#19823)Added auto is null option to MySQL Connector/ODBC option parameters. (Bug#10910)
Added auto-reconnect option to MySQL Connector/ODBC option parameters.
Added support for the
HENVhandlers inSQLEndTran().
Bugs fixed:
On 64-bit systems, some types would be incorrectly returned. (Bug#26024)
When retrieving
TIMEcolumns, C/ODBC would incorrectly interpret the type of the string and could interpret it as aDATEtype instead. (Bug#25846)MySQL Connector/ODBC may insert the wrong parameter values when using prepared statements under 64-bit Linux. (Bug#22446)
Using MySQL Connector/ODBC, with
SQLBindColand binding the length to the return value fromSQL_LEN_DATA_AT_EXECfails with a memory allocation error. (Bug#20547)Using
DataAdapter, MySQL Connector/ODBC may continually consume memory when reading the same records within a loop (Windows Server 2003 SP1/SP2 only). (Bug#20459)When retrieving data from columns that have been compressed using
COMPRESS(), the retrieved data would be truncated to 8KB. (Bug#20208)The ODBC driver name and version number were incorrectly reported by the driver. (Bug#19740)
A string format exception would be raised when using iODBC, MySQL Connector/ODBC and the embedded MySQL server. (Bug#16535)
The
SQLDriverConnect()ODBC method did not work with recent MySQL Connector/ODBC releases. (Bug#12393)
Connector/ODBC 3.51.13 was an internal implementation and testing release.
Functionality added or changed:
N/A
Bugs fixed:
Bugs fixed:
mysql_list_dbcolumns()andinsert_fields()were retrieving all rows from a table. Fixed the queries generated by these functions to return no rows. (Bug#8198)SQLGetTypoInfo()returnedtinyblobforSQL_VARBINARYand nothing forSQL_BINARY. Fixed to returnvarbinaryforSQL_VARBINARY,binaryforSQL_BINARY, andlongblobforSQL_LONGVARBINARY. (Bug#8138)
- C.5.1. Changes in MySQL Connector/NET Version 6.2.x
- C.5.2. Changes in MySQL Connector/NET Version 6.1.x
- C.5.3. Changes in MySQL Connector/NET Version 6.0.x
- C.5.4. Changes in MySQL Connector/NET Version 5.3.x
- C.5.5. Changes in MySQL Connector/NET Version 5.2.x
- C.5.6. Changes in MySQL Connector/NET Version 5.1.x
- C.5.7. Changes in MySQL Connector/NET Version 5.0.x
- C.5.8. Changes in MySQL Connector/NET Version 1.0.x
- C.5.9. Changes in MySQL Connector/NET Version 0.9.0 (30 August 2004)
- C.5.10. Changes in MySQL Connector/NET Version 0.76
- C.5.11. Changes in MySQL Connector/NET Version 0.75
- C.5.12. Changes in MySQL Connector/NET Version 0.74
- C.5.13. Changes in MySQL Connector/NET Version 0.71
- C.5.14. Changes in MySQL Connector/NET Version 0.70
- C.5.15. Changes in MySQL Connector/NET Version 0.68
- C.5.16. Changes in MySQL Connector/NET Version 0.65
- C.5.17. Changes in MySQL Connector/NET Version 0.60
- C.5.18. Changes in MySQL Connector/NET Version 0.50
The first alpha release of 6.2.0.
Bugs fixed:
When loading the
MySQLClient-mono.slnfile included with the Connector/NET source into Mono Develop, the following error occurred:/home/tbedford/connector-net-src/6.1/MySQLClient-mono.sln(22): Unsupported or unrecognized project: '/home/tbedford/connector-net-src/6.1/Installer/Installer.wixproj'
If the file was modified to remove this problem, then attempting to build the solution generated the following error:
/home/tbedford/connector-net-src/6.1/MySql.Data/Provider/Source/Connection.cs(280,46): error CS0115: `MySql.Data.MySqlClient.MySqlConnection.DbProviderFactory' is marked as an override but no suitable property found to override
This release fixes bugs since 6.1.2.
Bugs fixed:
Attempting to build MySQL Connector/NET 6.1
MySQL.Datafrom source code on Windows failed with the following error:...\clones\6.1\MySql.Data\Provider\Source\NativeDriver.cs(519,29): error CS0122: 'MySql.Data.MySqlClient.MySqlPacket.MySqlPacket()' is inaccessible due to its protection level
When tables were auto created for the Session State Provider they were set to use the MySQL Server's default collation, rather than the default collation set for the containing database. (Bug#47332)
When loading the
MySQLClient-mono.slnfile included with the Connector/NET source into Mono Develop, the following error occurred:/home/tbedford/connector-net-src/6.1/MySQLClient-mono.sln(22): Unsupported or unrecognized project: '/home/tbedford/connector-net-src/6.1/Installer/Installer.wixproj'
If the file was modified to remove this problem, then attempting to build the solution generated the following error:
/home/tbedford/connector-net-src/6.1/MySql.Data/Provider/Source/Connection.cs(280,46): error CS0115: `MySql.Data.MySqlClient.MySqlConnection.DbProviderFactory' is marked as an override but no suitable property found to override
This is the first GA release of 6.1.
Bugs fixed:
The MySQL Connector/NET Session State Provider truncated session data to 64KB, due to its column types being set to
BLOB. (Bug#47339)MySQL Connector/NET generated the following exception when using the Session State provider:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MINUTEWHERE SessionId = 'dtmgga55x35oi255nrfrxe45' AND ApplicationId = 1 AND Loc' at line 1 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MINUTEWHERE SessionId = 'dtmgga55x35oi255nrfrxe45' AND ApplicationId = 1 AND Loc' at line 1If an error occurred during connection to a MySQL Server, deserializing the error message from the packet buffer caused a
NullReferenceExceptionto be thrown. When the methodMySqlPacket::ReadString()attempted to retrieve the error message, the following line of code threw the exception:string s = encoding.GetString(bits, (int)buffer.Position, end - (int)buffer.Position);This was due to the fact that the encoding field had not been initialized correctly. (Bug#46844)
Input parameters were missing from Stored Procedures when using them with ADO.NET Data Entities. (Bug#44985)
MySQL Connector/NET did not time out correctly. The command timeout was set to 30 secs, but MySQL Connector/NET hung for several hours. (Bug#43761)
This is the first Beta release of 6.1.
Bugs fixed:
In the
MySqlDataReaderclass theGetSBytefunction returned abytevalue instead of ansbytevalue. (Bug#46620)When trying to create stored procedures from a SQL script, a
MySqlExceptionwas thrown when attempting to redefine theDELIMITER:MySql.Data.MySqlClient.MySqlException was unhandled Message="You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER' at line 1" Source="MySql.Data" ErrorCode=-2147467259 Number=1064 StackTrace: à MySql.Data.MySqlClient.MySqlStream.ReadPacket() à MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) à MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() à MySql.Data.MySqlClient.MySqlDataReader.NextResult() à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() à MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() à MySql.Data.MySqlClient.MySqlScript.Execute()Note: The
MySqlScriptclass has been fixed to support the delimiter statement as it is found in SQL scripts. (Bug#46429)The MySQL Connector/NET Profile Provider,
MySql.Web.Profile.MySQLProfileProvider, generated an error when running on Mono. When an attempt was made to save a string inProfile.Namethe string was not saved to themy_aspnet_Profilestable. If an attempt was made to force the save withProfile.Save()the following error was generated:Server Error in '/mono' Application -------------------------------------------------------------------------------- The requested feature is not implemented. Description: HTTP 500. Error processing request. Stack Trace: System.NotImplementedException: The requested feature is not implemented. at MySql.Data.MySqlClient.MySqlConnection.EnlistTransaction (System.Transactions.Transaction transaction) [0x00000] at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] at MySql.Web.Profile.MySQLProfileProvider.SetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyValueCollection collection) [0x00000] -------------------------------------------------------------------------------- Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433An exception was generated when using
TIMESTAMPcolumns with the Entity Framework. (Bug#46311)MySQL Connector/NET sometimes hung, without generating an exception. This happened if a read from a stream failed returning a 0, causing the code in
LoadPacket()to enter an infinite loop. (Bug#46308)When using MySQL Connector/NET 6.0.4 and a MySQL Server 4.1 an exception was generated when trying to execute:
connection.GetSchema("Columns", ...);The exception generated was:
'connection.GetSchema("Columns")' threw an exception of type 'System.ArgumentException'System.Data.DataTable {System.ArgumentException} base{"Input string was not in a correct format.Couldn't store <'Select'> in NUMERIC_PRECISION Column. Expected type is UInt64."}System.Exception {System.ArgumentException}The MySQL Connector/NET method
StoredProcedure.GetParameters(string)ignored the programmer's setting of theUseProcedureBodiesoption. This broke any application for which the application's parameter names did not match the parameter names in the Stored Procedure, resulting in anArgumentExceptionwith the message “Parameter 'foo' not found in the collection.” and the following stack trace:MySql.Data.dll!MySql.Data.MySqlClient.MySqlParameterCollection.GetParameterFlexible(stri ng parameterName = "pStart", bool throwOnNotFound = true) Line 459C# MySql.Data.dll!MySql.Data.MySqlClient.StoredProcedure.Resolve() Line 157 + 0x25 bytesC# MySql.Data.dll!MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(System.Data.CommandBeha vior behavior = SequentialAccess) Line 405 + 0xb bytesC# MySql.Data.dll!MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(System.Data.Comma ndBehavior behavior = SequentialAccess) Line 884 + 0xb bytesC# System.Data.dll!System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(System .Data.CommandBehavior behavior) + 0xb bytes System.Data.dll!System.Data.Common.DbDataAdapter.FillInternal(System.Data.DataSet dataset = {System.Data.DataSet}, System.Data.DataTable[] datatables = null, int startRecord = 0, int maxRecords = 0, string srcTable = "Table", System.Data.IDbCommand command = {MySql.Data.MySqlClient.MySqlCommand}, System.Data.CommandBehavior behavior) + 0x83 bytes System.Data.dll!System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet dataSet, int startRecord, int maxRecords, string srcTable, System.Data.IDbCommand command, System.Data.CommandBehavior behavior) + 0x120 bytes System.Data.dll!System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet dataSet) + 0x5f bytesConversion of MySQL
TINYINT(1)tobooleanfailed. (Bug#46205, Bug#46359, Bug#41953)When populating a MySQL database table in Visual Studio using the Table Editor, if a
VARCHAR(10)column was changed to aVARCHAR(20)column an exception was generated:SystemArgumentException: DataGridViewComboBoxCell value is not valid. To replace this default dialog please handle the DataError Event.The Entity Framework provider was not calling
DBSortExpressioncorrectly when theSkipandTakemethods were used, such as in the following statement:TestModel.tblquarantine.OrderByDescending(q => q.MsgDate).Skip(100).Take(100).ToList();This resulted in the data being unsorted. (Bug#45723)
The MySQL Connector/NET 6.0.4 installer failed with an error. The error message generated was:
There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor.When was clicked to acknowledge the error the installer exited. (Bug#45474)
Calling the Entity Framework
SaveChanges()method of any MySQL ORM Entity with a column typeTIME, generated an error message:Unknown PrimitiveKind Time
Insert into two tables failed when using the Entity Framework. The exception generated was:
The value given is not an instance of type 'Edm.Int32'Errors occurred when using the Entity Framework with cultures that used a comma as the decimal separator. This was because the formatting for
SINGLE,DOUBLEandDECIMALvalues was not handled correctly. (Bug#44455)When attempting to connect to MySQL using the Compact Framework version of MySQL Connector/NET, an
IndexOutOfRangeExceptionexception was generated on trying to open the connection. (Bug#43736)When reading data, such as with a
MySqlDataAdapteron aMySqlConnection, MySQL Connector/NET could potentially enter an infinite loop inCompressedStream.ReadNextpacket()if compression was enabled. (Bug#43678)An error occurred when building MySQL Connector/NET from source code checked out from the public SVN repository. This happened on Linux using Mono and Nant. The Mono JIT compiler version was 1.2.6.0. The Nant version was 0.85.
When an attempt was made to build (for example) the MySQL Connector/NET 5.2 branch using the command:
$ nant -buildfile:Client.buildThe following error occurred:
BUILD FAILED Error loading buildfile. Encoding name 'Windows-1252' not supported. Parameter name: nameMySQL Connector/NET CHM documentation stated that MySQL Server 3.23 was supported. (Bug#42110)
In the case of long network inactivity, especially when connection pooling was used, connections were sometimes dropped, for example, by firewalls.
Note: The bugfix introduced a new
keepaliveparameter, which prevents disconnects by sending an empty TCP packet after a specified timeout. (Bug#40684)Calling a Stored Procedure with an output parameter through MySQL Connector/NET resulted in a memory leak. Calling the same Stored Procedure without an output parameter did not result in a memory leak. (Bug#36027)
This is the first Alpha release of 6.1.
Functionality added or changed:
Changed GUID type - The backend representation of a guid type has been changed to be CHAR(36). This is so you can use the server UUID() function to populate a GUID table. UUID generates a 36 character string. Developers of older applications can add
old guids=trueto the connection string and the old BINARY(16) type will be used instead.Support for native output parameters - This is supported when connected to a server that supports native output parameters. This includes 5.4 servers and 6.0.8 and later servers.
Session State Provider - This allows you to store the state of your website in a MySQL server.
Website Configuration Dialog - This is a new wizard that is activated by clicking a button on the toolbar at the top of the Visual Studio Solution Explorer. It works in conjunction with the ASP.Net administration pages, making it easier to activate and set advanced options for the different MySQL web providers included.
- C.5.3.1. Changes in MySQL Connector/NET 6.0.5 (Not yet released)
- C.5.3.2. Changes in MySQL Connector/NET 6.0.4 (16 June 2009)
- C.5.3.3. Changes in MySQL Connector/NET 6.0.3 (28 April 2009)
- C.5.3.4. Changes in MySQL Connector/NET 6.0.2 (07 April 2009 beta)
- C.5.3.5. Changes in MySQL Connector/NET 6.0.1 (02 April 2009 beta)
- C.5.3.6. Changes in MySQL Connector/NET 6.0.0 (02 March 2009 alpha)
This is a new release, fixing recently discovered bugs.
Bugs fixed:
When loading the
MySQLClient-mono.slnfile included with the Connector/NET source into Mono Develop, the following error occurred:/home/tbedford/connector-net-src/6.1/MySQLClient-mono.sln(22): Unsupported or unrecognized project: '/home/tbedford/connector-net-src/6.1/Installer/Installer.wixproj'
If the file was modified to remove this problem, then attempting to build the solution generated the following error:
/home/tbedford/connector-net-src/6.1/MySql.Data/Provider/Source/Connection.cs(280,46): error CS0115: `MySql.Data.MySqlClient.MySqlConnection.DbProviderFactory' is marked as an override but no suitable property found to override
If an error occurred during connection to a MySQL Server, deserializing the error message from the packet buffer caused a
NullReferenceExceptionto be thrown. When the methodMySqlPacket::ReadString()attempted to retrieve the error message, the following line of code threw the exception:string s = encoding.GetString(bits, (int)buffer.Position, end - (int)buffer.Position);This was due to the fact that the encoding field had not been initialized correctly. (Bug#46844)
In the
MySqlDataReaderclass theGetSBytefunction returned abytevalue instead of ansbytevalue. (Bug#46620)When trying to create stored procedures from a SQL script, a
MySqlExceptionwas thrown when attempting to redefine theDELIMITER:MySql.Data.MySqlClient.MySqlException was unhandled Message="You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER' at line 1" Source="MySql.Data" ErrorCode=-2147467259 Number=1064 StackTrace: à MySql.Data.MySqlClient.MySqlStream.ReadPacket() à MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) à MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() à MySql.Data.MySqlClient.MySqlDataReader.NextResult() à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() à MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() à MySql.Data.MySqlClient.MySqlScript.Execute()Note: The
MySqlScriptclass has been fixed to support the delimiter statement as it is found in SQL scripts. (Bug#46429)The MySQL Connector/NET Profile Provider,
MySql.Web.Profile.MySQLProfileProvider, generated an error when running on Mono. When an attempt was made to save a string inProfile.Namethe string was not saved to themy_aspnet_Profilestable. If an attempt was made to force the save withProfile.Save()the following error was generated:Server Error in '/mono' Application -------------------------------------------------------------------------------- The requested feature is not implemented. Description: HTTP 500. Error processing request. Stack Trace: System.NotImplementedException: The requested feature is not implemented. at MySql.Data.MySqlClient.MySqlConnection.EnlistTransaction (System.Transactions.Transaction transaction) [0x00000] at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] at MySql.Web.Profile.MySQLProfileProvider.SetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyValueCollection collection) [0x00000] -------------------------------------------------------------------------------- Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433An exception was generated when using
TIMESTAMPcolumns with the Entity Framework. (Bug#46311)MySQL Connector/NET sometimes hung, without generating an exception. This happened if a read from a stream failed returning a 0, causing the code in
LoadPacket()to enter an infinite loop. (Bug#46308)When using MySQL Connector/NET 6.0.4 and a MySQL Server 4.1 an exception was generated when trying to execute:
connection.GetSchema("Columns", ...);The exception generated was:
'connection.GetSchema("Columns")' threw an exception of type 'System.ArgumentException'System.Data.DataTable {System.ArgumentException} base{"Input string was not in a correct format.Couldn't store <'Select'> in NUMERIC_PRECISION Column. Expected type is UInt64."}System.Exception {System.ArgumentException}The MySQL Connector/NET method
StoredProcedure.GetParameters(string)ignored the programmer's setting of theUseProcedureBodiesoption. This broke any application for which the application's parameter names did not match the parameter names in the Stored Procedure, resulting in anArgumentExceptionwith the message “Parameter 'foo' not found in the collection.” and the following stack trace:MySql.Data.dll!MySql.Data.MySqlClient.MySqlParameterCollection.GetParameterFlexible(stri ng parameterName = "pStart", bool throwOnNotFound = true) Line 459C# MySql.Data.dll!MySql.Data.MySqlClient.StoredProcedure.Resolve() Line 157 + 0x25 bytesC# MySql.Data.dll!MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(System.Data.CommandBeha vior behavior = SequentialAccess) Line 405 + 0xb bytesC# MySql.Data.dll!MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(System.Data.Comma ndBehavior behavior = SequentialAccess) Line 884 + 0xb bytesC# System.Data.dll!System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(System .Data.CommandBehavior behavior) + 0xb bytes System.Data.dll!System.Data.Common.DbDataAdapter.FillInternal(System.Data.DataSet dataset = {System.Data.DataSet}, System.Data.DataTable[] datatables = null, int startRecord = 0, int maxRecords = 0, string srcTable = "Table", System.Data.IDbCommand command = {MySql.Data.MySqlClient.MySqlCommand}, System.Data.CommandBehavior behavior) + 0x83 bytes System.Data.dll!System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet dataSet, int startRecord, int maxRecords, string srcTable, System.Data.IDbCommand command, System.Data.CommandBehavior behavior) + 0x120 bytes System.Data.dll!System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet dataSet) + 0x5f bytesConversion of MySQL
TINYINT(1)tobooleanfailed. (Bug#46205, Bug#46359, Bug#41953)When populating a MySQL database table in Visual Studio using the Table Editor, if a
VARCHAR(10)column was changed to aVARCHAR(20)column an exception was generated:SystemArgumentException: DataGridViewComboBoxCell value is not valid. To replace this default dialog please handle the DataError Event.In MySQL Connector/NET 6.0.4 using
GetProcDatagenerated an error because theparametersdata table was only created if MySQL Server was at least version 6.0.6, or if theUseProcedureBodiesconnection string option was set to true.Also the
DeriveParameterscommand generated a null reference exception. This was because theparametersdata table, which was null, was used in afor eachloop. (Bug#45952)The Entity Framework provider was not calling
DBSortExpressioncorrectly when theSkipandTakemethods were used, such as in the following statement:TestModel.tblquarantine.OrderByDescending(q => q.MsgDate).Skip(100).Take(100).ToList();This resulted in the data being unsorted. (Bug#45723)
The
EscapeStringcode carried out escaping by callingstring.Replacemultiple times. This resulted in a performance bottleneck, as for every line a new string was allocated and another was disposed of by the garbage collector. (Bug#45699)Adding the
Allow Batch=Falseoption to the connection string caused MySQL Connector/NET to generate the error:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET character_set_results=NULL' at line 1The MySQL Connector/NET 6.0.4 installer failed with an error. The error message generated was:
There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor.When was clicked to acknowledge the error the installer exited. (Bug#45474)
A MySQL Connector/NET test program that connected to MySQL Server using the connection string option
compress=truecrashed, but only when running on Mono. The program worked as expected when running on Microsoft Windows.This was due to a bug in Mono. MySQL Connector/NET was modified to avoid using
WeakReferencesin theCompressedstream class, which was causing the crash. (Bug#45463)Calling the Entity Framework
SaveChanges()method of any MySQL ORM Entity with a column typeTIME, generated an error message:Unknown PrimitiveKind Time
Insert into two tables failed when using the Entity Framework. The exception generated was:
The value given is not an instance of type 'Edm.Int32'Input parameters were missing from Stored Procedures when using them with ADO.NET Data Entities. (Bug#44985)
Errors occurred when using the Entity Framework with cultures that used a comma as the decimal separator. This was because the formatting for
SINGLE,DOUBLEandDECIMALvalues was not handled correctly. (Bug#44455)When attempting to connect to MySQL using the Compact Framework version of MySQL Connector/NET, an
IndexOutOfRangeExceptionexception was generated on trying to open the connection. (Bug#43736)When reading data, such as with a
MySqlDataAdapteron aMySqlConnection, MySQL Connector/NET could potentially enter an infinite loop inCompressedStream.ReadNextpacket()if compression was enabled. (Bug#43678)An error occurred when building MySQL Connector/NET from source code checked out from the public SVN repository. This happened on Linux using Mono and Nant. The Mono JIT compiler version was 1.2.6.0. The Nant version was 0.85.
When an attempt was made to build (for example) the MySQL Connector/NET 5.2 branch using the command:
$ nant -buildfile:Client.buildThe following error occurred:
BUILD FAILED Error loading buildfile. Encoding name 'Windows-1252' not supported. Parameter name: nameAfter a Reference to "C:\Program Files\MySQL\MySQL Connector Net 5.2.4\Compact Framework\MySql.Data.CF.dll" was added to a Windows Mobile 5.0 project, the project then failed to build, generating a Microsoft Visual C# compiler error.
The error generated was:
Error 2 The type 'System.Runtime.CompilerServices.CompilerGeneratedAttribute' has no constructors defined MysqlTest Error 3 Internal Compiler Error (0xc0000005 at address 5A7E3714): likely culprit is 'COMPILE'.MySQL Connector/NET CHM documentation stated that MySQL Server 3.23 was supported. (Bug#42110)
In the case of long network inactivity, especially when connection pooling was used, connections were sometimes dropped, for example, by firewalls.
Note: The bugfix introduced a new
keepaliveparameter, which prevents disconnects by sending an empty TCP packet after a specified timeout. (Bug#40684)MySQL Connector/NET generated the following exception:
System.NullReferenceException: Object reference not set to an instance of an object. bei MySql.Data.MySqlClient.MySqlCommand.TimeoutExpired(Object commandObject) bei System.Threading._TimerCallback.TimerCallback_Context(Object state) bei System.Threading.ExecutionContext.runTryCode(Object userData) bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) bei System.Threading._TimerCallback.PerformTimerCallback(Object state)Calling a Stored Procedure with an output parameter through MySQL Connector/NET resulted in a memory leak. Calling the same Stored Procedure without an output parameter did not result in a memory leak. (Bug#36027)
Using a
DataAdapterwith a linkedMySqlCommandBuilderthe following exception was thrown when trying to callda.Update(DataRow[] rows):Connection must be valid and open
This is the first post-GA release, fixing recently discovered bugs.
Bugs fixed:
If a certain socket exception occurred when trying to establish a MySQL database connection, MySQL Connector/NET displayed an exception message that appeared to be unrelated to the underlying problem. This masked the problem and made diagnosing problems more difficult.
For example, if, when establishing a database connection via TCP/IP, Windows on the local machine allocated an ephemeral port that conflicted with a socket address still in use, then Windows/.NET would throw a socket exception with the following error text:
Only one usage of each socket address (protocol/network address/port) is normally permittedIP ADDRESS/PORT.However, MySQL Connector/NET masked this socket exception and displayed an exception with the following text:
Unable to connect to any of the specified MySQL hosts.
A SQL query string containing an escaped backslash caused an exception to be generated:
Index and length must refer to a location within the string. Parameter name: length at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at MySql.Data.MySqlClient.MySqlTokenizer.NextParameter() at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet) at MySql.Data.MySqlClient.Statement.BindParameters() at MySql.Data.MySqlClient.PreparableStatement.Execute() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()The Microsoft Visual Studio solution file
MySQL-VS2005.slnwas invalid. Several projects could not be loaded and thus it was not possible to build MySQL Connector/NET from source. (Bug#44822)The Data Set editor generated an error when attempts were made to modify insert, update or delete commands:
Error in WHERE clause near '@'. Unable to parse query text.The DataReader in MySQL Connector/NET 6.0.3 considered a BINARY(16) field as a GUID with a length of 16. (Bug#44507)
When creating a new DataSet the following error was generated:
Failed to open a connection to database. Cannot load type with name 'MySQL.Data.VisualStudio.StoredProcedureColumnEnumerator'The MySQL Connector/NET MySQLRoleProvider reported that there were no roles, even when roles existed. (Bug#44414)
MySQL Connector/NET was missing the capability to validate the server's certificate when using encryption. This made it possible to conduct a man-in-the-middle attack against the connection, which defeated the security provided by SSL. (Bug#38700)
First GA release.
Functionality added or changed:
The
MySqlTokenizerfailed to split fieldnames from values if they were not separated by a space. This also happened if the string contained certain characters. As a resultMySqlCommand.ExecuteNonQueryraised an index out of range exception.The resulting errors are illustrated by the following examples. Note, the example statements do not have delimiting spaces around the
=operator.INSERT INTO anytable SET Text='test--test';
The tokenizer incorrectly interpreted the value as containing a comment.
UPDATE anytable SET Project='123-456',Text='Can you explain this ?',Duration=15 WHERE ID=4711;'A
MySqlExceptionwas generated, as the?in the value was interpreted by the tokenizer as a parameter sign. The error message generated was:Fatal error encountered during command execution. EXCEPTION: MySqlException - Parameter '?'' must be defined.
Bugs fixed:
MySQL.Datawas not displayed as a Reference inside Microsoft Visual Studio 2008 Professional.When a new C# project was created in Microsoft Visual Studio 2008 Professional,
MySQL.Datawas not displayed when , was selected. (Bug#44141)Column types for
SchemaProviderandISSchemaProviderdid not match.When the source code in
SchemaProvider.csandISSchemaProvider.cswere compared it was apparent that they were not using the same column types. The base provider used SQL such asSHOW CREATE TABLE, whileISSchemaProviderused the schema information tables. Column types used by the base class wereINT64and the column types used byISSchemaProviderwereUNSIGNED. (Bug#44123)
This is a new development release, fixing recently discovered bugs.
Bugs fixed:
MySQL Connector/NET 6.0.1 did not load in Microsoft Visual Studio 2008 and Visual Studio 2005 Pro.
The following error message was generated:
.NET Framework Data Provider for MySQL: The data provider object factory service was not found.
This is a new Beta development release, fixing recently discovered bugs.
Bugs fixed:
An insert and update error was generated by the decimal data type in the Entity Framework, when a German collation was used. (Bug#43574)
Generating an Entity Data Model (EDM) schema with a table containing columns with data types
MEDIUMTEXTandLONGTEXTgenerated a runtime error message “Max value too long or too short for Int32”. (Bug#43480)
This is a new Alpha development release.
Bugs fixed:
A null reference exception was generated when
MySqlConnection.ClearPool(connection)was called. (Bug#42801)
Bugs fixed:
The Web Provider did not work at all on a remote host, and did not create a database when using
autogenerateschema="true". (Bug#39072)The MySQL Connector/NET installer program ended prematurely without reporting the specific error. (Bug#39019)
When called with an incorrect password the
MembershipProvider.GetPassword()method threw aMySQLExceptioninstead of aMembershipPasswordException. (Bug#38939)Possible overflow in
MySqlPacket.ReadLong(). (Bug#36997)The
TokenizeSqlmethod was adding query overhead and causing high CPU utilization for larger queries. (Bug#36836)
- C.5.5.1. Changes in MySQL Connector/NET 5.2.8 (Not yet released)
- C.5.5.2. Changes in MySQL Connector/NET 5.2.7 (15 July 2009)
- C.5.5.3. Changes in MySQL Connector/NET 5.2.6 (28 April 2009)
- C.5.5.4. Changes in MySQL Connector/NET 5.2.5 (19 November 2008)
- C.5.5.5. Changes in MySQL Connector/NET 5.2.4 (13 November 2008)
- C.5.5.6. Changes in MySQL Connector/NET 5.2.3 (19 August 2008)
- C.5.5.7. Changes in MySQL Connector/NET 5.2.2 (12 May 2008)
- C.5.5.8. Changes in MySQL Connector/NET 5.2.1 (27 February 2008)
- C.5.5.9. Changes in MySQL Connector/NET 5.2.0 (11 February 2008)
Bugs fixed:
In the
MySqlDataReaderclass theGetSBytefunction returned abytevalue instead of ansbytevalue. (Bug#46620)When trying to create stored procedures from a SQL script, a
MySqlExceptionwas thrown when attempting to redefine theDELIMITER:MySql.Data.MySqlClient.MySqlException was unhandled Message="You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER' at line 1" Source="MySql.Data" ErrorCode=-2147467259 Number=1064 StackTrace: à MySql.Data.MySqlClient.MySqlStream.ReadPacket() à MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) à MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() à MySql.Data.MySqlClient.MySqlDataReader.NextResult() à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() à MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() à MySql.Data.MySqlClient.MySqlScript.Execute()Note: The
MySqlScriptclass has been fixed to support the delimiter statement as it is found in SQL scripts. (Bug#46429)The MySQL Connector/NET Profile Provider,
MySql.Web.Profile.MySQLProfileProvider, generated an error when running on Mono. When an attempt was made to save a string inProfile.Namethe string was not saved to themy_aspnet_Profilestable. If an attempt was made to force the save withProfile.Save()the following error was generated:Server Error in '/mono' Application -------------------------------------------------------------------------------- The requested feature is not implemented. Description: HTTP 500. Error processing request. Stack Trace: System.NotImplementedException: The requested feature is not implemented. at MySql.Data.MySqlClient.MySqlConnection.EnlistTransaction (System.Transactions.Transaction transaction) [0x00000] at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] at MySql.Web.Profile.MySQLProfileProvider.SetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyValueCollection collection) [0x00000] -------------------------------------------------------------------------------- Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433When using MySQL Connector/NET 6.0.4 and a MySQL Server 4.1 an exception was generated when trying to execute:
connection.GetSchema("Columns", ...);The exception generated was:
'connection.GetSchema("Columns")' threw an exception of type 'System.ArgumentException'System.Data.DataTable {System.ArgumentException} base{"Input string was not in a correct format.Couldn't store <'Select'> in NUMERIC_PRECISION Column. Expected type is UInt64."}System.Exception {System.ArgumentException}The MySQL Connector/NET method
StoredProcedure.GetParameters(string)ignored the programmer's setting of theUseProcedureBodiesoption. This broke any application for which the application's parameter names did not match the parameter names in the Stored Procedure, resulting in anArgumentExceptionwith the message “Parameter 'foo' not found in the collection.” and the following stack trace:MySql.Data.dll!MySql.Data.MySqlClient.MySqlParameterCollection.GetParameterFlexible(stri ng parameterName = "pStart", bool throwOnNotFound = true) Line 459C# MySql.Data.dll!MySql.Data.MySqlClient.StoredProcedure.Resolve() Line 157 + 0x25 bytesC# MySql.Data.dll!MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(System.Data.CommandBeha vior behavior = SequentialAccess) Line 405 + 0xb bytesC# MySql.Data.dll!MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(System.Data.Comma ndBehavior behavior = SequentialAccess) Line 884 + 0xb bytesC# System.Data.dll!System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(System .Data.CommandBehavior behavior) + 0xb bytes System.Data.dll!System.Data.Common.DbDataAdapter.FillInternal(System.Data.DataSet dataset = {System.Data.DataSet}, System.Data.DataTable[] datatables = null, int startRecord = 0, int maxRecords = 0, string srcTable = "Table", System.Data.IDbCommand command = {MySql.Data.MySqlClient.MySqlCommand}, System.Data.CommandBehavior behavior) + 0x83 bytes System.Data.dll!System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet dataSet, int startRecord, int maxRecords, string srcTable, System.Data.IDbCommand command, System.Data.CommandBehavior behavior) + 0x120 bytes System.Data.dll!System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet dataSet) + 0x5f bytesConversion of MySQL
TINYINT(1)tobooleanfailed. (Bug#46205, Bug#46359, Bug#41953)If the application slept for longer than the specified
net_write_timeout, and then resumedReadoperations on a connection, then the application failed silently. (Bug#45978)When reading data, such as with a
MySqlDataAdapteron aMySqlConnection, MySQL Connector/NET could potentially enter an infinite loop inCompressedStream.ReadNextpacket()if compression was enabled. (Bug#43678)An error occurred when building MySQL Connector/NET from source code checked out from the public SVN repository. This happened on Linux using Mono and Nant. The Mono JIT compiler version was 1.2.6.0. The Nant version was 0.85.
When an attempt was made to build (for example) the MySQL Connector/NET 5.2 branch using the command:
$ nant -buildfile:Client.buildThe following error occurred:
BUILD FAILED Error loading buildfile. Encoding name 'Windows-1252' not supported. Parameter name: nameMySQL Connector/NET CHM documentation stated that MySQL Server 3.23 was supported. (Bug#42110)
Using a
DataAdapterwith a linkedMySqlCommandBuilderthe following exception was thrown when trying to callda.Update(DataRow[] rows):Connection must be valid and open
Bugs fixed:
The
EscapeStringcode carried out escaping by callingstring.Replacemultiple times. This resulted in a performance bottleneck, as for every line a new string was allocated and another was disposed of by the garbage collector. (Bug#45699)A MySQL Connector/NET test program that connected to MySQL Server using the connection string option
compress=truecrashed, but only when running on Mono. The program worked as expected when running on Microsoft Windows.This was due to a bug in Mono. MySQL Connector/NET was modified to avoid using
WeakReferencesin theCompressedstream class, which was causing the crash. (Bug#45463)If a certain socket exception occurred when trying to establish a MySQL database connection, MySQL Connector/NET displayed an exception message that appeared to be unrelated to the underlying problem. This masked the problem and made diagnosing problems more difficult.
For example, if, when establishing a database connection via TCP/IP, Windows on the local machine allocated an ephemeral port that conflicted with a socket address still in use, then Windows/.NET would throw a socket exception with the following error text:
Only one usage of each socket address (protocol/network address/port) is normally permittedIP ADDRESS/PORT.However, MySQL Connector/NET masked this socket exception and displayed an exception with the following text:
Unable to connect to any of the specified MySQL hosts.
The Microsoft Visual Studio solution file
MySQL-VS2005.slnwas invalid. Several projects could not be loaded and thus it was not possible to build MySQL Connector/NET from source. (Bug#44822)The MySQL Connector/NET MySQLRoleProvider reported that there were no roles, even when roles existed. (Bug#44414)
After a Reference to "C:\Program Files\MySQL\MySQL Connector Net 5.2.4\Compact Framework\MySql.Data.CF.dll" was added to a Windows Mobile 5.0 project, the project then failed to build, generating a Microsoft Visual C# compiler error.
The error generated was:
Error 2 The type 'System.Runtime.CompilerServices.CompilerGeneratedAttribute' has no constructors defined MysqlTest Error 3 Internal Compiler Error (0xc0000005 at address 5A7E3714): likely culprit is 'COMPILE'.MySQL Connector/NET generated the following exception:
System.NullReferenceException: Object reference not set to an instance of an object. bei MySql.Data.MySqlClient.MySqlCommand.TimeoutExpired(Object commandObject) bei System.Threading._TimerCallback.TimerCallback_Context(Object state) bei System.Threading.ExecutionContext.runTryCode(Object userData) bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) bei System.Threading._TimerCallback.PerformTimerCallback(Object state)When a TableAdapter was created on a DataSet, it was not possible to use a stored procedure with variables. The following error was generated:
The method or operation is not implemented
Functionality added or changed:
A new connection string option has been added:
use affected rows. Whentruethe connection will report changed rows instead of found rows. (Bug#44194)
Bugs fixed:
Calling
GetSchema()onIndexesorIndexColumnsfailed where index or column names were restricted.In
SchemaProvider.cs, methodsGetIndexes()andGetIndexColumns()passed their restrictions directly toGetTables(). This only worked if the restrictions were no more specific thanschemaNameandtableName. IfIndexNamewas given, this was passed toGetTables()where it was treated asTableType. As a result no tables were returned, unless the index name happened to beBASE TABLEorVIEW. This meant that both methods failed to return any rows. (Bug#43991)GetSchema("MetaDataCollections")should have returned a table with a column named “NumberOfRestrictions” not “NumberOfRestriction”.This can be confirmed by referencing the Microsoft Documentation. (Bug#43990)
Requests sent to the MySQL Connector/NET role provider to remove a user from a role failed. The query log showed the query was correctly executed within a transaction which was immediately rolled back. The rollback was caused by a missing call to the
Completemethod of the transaction. (Bug#43553)When using
MySqlBulkLoader.Load(), the text file is opened byNativeDriver.SendFileToServer. If it encountered a problem opening the file as a stream, an exception was generated and caught. An attempt to clean up resources was then made in thefinally{}clause by callingfs.Close(), but since the stream was never successfully opened, this was an attempt to execute a method of a null reference. (Bug#43332)A null reference exception was generated when
MySqlConnection.ClearPool(connection)was called. (Bug#42801)MySQLMembershipProvider.ValidateUseronly used theuserIdto validate. However, it should also use theapplicationIdto perform the validation correctly.The generated query was, for example:
SELECT Password, PasswordKey, PasswordFormat, IsApproved, Islockedout FROM my_aspnet_Membership WHERE userId=13Note that
applicationIdis not used. (Bug#42574)There was an error in the
ProfileProviderclass in theprivate ProfileInfoCollection GetProfiles()function. The column of the final table was named “lastUpdatdDate” ('e' is missing) instead of the correct “lastUpdatedDate”. (Bug#41654)The
GetGuid()method ofMySqlDataReaderdid not treatBINARY(16)column data as a GUID. When operating on such a column aFormatExceptionexception was generated. (Bug#41452)When ASP.NET membership was configured to not require password question and answer using
requiresQuestionAndAnswer="false", aSqlNullValueExceptionwas generated when usingMembershipUser.ResetPassword()to reset the user password. (Bug#41408)If a
Stored Procedurecontained spaces in its parameter list, and was then called from MySQL Connector/NET, an exception was generated. However, the sameStored Procedurecalled from the MySQL Query Analyzer or the MySQL Client worked correctly.The exception generated was:
Parameter '0' not found in the collection.The
DATETIMEformat contained an erroneous space. (Bug#41021)When
MySql.Web.Profile.MySQLProfileProviderwas configured, it was not possible to assign a name other than the default nameMySQLProfileProvider.If the name
SCC_MySQLProfileProviderwas assigned, an exception was generated when attempting to usePage.Context.Profile['custom prop'].The exception generated was:
The profile default provider was not found.
Note that the exception stated: 'the profile default provider...', even though a different name was explicitly requested. (Bug#40871)
When
ExecuteNonQuerywas called with a command type ofStored Procedureit worked for one user but resulted in a hang for another user with the same database permissions.However, if
CALLwas used in the command text andExecuteNonQuerywas used with a command type ofText, the call worked for both users. (Bug#40139)
Bugs fixed:
Visual Studio 2008 displayed the following error three times on start-up:
"Package Load Failure Package 'MySql.Data.VisualStudio.MySqlDataProviderPackage, MySql.VisualStudio, Version=5.2.4, Culture=neutral, PublicKeyTopen=null' has failed to load properly (GUID = {79A115C9-B133-4891-9E7B-242509DAD272}). Please contact the package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading the package in the future? You may use 'devenve/resetskippkgs' to re-enable package loading."
Bugs fixed:
MySqlDataReaderdid not feature aGetSBytemethod. (Bug#40571)When working with stored procedures MySQL Connector/NET generated an exception
Unknown "table parameters" in information_schema. (Bug#40382)GetDefaultCollationandGetMaxLengthwere not thread safe. These functions called the database to get a set of parameters and cached them in two static dictionaries in the functionInitCollections. However, if many threads called them they would try to insert the same keys in the collections resulting in duplicate key exceptions. (Bug#40231)If connection pooling was not set explicitly in the connection string, MySQL Connector/NET added “;Pooling=False” to the end of the connection string when
MySqlCommand.ExecuteReader()was called.If connection pooling was explicitly set in the connection string, when
MySqlConnection.Open()was called it converted “Pooling=True” to “pooling=True”.If
MySqlCommand.ExecuteReader()was subsequently called, it concatenated “;Pooling=False” to the end of the connection string. The resulting connection string was thus terminated with “pooling=True;Pooling=False”. This disabled connection pooling completely. (Bug#40091)The connection string option
Functions Return Stringdid not set the correct encoding for the result string. Even though the connection string optionFunctions Return String=true;is set, the result ofSELECT DES_DECRYPT()contained “??” instead of the correct national character symbols. (Bug#40076)If, when using the
MySqlTransactiontransaction object, an exception was thrown, the transaction object was not disposed of and the transaction was not rolled back. (Bug#39817)After the
ConnectionStringproperty was initialized via the public setter ofDbConnectionStringBuilder, theGetConnectionStringmethod ofMySqlConnectionStringBuilderincorrectly returnednullwhentruewas assigned to theincludePassparameter. (Bug#39728)When using
ProfileProvider, attempting to update a previously saved property failed. (Bug#39330)Reading a negative time value greater than -01:00:00 returned the absolute value of the original time value. (Bug#39294)
Inserting a negative time value (negative
TimeSpan) into aTimecolumn through the use ofMySqlParametercausedMySqlExceptionto be thrown. (Bug#39275)When a data connection was created in the server explorer of Visual Studio 2008 Team, an error was generated when trying to expand stored procedures that had parameters.
Also, if TableAdapter was right-clicked and then , , selected, if you then attempted to select a stored procedure, the window would close and no error message would be displayed. (Bug#39252)
The Web Provider did not work at all on a remote host, and did not create a database when using
autogenerateschema="true". (Bug#39072)MySQL Connector/NET called hashed password methods not supported in Mono 2.0 Preview 2. (Bug#38895)
Functionality added or changed:
Error string was returned after a 28000 second
wait_timeout. This has been changed to generate aConnectionState.Closedevent. (Bug#38119)Changed how the procedure schema collection is retrieved. If the connection string contains “
use procedure bodies=true” then aSELECTis performed on themysql.proctable directly, as this is up to 50 times faster than the current Information Schema implementation. If the connection string contains “use procedure bodies=false”, then the Information Schema collection is queried. (Bug#36694)Changed how the procedure schema collection is retrieved. If
use procedure bodies=truethen themysql.proctable is selected directly as this is up to 50 times faster than the currentinformation_schemaimplementation. Ifuse procedure bodies=false, then theinformation_schemacollection is queried. (Bug#36694)String escaping functionality has been moved from the
MySqlStringclass to theMySqlHelperclass, where it can be accessed by theEscapeStringmethod. (Bug#36205)
Bugs fixed:
The
GetOrdinal()method failed to return the ordinal if the column name string contained an accent. (Bug#38721)MySQL Connector/NET uninstaller did not clean up all installed files. (Bug#38534)
There was a short circuit evaluation error in the
MySqlCommand.CheckState()method. When the statementconnection == nullwas true aNullReferenceExceptionwas thrown and not the expectedInvalidOperationException. (Bug#38276)The provider did not silently create the user if the user did not exist. (Bug#38243)
Executing a command that resulted in a fatal exception did not close the connection. (Bug#37991)
When a prepared insert query is run that contains an
UNSIGNED TINYINTin the parameter list, the complete query and data that should be inserted is corrupted and no error is thrown. (Bug#37968)In a .NET application MySQL Connector/NET modifies the connection string so that it contains several occurrences of the same option with different values. This is illustrated by the example that follows.
The original connection string:
host=localhost;database=test;uid=*****;pwd=*****; connect timeout=25; auto enlist=false;pooling=false;The connection string after after closing
MySqlDataReader:host=localhost;database=test;uid=*****;pwd=*****; connect timeout=25;auto enlist=false;pooling=false; Allow User Variables=True;Allow User Variables=False; Allow User Variables=True;Allow User Variables=False;Unnecessary network traffic was generated for the normal case where the web provider schema was up to date. (Bug#37469)
MySqlReader.GetOrdinal()performance enhancements break existing functionality. (Bug#37239)The
autogenerateschemaoption produced tables with incorrect collations. (Bug#36444)GetSchemadid not work correctly when querying for a collection, if using a non-English locale. (Bug#35459)When reading back a stored double or single value using the .NET provider, the value had less precision than the one stored. (Bug#33322)
Using the MySQL Visual Studio plugin and a MySQL 4.1 server, certain field types (
ENUM) would not be identified correctly. Also, when looking for tables, the plugin would list all tables matching a wildcard pattern of the database name supplied in the connection string, instead of only tables within the specified database. (Bug#30603)
Bugs fixed:
Product documentation incorrectly stated '?' is the preferred parameter marker. (Bug#37349)
An incorrect value for a bit field would returned in a multi-row query if a preceding value for the field returned
NULL. (Bug#36313)Tables with
GEOMETRYfield types would return an unknown datatype exception. (Bug#36081)When using the
MySQLProfileProvider, setting profile details and then reading back saved data would result in the default values being returned instead of the updated values. (Bug#36000)When creating a connection, setting the
ConnectionStringproperty ofMySqlConnectiontoNULLwould throw an exception. (Bug#35619)The
DbCommandBuilder.QuoteIdentifermethod was not implemented. (Bug#35492)When using encrypted passwords, the
GetPassword()function would return the wrong string. (Bug#35336)An error would be raised when calling
GetPassword()with aNULLvalue. (Bug#35332)When retreiving data where a field has been identified as containing a GUID value, the incorrect value would be returned when a previous row contained a
NULLvalue for that field. (Bug#35041)Using the
TableAdapter Wizardwould fail when generating commands that used stored procedures due to the change in supported parameter characters. (Bug#34941)When creating a new stored procedured, the new parameter code which allows the use of the
@symbol would interfere with the specification of aDEFINER. (Bug#34940)When using
SqlDataSourceto open a connection, the connection would not automatically be closed when access had completed. (Bug#34460)There was a high level of contention in the connection pooling code that could lead to delays when opening connections and submitting queries. The connection pooling code has been modified to try and limit the effects of the contention issue. (Bug#34001)
Using the
TableAdaptorwizard in combination with a suitableSELECTstatement, only the associatedINSERTstatement would also be created, rather than the requiredDELETEandUPDATEstatements. (Bug#31338)Fixed problem in datagrid code related to creating a new table. This problem may have been introduced with .NET 2.0 SP1.
Fixed profile provider that would throw an exception if you were updating a profile that already existed.
Bugs fixed:
When using the provider to generate or update users and passwords, the password checking algorithm would not validate the password strength or requirements correctly. (Bug#34792)
When executing statements that used stored procedures and functions, the new parameter code could fail to identify the correct parameter format. (Bug#34699)
The installer would fail to the DDEX provider binary if the Visual Studio 2005 component was not selected. The result would lead to MySQL Connector/NET not loading properly when using the interface to a MySQL server within Visual Studio. (Bug#34674)
A number issues were identified in the case, connection and scema areas of the code for
MembershipProvider,RoleProvider,ProfileProvider. (Bug#34495)When using web providers, the MySQL Connector/NET would check the schema and cache the application id, even when the connection string had been set. The effect would be to break the memvership provider list. (Bug#34451)
Attempting to use an isolation level other than the default with a transaction scope would use the default isolation level. (Bug#34448)
When altering a stored procedure within Visual Studio, the parameters to the procedure could be lost. (Bug#34359)
A race condition could occur within the procedure cache resulting the cache contents overflowing beyond the configured cache size. (Bug#34338)
Fixed problem with Visual Studio 2008 integration that caused pop-up menus on server explorer nodes to not function
The provider code has been updated to fix a number of outstanding issues.
Functionality added or changed:
Performing
GetValue()on a fieldTINYINT(1)returned aBOOLEAN. While not a bug, this caused problems in software that expected anINTto be returned. A new connection string optionTreat Tiny As Booleanhas been added with a default value oftrue. If set tofalsethe provider will treatTINYINT(1)asINT. (Bug#34052)Added support for
DbDataAdapterUpdateBatchSize. Batching is fully supported including collapsing inserts down into the multi-value form if possible.DDEX provider now works under Visual Studio 2008 beta 2.
Added ClearPool and ClearAllPools features.
Bugs fixed:
Some speed improvements have been implemented in the
TokenizeSqlprocess used to identify elements of SQL statements. (Bug#34220)When accessing tables from different databases within the same
TransactionScope, the same user/password combination would be used for each database connection. MySQL Connector/NET does not handle multiple connections within the same transaction scope. An error is now returned if you attempt this process, instead of using the incorrect authorization information. (Bug#34204)The status of connections reported through the state change handler was not being updated correctly. (Bug#34082)
Incorporated some connection string cache optimizations sent to us by Maxim Mass. (Bug#34000)
In an open connection where the server had disconnected unexpectedly, the status information of the connection would not be updated properly. (Bug#33909)
Data cached from the connection string could return invalid information because the internal routines were not using case-sensitive semantics. This lead to updated connection string options not being recognized if they were of a different case than the existing cached values. (Bug#31433)
Column name metadata was not using the character set as deifned within the connection string being used. (Bug#31185)
Memory usage could increase and decrease significantly when updating or inserting a large number of rows. (Bug#31090)
Commands executed from within the state change handeler would fail with a
NULLexception. (Bug#30964)When running a stored procedure multiple times on the same connection, the memory usage could increase indefinitely. (Bug#30116)
Using compression in the MySQL connection with MySQL Connector/NET would be slower than using native (uncompressed) communication. (Bug#27865)
The
MySqlDbType.Datetimehas been replaced withMySqlDbType.DateTime. The old format has been obsoleted. (Bug#26344)
- C.5.6.1. Changes in MySQL Connector/NET 5.1.8 (Not yet released)
- C.5.6.2. Changes in MySQL Connector/NET 5.1.7 (21 August 2008)
- C.5.6.3. Changes in MySQL Connector/NET 5.1.6 (12 May 2008)
- C.5.6.4. Changes in MySQL Connector/NET 5.1.5 (Not yet released)
- C.5.6.5. Changes in MySQL Connector/NET 5.1.4 (20 November 2007)
- C.5.6.6. Changes in MySQL Connector/NET 5.1.3 (21 September 2007 beta)
- C.5.6.7. Changes in MySQL Connector/NET 5.1.2 (18 June 2007)
- C.5.6.8. Changes in MySQL Connector/NET 5.1.1 (23 May 2007)
- C.5.6.9. Changes in MySQL Connector/NET 5.1.0 (01 May 2007)
Bugs fixed:
Calling
GetSchema()onIndexesorIndexColumnsfailed where index or column names were restricted.In
SchemaProvider.cs, methodsGetIndexes()andGetIndexColumns()passed their restrictions directly toGetTables(). This only worked if the restrictions were no more specific thanschemaNameandtableName. IfIndexNamewas given, this was passed toGetTables()where it was treated asTableType. As a result no tables were returned, unless the index name happened to beBASE TABLEorVIEW. This meant that both methods failed to return any rows. (Bug#43991)The
DATETIMEformat contained an erroneous space. (Bug#41021)If connection pooling was not set explicitly in the connection string, MySQL Connector/NET added “;Pooling=False” to the end of the connection string when
MySqlCommand.ExecuteReader()was called.If connection pooling was explicitly set in the connection string, when
MySqlConnection.Open()was called it converted “Pooling=True” to “pooling=True”.If
MySqlCommand.ExecuteReader()was subsequently called, it concatenated “;Pooling=False” to the end of the connection string. The resulting connection string was thus terminated with “pooling=True;Pooling=False”. This disabled connection pooling completely. (Bug#40091)MySQL Connector/NET generated the following exception:
System.NullReferenceException: Object reference not set to an instance of an object. bei MySql.Data.MySqlClient.MySqlCommand.TimeoutExpired(Object commandObject) bei System.Threading._TimerCallback.TimerCallback_Context(Object state) bei System.Threading.ExecutionContext.runTryCode(Object userData) bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) bei System.Threading._TimerCallback.PerformTimerCallback(Object state)If, when using the
MySqlTransactiontransaction object, an exception was thrown, the transaction object was not disposed of and the transaction was not rolled back. (Bug#39817)When a prepared insert query is run that contains an
UNSIGNED TINYINTin the parameter list, the complete query and data that should be inserted is corrupted and no error is thrown. (Bug#37968)Calling
MySqlDataAdapter.FillSchemaon aSELECTstatement that referred to a table that did not exist left the connection in a bad state. After this call, allSELECTstatements returned an empty result set. If theSELECTstatement referred to a table that did exist then everything worked as expected. (Bug#30518)
Bugs fixed:
There was a short circuit evaluation error in the
MySqlCommand.CheckState()method. When the statementconnection == nullwas true aNullReferenceExceptionwas thrown and not the expectedInvalidOperationException. (Bug#38276)Executing a command that resulted in a fatal exception did not close the connection. (Bug#37991)
In a .NET application MySQL Connector/NET modifies the connection string so that it contains several occurrences of the same option with different values. This is illustrated by the example that follows.
The original connection string:
host=localhost;database=test;uid=*****;pwd=*****; connect timeout=25; auto enlist=false;pooling=false;The connection string after after closing
MySqlDataReader:host=localhost;database=test;uid=*****;pwd=*****; connect timeout=25;auto enlist=false;pooling=false; Allow User Variables=True;Allow User Variables=False; Allow User Variables=True;Allow User Variables=False;As
MySqlDbType.DateTimeis not available inVB.Netthe warning The datetime enum value is obsolete was always shown during compilation. (Bug#37406)An unknown
MySqlErrorCodewas encountered when opening a connection with an incorrect password. (Bug#37398)Documentation incorrectly stated that “the DataColumn class in .NET 1.0 and 1.1 does not allow columns with type of UInt16, UInt32, or UInt64 to be autoincrement columns”. (Bug#37350)
SemaphoreFullExceptionis generated when application is closed. (Bug#36688)GetSchemadid not work correctly when querying for a collection, if using a non-English locale. (Bug#35459)When reading back a stored double or single value using the .NET provider, the value had less precision than the one stored. (Bug#33322)
Using the MySQL Visual Studio plugin and a MySQL 4.1 server, certain field types (
ENUM) would not be identified correctly. Also, when looking for tables, the plugin would list all tables matching a wildcard pattern of the database name supplied in the connection string, instead of only tables within the specified database. (Bug#30603)
Bugs fixed:
When creating a connection pool, specifying an invalid IP address will cause the entire application to crash, instead of providing an exception. (Bug#36432)
An incorrect value for a bit field would returned in a multi-row query if a preceding value for the field returned
NULL. (Bug#36313)The
MembershipProviderwill raise an exception when the connection string is configured withenablePasswordRetrival = trueandRequireQuestionAndAnswer = false. (Bug#36159)When calling
GetNumberOfUsersOnlinean exception is raised on the submitted query due to a missing parameter. (Bug#36157)Tables with
GEOMETRYfield types would return an unknown datatype exception. (Bug#36081)When creating a connection, setting the
ConnectionStringproperty ofMySqlConnectiontoNULLwould throw an exception. (Bug#35619)The
DbCommandBuilder.QuoteIdentifermethod was not implemented. (Bug#35492)When using
SqlDataSourceto open a connection, the connection would not automatically be closed when access had completed. (Bug#34460)Attempting to use an isolation level other than the default with a transaction scope would use the default isolation level. (Bug#34448)
When altering a stored procedure within Visual Studio, the parameters to the procedure could be lost. (Bug#34359)
A race condition could occur within the procedure cache resulting the cache contents overflowing beyond the configured cache size. (Bug#34338)
Using the
TableAdaptorwizard in combination with a suitableSELECTstatement, only the associatedINSERTstatement would also be created, rather than the requiredDELETEandUPDATEstatements. (Bug#31338)
Functionality added or changed:
Performing
GetValue()on a fieldTINYINT(1)returned aBOOLEAN. While not a bug, this caused problems in software that expected anINTto be returned. A new connection string optionTreat Tiny As Booleanhas been added with a default value oftrue. If set tofalsethe provider will treatTINYINT(1)asINT. (Bug#34052)
Bugs fixed:
Some speed improvements have been implemented in the
TokenizeSqlprocess used to identify elements of SQL statements. (Bug#34220)When accessing tables from different databases within the same
TransactionScope, the same user/password combination would be used for each database connection. MySQL Connector/NET does not handle multiple connections within the same transaction scope. An error is now returned if you attempt this process, instead of using the incorrect authorization information. (Bug#34204)The status of connections reported through the state change handler was not being updated correctly. (Bug#34082)
Incorporated some connection string cache optimizations sent to us by Maxim Mass. (Bug#34000)
In an open connection where the server had disconnected unexpectedly, the status information of the connection would not be updated properly. (Bug#33909)
MySQL Connector/NET would fail to compile properly with nant. (Bug#33508)
Problem with membership provider would mean that
FindUserByEmailwould fail with aMySqlExceptionbecause it was trying to add a second parameter with the same name as the first. (Bug#33347)Using compression in the MySQL connection with MySQL Connector/NET would be slower than using native (uncompressed) communication. (Bug#27865)
Bugs fixed:
Setting the size of a string parameter after the value could cause an exception. (Bug#32094)
Creation of parameter objects with noninput direction using a constructor would fail. This was cause by some old legacy code preventing their use. (Bug#32093)
A date string could be returned incorrectly by
MySqlDataTime.ToString()when the date returned by MySQL was0000-00-00 00:00:00. (Bug#32010)A syntax error in a set of batch statements could leave the data adapter in a state that appears hung. (Bug#31930)
Installing over a failed uninstall of a previous version could result in multiple clients being registered in the
machine.config. This would prevent certain aspects of the MySQL connection within Visual Studio to work properly. (Bug#31731)MySQL Connector/NET would incorrectly report success when enlisting in a distributed transaction, although distributed transactions are not supported. (Bug#31703)
Data cached from the connection string could return invalid information because the internal routines were not using case-sensitive semantics. This lead to updated connection string options not being recognized if they were of a different case than the existing cached values. (Bug#31433)
Trying to use a connection that was not open could return an ambiguous and misleading error message. (Bug#31262)
Column name metadata was not using the character set as deifned within the connection string being used. (Bug#31185)
Memory usage could increase and decrease significantly when updating or inserting a large number of rows. (Bug#31090)
Commands executed from within the state change handeler would fail with a
NULLexception. (Bug#30964)Extracting data through XML functions within a query returns the data as
System.Byte[]. This was due to MySQL Connector/NET incorrectly identifyingBLOBfields as binary, rather than text. (Bug#30233)When running a stored procedure multiple times on the same connection, the memory usage could increase indefinitely. (Bug#30116)
Column types with only 1-bit (such as
BOOLEANandTINYINT(1)were not returned as boolean fields. (Bug#27959)When accessing certain statements, the command would timeout before the command completed. Because this cannot always be controlled through the individual command timeout options, a
default command timeouthas been added to the connection string options. (Bug#27958)The server error code was not updated in the
Data[]hash, which preventedDbProviderFactoryusers from accessing the server error code. (Bug#27436)The
MySqlDbType.Datetimehas been replaced withMySqlDbType.DateTime. The old format has been obsoleted. (Bug#26344)Changing the connection string of a connection to one that changes the parameter marker after the connection had been assigned to a command but before the connection is opened could cause parameters to not be found. (Bug#13991)
This is a new Beta development release, fixing recently discovered bugs.
Bugs fixed:
An incorrect
ConstraintExceptioncould be raised on anINSERTwhen adding rows to a table with a multiple-column unique key index. (Bug#30204)A
DATEfield would be updated with a date/time value, causing aMySqlDataAdapter.Update()exception. (Bug#30077)The Saudi Hijri calendar was not supported. (Bug#29931)
Calling
SHOW CREATE PROCEDUREfor routines with a hyphen in the catalog name produced a syntax error. (Bug#29526)Connecting to a MySQL server earlier than version 4.1 would raise a
NullException. (Bug#29476)The availability of a MySQL server would not be reset when using pooled connections (
pooling=true). This would lead to the server being reported as unavailable, even if the server become available while the application was still running. (Bug#29409)A
FormatExceptionerror would be raised if a parameter had not been found, instead ofResources.ParameterMustBeDefined. (Bug#29312)An exception would be thrown when using the Manage Role functionality within the web administrator to assign a role to a user. (Bug#29236)
Using the membership/role providers when
validationKeyordecryptionKeyparameters are set toAutoGenerate, an exception would be raised when accessing the corresponding values. (Bug#29235)Certain operations would not check the
UsageAdvisorsetting, causing log messages from the Usage Advisor even when it was disabled. (Bug#29124)Using the same connection string multiple times would result in
Database=appearing multiple times in the resulting string. (Bug#29123)dbnameVisual Studio Plugin: Adding a new query based on a stored procedure that uses the
SELECTstatement would terminate the query/TableAdapter wizard. (Bug#29098)Using
TransactionScopewould cause anInvalidOperationException. (Bug#28709)
This is a new Beta development release, fixing recently discovered bugs.
Bugs fixed:
Log messages would be truncated to 300 bytes. (Bug#28706)
Creating a user would fail due to the application name being set incorrectly. (Bug#28648)
Visual Studio Plugin: Adding a new query based on a stored procedure that used a
UPDATE,INSERTorDELETEstatement would terminate the query/TableAdapter wizard. (Bug#28536)Visual Studio Plugin: Query Builder would fail to show
TINYTEXTcolumns, and any columns listed after aTINYTEXTcolumn correctly. (Bug#28437)Accessing the results from a large query when using data compression in the connection would fail to return all the data. (Bug#28204)
Visual Studio Plugin: Update commands would not be generated correctly when using the TableAdapter wizard. (Bug#26347)
Bugs fixed:
Running the statement
SHOW PROCESSLISTwould return columns as byte arrays instead of native columns. (Bug#28448)Installation of the MySQL Connector/NET on Windows would fail if VisualStudio had not already been installed. (Bug#28260)
MySQL Connector/NET would look for the wrong table when executing
User.IsRole().(Bug#28251)Building a connection string within a tight loop would show slow performance. (Bug#28167)
The
UNSIGNEDflag for parameters in a stored procedure would be ignored when usingMySqlCommandBuilderto obtain the parameter information. (Bug#27679)Using
MySQLDataAdapter.FillSchema()on a stored procedure would raise an exception:Invalid attempt to access a field before calling Read(). (Bug#27668)DATETIMEfields from versions of MySQL bgefore 4.1 would be incorrectly parsed, resulting in a exception. (Bug#23342)Fixed password property on
MySqlConnectionStringBuilderto usePasswordPropertyTextattribute. This causes dots to show instead of actual password text.
Functionality added or changed:
Now compiles for .NET CF 2.0.
Rewrote stored procedure parsing code using a new SQL tokenizer. Really nasty procedures including nested comments are now supported.
GetSchema will now report objects relative to the currently selected database. What this means is that passing in null as a database restriction will report objects on the currently selected database only.
Added Membership and Role provider contributed by Sean Wright (thanks!).
- C.5.7.1. Changes in MySQL Connector/NET 5.0.10 (Not yet released)
- C.5.7.2. Changes in MySQL Connector/NET 5.0.9 (Not yet released)
- C.5.7.3. Changes in MySQL Connector/NET 5.0.8 (21 August 2007)
- C.5.7.4. Changes in MySQL Connector/NET 5.0.7 (18 May 2007)
- C.5.7.5. Changes in MySQL Connector/NET 5.0.6 (22 March 2007)
- C.5.7.6. Changes in MySQL Connector/NET 5.0.5 (07 March 2007)
- C.5.7.7. Changes in MySQL Connector/NET 5.0.4 (Not released)
- C.5.7.8. Changes in MySQL Connector/NET 5.0.3 (05 January 2007)
- C.5.7.9. Changes in MySQL Connector/NET 5.0.2 (06 November 2006)
- C.5.7.10. Changes in MySQL Connector/NET 5.0.1 (01 October 2006)
- C.5.7.11. Changes in MySQL Connector/NET 5.0.0 (08 August 2006)
Bugs fixed:
If, when using the
MySqlTransactiontransaction object, an exception was thrown, the transaction object was not disposed of and the transaction was not rolled back. (Bug#39817)Executing a command that resulted in a fatal exception did not close the connection. (Bug#37991)
When a prepared insert query is run that contains an
UNSIGNED TINYINTin the parameter list, the complete query and data that should be inserted is corrupted and no error is thrown. (Bug#37968)In a .NET application MySQL Connector/NET modifies the connection string so that it contains several occurrences of the same option with different values. This is illustrated by the example that follows.
The original connection string:
host=localhost;database=test;uid=*****;pwd=*****; connect timeout=25; auto enlist=false;pooling=false;The connection string after after closing
MySqlDataReader:host=localhost;database=test;uid=*****;pwd=*****; connect timeout=25;auto enlist=false;pooling=false; Allow User Variables=True;Allow User Variables=False; Allow User Variables=True;Allow User Variables=False;When creating a connection pool, specifying an invalid IP address will cause the entire application to crash, instead of providing an exception. (Bug#36432)
GetSchemadid not work correctly when querying for a collection, if using a non-English locale. (Bug#35459)When reading back a stored double or single value using the .NET provider, the value had less precision than the one stored. (Bug#33322)
Bugs fixed:
The
DbCommandBuilder.QuoteIdentifermethod was not implemented. (Bug#35492)Setting the size of a string parameter after the value could cause an exception. (Bug#32094)
Creation of parameter objects with noninput direction using a constructor would fail. This was cause by some old legacy code preventing their use. (Bug#32093)
A date string could be returned incorrectly by
MySqlDataTime.ToString()when the date returned by MySQL was0000-00-00 00:00:00. (Bug#32010)A syntax error in a set of batch statements could leave the data adapter in a state that appears hung. (Bug#31930)
Installing over a failed uninstall of a previous version could result in multiple clients being registered in the
machine.config. This would prevent certain aspects of the MySQL connection within Visual Studio to work properly. (Bug#31731)Data cached from the connection string could return invalid information because the internal routines were not using case-sensitive semantics. This lead to updated connection string options not being recognized if they were of a different case than the existing cached values. (Bug#31433)
Column name metadata was not using the character set as deifned within the connection string being used. (Bug#31185)
Memory usage could increase and decrease significantly when updating or inserting a large number of rows. (Bug#31090)
Commands executed from within the state change handeler would fail with a
NULLexception. (Bug#30964)When running a stored procedure multiple times on the same connection, the memory usage could increase indefinitely. (Bug#30116)
The server error code was not updated in the
Data[]hash, which preventedDbProviderFactoryusers from accessing the server error code. (Bug#27436)Changing the connection string of a connection to one that changes the parameter marker after the connection had been assigned to a command but before the connection is opened could cause parameters to not be found. (Bug#13991)
Note
This version introduces a new installer technology.
Bugs fixed:
Extracting data through XML functions within a query returns the data as
System.Byte[]. This was due to MySQL Connector/NET incorrectly identifyingBLOBfields as binary, rather than text. (Bug#30233)An incorrect
ConstraintExceptioncould be raised on anINSERTwhen adding rows to a table with a multiple-column unique key index. (Bug#30204)A
DATEfield would be updated with a date/time value, causing aMySqlDataAdapter.Update()exception. (Bug#30077)Fixed bug where MySQL Connector/NET was hand building some date time patterns rather than using the patterns provided under CultureInfo. This caused problems with some calendars that do not support the same ranges as Gregorian.. (Bug#29931)
Calling
SHOW CREATE PROCEDUREfor routines with a hyphen in the catalog name produced a syntax error. (Bug#29526)The availability of a MySQL server would not be reset when using pooled connections (
pooling=true). This would lead to the server being reported as unavailable, even if the server become available while the application was still running. (Bug#29409)A
FormatExceptionerror would be raised if a parameter had not been found, instead ofResources.ParameterMustBeDefined. (Bug#29312)Certain operations would not check the
UsageAdvisorsetting, causing log messages from the Usage Advisor even when it was disabled. (Bug#29124)Using the same connection string multiple times would result in
Database=appearing multiple times in the resulting string. (Bug#29123)dbnameLog messages would be truncated to 300 bytes. (Bug#28706)
Accessing the results from a large query when using data compression in the connection will fail to return all the data. (Bug#28204)
Fixed problem where
MySqlConnection.BeginTransactionchecked the drivers status var before checking if the connection was open. The result was that the driver could report an invalid condition on a previously opened connection.Fixed problem where we were not closing prepared statement handles when commands are disposed. This could lead to using up all prepared statement handles on the server.
Fixed the database schema collection so that it works on servers that are not properly respecting the
lower_case_table_namessetting.Fixed problem where any attempt to not read all the records returned from a select where each row of the select is greater than 1024 bytes would hang the driver.
Fixed problem where a command timing out just after it actually finished would cause an exception to be thrown on the command timeout thread which would then be seen as an unhandled exception.
Fixed some serious issues with command timeout and cancel that could present as exceptions about thread ownership. The issue was that not all queries cancel the same. Some produce resultsets while others don't. ExecuteReader had to be changed to check for this.
Bugs fixed:
Running the statement
SHOW PROCESSLISTwould return columns as byte arrays instead of native columns. (Bug#28448)Building a connection string within a tight loop would show slow performance. (Bug#28167)
Using logging (with the
logging=trueparameter to the connection string) would not generate a log file. (Bug#27765)The
UNSIGNEDflag for parameters in a stored procedure would be ignored when usingMySqlCommandBuilderto obtain the parameter information. (Bug#27679)Using
MySQLDataAdapter.FillSchema()on a stored procedure would raise an exception:Invalid attempt to access a field before calling Read(). (Bug#27668)If you close an open connection with an active transaction, the transaction is not automatically rolled back. (Bug#27289)
When cloning an open
MySqlClient.MySqlConnectionwith thePersist Security Info=Falseoption set, the cloned connection is not usable because the security information has not been cloned. (Bug#27269)Enlisting a null transaction would affect the current connection object, such that further enlistment operations to the transaction are not possible. (Bug#26754)
Attempting to change the
Connection Protocolproperty within aPropertyGridcontrol would raise an exception. (Bug#26472)The
charactersetproperty would not be identified during a connection (also affected Visual Studion Plugin). (Bug#26147, Bug#27240)The
CreateFormatcolumn of theDataTypescollection did not contain a format specification for creating a new column type. (Bug#25947)DATETIMEfields from versions of MySQL bgefore 4.1 would be incorrectly parsed, resulting in a exception. (Bug#23342)
Bugs fixed:
Publisher listed in "Add/Remove Programs" is not consistent with other MySQL products. (Bug#27253)
DESCRIBE ....SQL statement returns byte arrays rather than data on MySQL versions older than 4.1.15. (Bug#27221)cmd.Parameters.RemoveAt("Id")will cause an error if the last item is requested. (Bug#27187)MySqlParameterCollectionand parameters added withInsertmethod can not be retrieved later usingParameterName. (Bug#27135)Exception thrown when using large values in
UInt64parameters. (Bug#27093)MySQL Visual Studio Plugin 1.1.2 does not work with MySQL Connector/NET 5.0.5. (Bug#26960)
Functionality added or changed:
Reverted behavior that required parameter names to start with the parameter marker. We apologize for this back and forth but we mistakenly changed the behavior to not match what
SqlClientsupports. We now support using either syntax for adding parameters however we also respond exactly likeSqlClientin that if you ask for the index of a parameter using a syntax different from when you added the parameter, the result will be -1.Assembly now properly appears in the Visual Studio 2005 Add/Remove Reference dialog.
Fixed problem that prevented use of
SchemaOnlyorSingleRowcommand behaviors with stored procedures or prepared statements.Added
MySqlParameterCollection.AddWithValueand marked theAdd(name, value)method as obsolete.Return parameters created with DeriveParameters now have the name
RETURN_VALUE.Fixed problem with parameter name hashing where the hashes were not getting updated when parameters were removed from the collection.
Fixed problem with calling stored functions when a return parameter was not given.
Added
Use Procedure Bodiesconnection string option to allow calling procedures without using procedure metadata.
Bugs fixed:
MySqlConnection.GetSchemafails withNullReferenceExceptionfor Foreign Keys. (Bug#26660)MySQL Connector/NET would fail to install under Windows Vista. (Bug#26430)
Opening a connection would be slow due to host name lookup. (Bug#26152)
Incorrect values/formats would be applied when the
OldSyntaxconnection string option was used. (Bug#25950)Registry would be incorrectly populated with installation locations. (Bug#25928)
Times with negative values would be returned incorrectly. (Bug#25912)
Returned data types of a
DataTypescollection do not contain the right correctl CLR Datatype. (Bug#25907)GetSchemaandDataTypeswould throw an exception due to an incorrect table name. (Bug#25906)MySqlConnectionthrows an exception when connecting to MySQL v4.1.7. (Bug#25726)SELECTdid not work correctly when using aWHEREclause containing a UTF-8 string. (Bug#25651)When closing and then re-opening a connection to a database, the character set specification is lost. (Bug#25614)
Filling a table schema through a stored procedure triggers a runtime error. (Bug#25609)
BINARYandVARBINARYcolumns would be returned as a string, not binary, datatype. (Bug#25605)A critical
ConnectionPoolerror would result in repeatedSystem.NullReferenceException. (Bug#25603)The
UpdateRowSource.FirstReturnedRecordmethod does not work. (Bug#25569)When connecting to a MySQL Server earlier than version 4.1, the connection would hang when reading data. (Bug#25458)
Using
ExecuteScalar()with more than one query, where one query fails, will hang the connection. (Bug#25443)When a
MySqlConversionExceptionis raised on a remote object, the client application would receive aSerializationExceptioninstead. (Bug#24957)When connecting to a server, the return code from the connection could be zero, even though the host name was incorrect. (Bug#24802)
High CPU utilization would be experienced when there is no idle connection waiting when using pooled connections through
MySqlPool.GetConnection. (Bug#24373)MySQL Connector/NET would not compile properly when used with Mono 1.2. (Bug#24263)
Applications would crash when calling with
CommandTypeset toStoredProcedure.
This is a new Beta development release, fixing recently discovered bugs.
Functionality added or changed:
Usage Advisor has been implemented. The Usage Advisor checks your queries and will report if you are using the connection inefficiently.
PerfMon hooks have been added to monitor the stored procedure cache hits and misses.
The
MySqlCommandobject now supports asynchronous query methods. This is implemented useg theBeginExecuteNonQueryandEndExecuteNonQuerymethods.Metadata from storaed procedures and stored function execution are cached.
The
CommandBuilder.DeriveParametersfunction has been updated to the procedure cache.The
ViewColumnsGetSchemacollection has been updated.Improved speed and performance by re-architecting certain sections of the code.
Support for the embedded server and client library have been removed from this release. Support will be added back to a later release.
The ShapZipLib library has been replaced with the deflate support provided within .NET 2.0.
SSL support has been updated.
Bugs fixed:
Additional text added to error message (Bug#25178)
An exception would be raised, or the process would hang, if
SELECTprivileges on a database were not granted and a stored procedure was used. (Bug#25033)When adding parameter objects to a command object, if the parameter direction is set to
ReturnValuebefore the parameter is added to the command object then when the command is executed it throws an error. (Bug#25013)Using
Driver.IsTooOld()would return the wrong value. (Bug#24661)When using a
DbNull.Valueas the value for a parameter value, and then later setting a specific value type, the command would fail with an exception because the wrong type was implied from theDbNull.Value. (Bug#24565)Stored procedure executions are not thread safe. (Bug#23905)
Deleting a connection to a disconnected server when using the Visual Studio Plugin would cause an assertion failure. (Bug#23687)
Nested transactions (which are unsupported)do not raise an error or warning. (Bug#22400)
Functionality added or changed:
An
Ignore Prepareoption has been added to the connection string options. If enabled, prepared statements will be disabled application-wide. The default for this option is true.Implemented a stored procedure cache. By default, the connector caches the metadata for the last 25 procedures that are seen. You can change the numbver of procedures that are cacheds by using the
procedure cacheconnection string.Important change: Due to a number of issues with the use of server-side prepared statements, MySQL Connector/NET 5.0.2 has disabled their use by default. The disabling of server-side prepared statements does not affect the operation of the connector in any way.
To enable server-side prepared statements you must add the following configuration property to your connector string properties:
ignore prepare=false
The default value of this property is true.
Bugs fixed:
One system where IPv6 was enabled, MySQL Connector/NET would incorrectly resolve host names. (Bug#23758)
Column names with accented characters were not parsed properly causing malformed column names in result sets. (Bug#23657)
An exception would be thrown when calling
GetSchemaTableandfieldswas null. (Bug#23538)A
System.FormatExceptionexception would be raised when invoking a stored procedure with anENUMinput parameter. (Bug#23268)During installation, an antivirus error message would be raised (indicating a malicious script problem). (Bug#23245)
Creating a connection through the Server Explorer when using the Visual Studio Plugin would fail. The installer for the Visual Studio Plugin has been updated to ensure that MySQL Connector/NET 5.0.2 must be installed. (Bug#23071)
Using Windows Vista (RC2) as a nonprivileged user would raise a
Registry key 'Global' access denied. (Bug#22882)Within Mono, using the
PreparedStatementinterface could result in an error due to aBitArraycopying error. (Bug#18186)MySQL Connector/NET did not work as a data source for the
SqlDataSourceobject used by ASP.NET 2.0. (Bug#16126)
Bugs fixed:
MySQL Connector/NET on a Tukish operating system, may fail to execute certain SQL statements correctly. (Bug#22452)
Starting a transaction on a connection created by
MySql.Data.MySqlClient.MySqlClientFactory, usingBeginTransactionwithout specifying an isolation level, causes the SQL statement to fail with a syntax error. (Bug#22042)The
MySqlexceptionclass is now derived from theDbExceptionclass. (Bug#21874)The
#would not be accepted within column/table names, even though it was valid. (Bug#21521)You can now install the MySQL Connector/NET MSI package from the command line using the
/passive,/quiet,/qoptions. (Bug#19994)Submitting an empty string to a command object through
prepareraises anSystem.IndexOutOfRangeException, rather than a MySQL Connector/NET exception. (Bug#18391)Using
ExecuteScalarwith a datetime field, where the value of the field is "0000-00-00 00:00:00", aMySqlConversionExceptionexception would be raised. (Bug#11991)An
MySql.Data.Types.MySqlConversionExceptionwould be raised when trying to update a row that contained a date field, where the date field contained a zero value (0000-00-00 00:00:00). (Bug#9619)Executing multiple queries as part of a transaction returns
There is already an openDataReader associated with this Connection which must be closed first. (Bug#7248)Incorrect field/data lengths could be returned for
VARCHARUTF8 columns. Bug (#14592)
Functionality added or changed:
Replaced use of ICSharpCode with .NET 2.0 internal deflate support.
Refactored test suite to test all protocols in a single pass.
Added usage advisor warnings for requesting column values by the wrong type.
Reimplemented PacketReader/PacketWriter support into
MySqlStreamclass.Reworked connection string classes to be simpler and faster.
Added procedure metadata caching.
Added internal implemention of SHA1 so we don't have to distribute the OpenNetCF on mobile devices.
Implemented
MySqlClientFactoryclass.Added perfmon hooks for stored procedure cache hits and misses.
Implemented classes and interfaces for ADO.Net 2.0 support.
Added Async query methods.
Implemented Usage Advisor.
Completely refactored how column values are handled to avoid boxing in some cases.
Implemented
MySqlConnectionBuilderclass.
Bugs fixed:
CommandText: Question mark in comment line is being parsed as a parameter. (Bug#6214)
- C.5.8.1. Changes in MySQL Connector/NET 1.0.11 (Not yet released)
- C.5.8.2. Changes in MySQL Connector/NET 1.0.10 (24 August 2007)
- C.5.8.3. Changes in MySQL Connector/NET 1.0.9 (02 February 2007)
- C.5.8.4. Changes in MySQL Connector/NET 1.0.8 (20 October 2006)
- C.5.8.5. Changes in MySQL Connector/NET 1.0.7 (21 November 2005)
- C.5.8.6. Changes in MySQL Connector/NET 1.0.6 (03 October 2005)
- C.5.8.7. Changes in MySQL Connector/NET 1.0.5 (29 August 2005)
- C.5.8.8. Changes in MySQL Connector/NET 1.0.4 (20 January 2005)
- C.5.8.9. Changes in MySQL Connector/NET 1.0.3 (12 October 2004 gamma)
- C.5.8.10. Changes in MySQL Connector/NET 1.0.2 (15 November 2004 gamma)
- C.5.8.11. Changes in MySQL Connector/NET 1.0.1 (27 October 2004 beta)
- C.5.8.12. Changes in MySQL Connector/NET 1.0.0 (01 September 2004)
Bugs fixed:
Attempting to utilize MySQL Connector .Net version 1.0.10 throws a fatal exception under Mono when pooling is enabled. (Bug#33682)
Setting the size of a string parameter after the value could cause an exception. (Bug#32094)
Creation of parameter objects with noninput direction using a constructor would fail. This was cause by some old legacy code preventing their use. (Bug#32093)
Memory usage could increase and decrease significantly when updating or inserting a large number of rows. (Bug#31090)
Commands executed from within the state change handeler would fail with a
NULLexception. (Bug#30964)Extracting data through XML functions within a query returns the data as
System.Byte[]. This was due to MySQL Connector/NET incorrectly identifyingBLOBfields as binary, rather than text. (Bug#30233)Using compression in the MySQL connection with MySQL Connector/NET would be slower than using native (uncompressed) communication. (Bug#27865)
Changing the connection string of a connection to one that changes the parameter marker after the connection had been assigned to a command but before the connection is opened could cause parameters to not be found. (Bug#13991)
Bugs fixed:
An incorrect
ConstraintExceptioncould be raised on anINSERTwhen adding rows to a table with a multiple-column unique key index. (Bug#30204)The availability of a MySQL server would not be reset when using pooled connections (
pooling=true). This would lead to the server being reported as unavailable, even if the server become available while the application was still running. (Bug#29409)Publisher listed in "Add/Remove Programs" is not consistent with other MySQL products. (Bug#27253)
MySqlParameterCollectionand parameters added withInsertmethod can not be retrieved later usingParameterName. (Bug#27135)BINARYandVARBINARYcolumns would be returned as a string, not binary, datatype. (Bug#25605)A critical
ConnectionPoolerror would result in repeatedSystem.NullReferenceException. (Bug#25603)When a
MySqlConversionExceptionis raised on a remote object, the client application would receive aSerializationExceptioninstead. (Bug#24957)High CPU utilization would be experienced when there is no idle connection waiting when using pooled connections through
MySqlPool.GetConnection. (Bug#24373)
Functionality added or changed:
The ICSharpCode ZipLib is no longer used by the Connector, and is no longer distributed with it.
Important change: Binaries for .NET 1.0 are no longer supplied with this release. If you need support for .NET 1.0, you must build from source.
Improved
CommandBuilder.DeriveParametersto first try and use the procedure cache before querying for the stored procedure metadata. Return parameters created withDeriveParametersnow have the nameRETURN_VALUE.An
Ignore Prepareoption has been added to the connection string options. If enabled, prepared statements will be disabled application-wide. The default for this option is true.Implemented a stored procedure cache. By default, the connector caches the metadata for the last 25 procedures that are seen. You can change the numbver of procedures that are cacheds by using the
procedure cacheconnection string.Important change: Due to a number of issues with the use of server-side prepared statements, MySQL Connector/NET 5.0.2 has disabled their use by default. The disabling of server-side prepared statements does not affect the operation of the connector in any way.
To enable server-side prepared statements you must add the following configuration property to your connector string properties:
ignore prepare=false
The default value of this property is true.
Bugs fixed:
Times with negative values would be returned incorrectly. (Bug#25912)
MySqlConnectionthrows aNullReferenceExceptionandArgumentNullExceptionwhen connecting to MySQL v4.1.7. (Bug#25726)SELECTdid not work correctly when using aWHEREclause containing a UTF-8 string. (Bug#25651)When closing and then re-opening a connection to a database, the character set specification is lost. (Bug#25614)
Trying to fill a table schema through a stored procedure triggers a runtime error. (Bug#25609)
Using
ExecuteScalar()with more than one query, where one query fails, will hang the connection. (Bug#25443)Additional text added to error message. (Bug#25178)
When adding parameter objects to a command object, if the parameter direction is set to
ReturnValuebefore the parameter is added to the command object then when the command is executed it throws an error. (Bug#25013)When connecting to a server, the return code from the connection could be zero, even though the host name was incorrect. (Bug#24802)
Using
Driver.IsTooOld()would return the wrong value. (Bug#24661)When using a
DbNull.Valueas the value for a parameter value, and then later setting a specific value type, the command would fail with an exception because the wrong type was implied from theDbNull.Value. (Bug#24565)Stored procedure executions are not thread safe. (Bug#23905)
The
CommandBuilderwould mistakenly add insert parameters for a table column with auto incrementation enabled. (Bug#23862)One system where IPv6 was enabled, MySQL Connector/NET would incorrectly resolve host names. (Bug#23758)
Nested transactions do not raise an error or warning. (Bug#22400)
An
System.OverflowExceptionwould be raised when accessing a varchar field over 255 bytes. Bug (#23749)Within Mono, using the
PreparedStatementinterface could result in an error due to aBitArraycopying error. (Bug 18186)
Functionality added or changed:
Stored procedures are now cached.
The method for retrieving stored procedured metadata has been changed so that users without
SELECTprivileges on themysql.proctable can use a stored procedure.
Bugs fixed:
MySQL Connector/NET on a Tukish operating system, may fail to execute certain SQL statements correctly. (Bug#22452)
The
#would not be accepted within column/table names, even though it was valid. (Bug#21521)Calling
Closeon a connection after calling a stored procedure would trigger aNullReferenceException. (Bug#20581)You can now install the MySQL Connector/NET MSI package from the command line using the
/passive,/quiet,/qoptions. (Bug#19994)The DiscoverParameters function would fail when a stored procedure used a
NUMERICparameter type. (Bug#19515)When running a query that included a date comparison, a DateReader error would be raised. (Bug#19481)
IDataRecord.GetStringwould raiseNullPointerExceptionfor null values in returned rows. Method now throwsSqlNullValueException. (Bug#19294)Parameter substitution in queries where the order of parameters and table fields did not match would substitute incorrect values. (Bug#19261)
Submitting an empty string to a command object through
prepareraises anSystem.IndexOutOfRangeException, rather than a MySQL Connector/NET exception. (Bug#18391)An exception would be raised when using an output parameter to a
System.Stringvalue. (Bug#17814)CHAR type added to MySqlDbType. (Bug#17749)
A
SELECTquery on a table with a date with a value of'0000-00-00'would hang the application. (Bug#17736)The CommandBuilder ignored Unsigned flag at Parameter creation. (Bug#17375)
When working with multiple threads, character set initialization would generate errors. (Bug#17106)
When using an unsigned 64-bit integer in a stored procedure, the unsigned bit would be lost stored. (Bug#16934)
DataReaderwould show the value of the previous row (or last row with nonnull data) if the current row contained adatetimefield with a null value. (Bug#16884)Unsigned data types were not properly supported. (Bug#16788)
The connection string parser did not allow single or double quotes in the password. (Bug#16659)
The
MySqlDateTimeclass did not contain constructors. (Bug#15112)Called
MySqlCommandBuilder.DeriveParametersfor a stored procedure that has no paramers would cause an application crash. (Bug#15077)Using
ExecuteScalarwith a datetime field, where the value of the field is "0000-00-00 00:00:00", aMySqlConversionExceptionexception would be raised. (Bug#11991)An
MySql.Data.Types.MySqlConversionExceptionwould be raised when trying to update a row that contained a date field, where the date field contained a zero value (0000-00-00 00:00:00). (Bug#9619)When using
MySqlDataAdapter, connections to a MySQL server may remain open and active, even though the use of the connection has been completed and the data received. (Bug#8131)Executing multiple queries as part of a transaction returns
There is already an openDataReader associated with this Connection which must be closed first. (Bug#7248)Incorrect field/data lengths could be returned for
VARCHARUTF8 columns. Bug (#14592)
Bugs fixed:
Unsigned
tinyint(NET byte) would lead to and incorrectly determined parameter type from the parameter value. (Bug#18570)A
#42000Query was emptyexception occurred when executing a query built withMySqlCommandBuilder, if the query string ended with a semicolon. (Bug#14631)The parameter collection object's
Add()method added parameters to the list without first checking to see whether they already existed. Now it updates the value of the existing parameter object if it exists. (Bug#13927)Added support for the
cp932character set. (Bug#13806)Calling a stored procedure where a parameter contained special characters (such as
'@') would produce an exception. Note thatANSI_QUOTEShad to be enabled to make this possible. (Bug#13753)The
Ping()method did not update theStateproperty of theConnectionobject. (Bug#13658)Implemented the
MySqlCommandBuilder.DeriveParametersmethod that is used to discover the parameters for a stored procedure. (Bug#13632)A statement that contained multiple references to the same parameter could not be prepared. (Bug#13541)
Bugs fixed:
MySQL Connector/NET 1.0.5 could not connect on Mono. (Bug#13345)
Serializing a parameter failed if the first value passed in was
NULL. (Bug#13276)Field names that contained the following characters caused errors:
()%<>/(Bug#13036)The
nantbuild sequence had problems. (Bug#12978)The MySQL Connector/NET 1.0.5 installer would not install alongside MySQL Connector/NET 1.0.4. (Bug#12835)
Bugs fixed:
MySQL Connector/NET could not connect to MySQL 4.1.14. (Bug#12771)
With multiple hosts in the connection string, MySQL Connector/NET would not connect to the last host in the list. (Bug#12628)
The
ConnectionStringproperty could not be set when aMySqlConnectionobject was added with the designer. (Bug#12551, Bug#8724)The
cp1250character set was not supported. (Bug#11621)A call to a stored procedure caused an exception if the stored procedure had no parameters. (Bug#11542)
Certain malformed queries would trigger a
Connection must be valid and openerror message. (Bug#11490)Trying to use a stored procedure when
Connection.Databasewas not populated generated an exception. (Bug#11450)MySQL Connector/NET interpreted the new decimal data type as a byte array. (Bug#11294)
Added support to call a stored function from MySQL Connector/NET. (Bug#10644)
Connection could fail when .NET thread pool had no available worker threads. (Bug#10637)
Calling
MySqlConnection.clonewhen a connection string had not yet been set on the original connection would generate an error. (Bug#10281)Decimal parameters caused syntax errors. (Bug#10152, Bug#11550, Bug#10486)
Parameters were not recognized when they were separated by linefeeds. (Bug#9722)
The
MySqlCommandBuilderclass could not handle queries that referenced tables in a database other than the default database. (Bug#8382)Trying to read a
TIMESTAMPcolumn generated an exception. (Bug#7951)MySQL Connector/NET could not work properly with certain regional settings. (WL#8228)
Bugs fixed:
MySqlReader.GetInt32throws exception if column is unsigned. (Bug#7755)Quote character \222 not quoted in
EscapeString. (Bug#7724)GetBytes is working no more. (Bug#7704)
MySqlDataReader.GetString(index)returns non-Null value when field isNull. (Bug#7612)Clone method bug in
MySqlCommand. (Bug#7478)Problem with Multiple resultsets. (Bug#7436)
MySqlAdapter.Fillmethod throws error messageNon-negative number required. (Bug#7345)MySqlCommand.Connectionreturns an IDbConnection. (Bug#7258)Calling prepare causing exception. (Bug#7243)
Fixed problem with shared memory connections.
Added or filled out several more topics in the API reference documentation.
Fixed another small problem with prepared statements.
Fixed problem that causes named pipes to not work with some blob functionality.
Bugs fixed:
Invalid query string when using inout parameters (Bug#7133)
Inserting
DateTimecausesSystem.InvalidCastExceptionto be thrown. (Bug#7132)MySqlDateTimein Datatables sorting by Text, not Date. (Bug#7032)Exception stack trace lost when re-throwing exceptions. (Bug#6983)
Errors in parsing stored procedure parameters. (Bug#6902)
InvalidCast when using
DATE_ADD-function. (Bug#6879)Int64 Support in
MySqlCommandParameters. (Bug#6863)Test suite fails with MySQL 4.0 because of case sensitivity of table names. (Bug#6831)
MySqlDataReader.GetChar(int i)throwsIndexOutOfRangeexception. (Bug#6770)Integer "out" parameter from stored procedure returned as string. (Bug#6668)
An Open Connection has been Closed by the Host System. (Bug#6634)
Fixed Invalid character set index: 200. (Bug#6547)
Connections now do not have to give a database on the connection string.
Installer now includes options to install into GAC and create items.
Fixed major problem with detecting null values when using prepared statements.
Fixed problem where multiple resultsets having different numbers of columns would cause a problem.
Added
ServerThreadproperty toMySqlConnectionto expose server thread id.Added Ping method to
MySqlConnection.Changed the name of the test suite to
MySql.Data.Tests.dll.Now
SHOW COLLATIONis used upon connection to retrieve the full list of charset ids.Made MySQL the default named pipe name.
Bugs fixed:
Fixed Objects not being disposed (Bug#6649)
Fixed Charset-map for UCS-2 (Bug#6541)
Fixed Zero date "0000-00-00" is returned wrong when filling Dataset (Bug#6429)
Fixed double type handling in MySqlParameter(string parameterName, object value) (Bug#6428)
Fixed Installation directory ignored using custom installation (Bug#6329)
Fixed #HY000 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ (Bug#6322)
Added the TableEditor CS and VB sample
Added charset connection string option
Fixed problem with MySqlBinary where string values could not be used to update extended text columns
Provider is now using character set specified by server as default
Updated the installer to include the new samples
Fixed problem where setting command text leaves the command in a prepared state
Fixed Long inserts take very long time (Bu #5453)
Fixed problem where calling stored procedures might cause an "Illegal mix of collations" problem.
Bugs fixed:
Fixed IndexOutOfBounds when reading BLOB with DataReader with GetString(index) (Bug#6230)
Fixed GetBoolean returns wrong values (Bug#6227)
Fixed Method TokenizeSql() uses only a limited set of valid characters for parameters (Bug#6217)
Fixed NET Connector source missing resx files (Bug#6216)
Fixed System.OverflowException when using YEAR datatype (Bug#6036)
Fixed MySqlDateTime sets IsZero property on all subseq.records after first zero found (Bug#6006)
Fixed serializing of floating point parameters (double, numeric, single, decimal) (Bug#5900)
Fixed missing Reference in DbType setter (Bug#5897)
Fixed Parsing the ';' char (Bug#5876)
Fixed DBNull Values causing problems with retrieving/updating queries. (Bug#5798)
IsNullable error (Bug#5796)
Fixed problem where MySqlParameterCollection.Add() would throw unclear exception when given a null value (Bug#5621)
Fixed construtor initialize problems in MySqlCommand() (Bug#5613)
Fixed Yet Another "object reference not set to an instance of an object" (Bug#5496)
Fixed Can't display Chinese correctly (Bug#5288)
Fixed MySqlDataReader and 'show tables from ...' behavior (Bug#5256)
Fixed problem in PacketReader where it could try to allocate the wrong buffer size in EnsureCapacity
Fixed problem where using old syntax while using the interfaces caused problems
Fixed Bug#5458 Calling GetChars on a longtext column throws an exception
Added test case for resetting the command text on a prepared command
Fixed Bug#5388 DataReader reports all rows as NULL if one row is NULL
Fixed problem where connection lifetime on the connect string was not being respected
Fixed Bug#5602 Possible bug in MySqlParameter(string, object) constructor
Field buffers being reused to decrease memory allocations and increase speed
Fixed Bug#5392 MySqlCommand sees "?" as parameters in string literals
Added Aggregate function test (wasn't really a bug)
Using PacketWriter instead of Packet for writing to streams
Implemented SequentialAccess
Fixed problem with ConnectionInternal where a key might be added more than once
Fixed Russian character support as well
Fixed Bug#5474 cannot run a stored procedure populating mysqlcommand.parameters
Fixed problem where connector was not issuing a CMD_QUIT before closing the socket
Fixed problem where Min Pool Size was not being respected
Refactored compression code into CompressedStream to clean up NativeDriver
CP1252 is now used for Latin1 only when the server is 4.1.2 and later
Fixed Bug#5469 Setting DbType throws NullReferenceException
Virtualized driver subsystem so future releases could easily support client or embedded server support
Bugs fixed:
Thai encoding not correctly supported. (Bug#3889)
Bumped version number to 1.0.0 for beta 1 release.
Removed all of the XML comment warnings.
Added
COPYING.rtffile for use in installer.Updated many of the test cases.
Fixed problem with using compression.
Removed some last references to ByteFX.
Added test fixture for prepared statements.
All type classes now implement a
SerializeBinarymethod for sending their data to aPacketWriter.Added
PacketWriterclass that will enable future low-memory large object handling.Fixed many small bugs in running prepared statements and stored procedures.
Changed command so that an exception will not be thrown in executing a stored procedure with parameters in old syntax mode.
SingleRowbehavior now working right even with limit.GetBytesnow only works on binary columns.Logger now truncates long sql commands so blob columns do not blow out our log.
Host and database now have a default value of "" unless otherwise set.
Connection Timeout seems to be ignored. (Bug#5214)
Added test case for bug# 5051: GetSchema not working correctly.
Fixed problem where
GetSchemawould return false forIsUniquewhen the column is key.MySqlDataReader GetXXXmethods now using the field levelMySqlValueobject and not performing conversions.DataReaderreturningNULLfor time column. (Bug#5097)Added test case for
LOAD DATA LOCAL INFILE.Added replacetext custom nant task.
Added
CommandBuilderTestfixture.Added Last One Wins feature to
CommandBuilder.Fixed persist security info case problem.
Fixed
GetBoolso that 1, true, "true", and "yes" all count as true.Make parameter mark configurable.
Added the "old syntax" connection string parameter to allow use of @ parameter marker.
MySqlCommandBuilder. (Bug#4658)ByteFX.MySqlClientcaches passwords ifPersist Security Infois false. (Bug#4864)Updated license banner in all source files to include FLOSS exception.
Added new .Types namespace and implementations for most current MySql types.
Added
MySqlField41as a subclass ofMySqlField.Changed many classes to now use the new .Types types.
Changed type
enum inttoInt32,shorttoInt16, andbiginttoInt64.Added dummy types
UInt16,UInt32, andUInt64to allow an unsigned parameter to be made.Connections are now reset when they are pulled from the connection pool.
Refactored auth code in driver so it can be used for both auth and reset.
Added
UserResettest inPoolingTests.cs.Connections are now reset using
COM_CHANGE_USERwhen pulled from the pool.Implemented
SingleResultSetbehavior.Implemented support of unicode.
Added char set mappings for utf-8 and ucs-2.
Time fields overflow using bytefx .net mysql driver (Bug#4520)
Modified time test in data type test fixture to check for time spans where hours > 24.
Wrong string with backslash escaping in
ByteFx.Data.MySqlClient.MySqlParameter. (Bug#4505)Added code to Parameter test case TestQuoting to test for backslashes.
MySqlCommandBuilderfails with multi-word column names. (Bug#4486)Fixed bug in
TokenizeSqlwhere underscore would terminate character capture in parameter name.Added test case for spaces in column names.
MySqlDataReader.GetBytesdo not work correctly. (Bug#4324)Added
GetBytes()test case toDataReadertest fixture.Now reading all server variables in
InternalConnection.ConfigureintoHashtable.Now using
string[]for index map inCharSetMap.Added CRInSQL test case for carriage returns in SQL.
Setting maxPacketSize to default value in
Driver.ctor.Setting
MySqlDbTypeon a parameter doesn't set generic type. (Bug#4442)Removed obsolete data types
LongandLongLong.Overflow exception thrown when using "use pipe" on connection string. (Bug#4071)
Changed "use pipe" keyword to "pipe name" or just "pipe".
Allow reading multiple resultsets from a single query.
Added flags attribute to
ServerStatusFlagsenum.Changed name of
ServerStatusenum toServerStatusFlags.Inserted data row doesn't update properly.
Error processing show create table. (Bug#4074)
Change
Packet.ReadLenIntegertoReadPackedLongand addedpacket.ReadPackedIntegerthat always reads integers packed with 2,3,4.Added
syntax.cstest fixture to test various SQL syntax bugs.Improper handling of time values. Now time value of 00:00:00 is not treated as null. (Bug#4149)
Moved all test suite files into
TestSuitefolder.Fixed bug where null column would move the result packet pointer backward.
Added new nant build script.
Clear tablename so it will be regen'ed properly during the next
GenerateSchema. (Bug#3917)GetValueswas always returning zero and was also always trying to copy all fields rather than respecting the size of the array passed in. (Bug#3915)Implemented shared memory access protocol.
Implemented prepared statements for MySQL 4.1.
Implemented stored procedures for MySQL 5.0.
Renamed
MySqlInternalConnectiontoInternalConnection.SQL is now parsed as chars, fixes problems with other languages.
Added logging and allow batch connection string options.
RowUpdatingevent not set when setting theDataAdapterproperty. (Bug#3888)Fixed bug in char set mapping.
Implemented 4.1 authentication.
Improved open/auth code in driver.
Improved how connection bits are set during connection.
Database name is now passed to server during initial handshake.
Changed namespace for client to
MySql.Data.MySqlClient.Changed assembly name of client to
MySql.Data.dll.Changed license text in all source files to GPL.
Added the
MySqlClient.buildNant file.Removed the mono batch files.
Moved some of the unused files into notused folder so nant build file can use wildcards.
Implemented shared memory access.
Major revamp in code structure.
Prepared statements now working for MySql 4.1.1 and later.
Finished implementing auth for 4.0, 4.1.0, and 4.1.1.
Changed namespace from
MySQL.Data.MySQLClientback toMySql.Data.MySqlClient.Fixed bug in
CharSetMappingwhere it was trying to use text names as ints.Changed namespace to
MySQL.Data.MySQLClient.Integrated auth changes from UC2004.
Fixed bug where calling any of the GetXXX methods on a datareader before or after reading data would not throw the appropriate exception (thanks Luca Morelli).
Added
TimeSpancode in parameter.cs to properly serialize a timespan object to mysql time format (thanks Gianluca Colombo).Added
TimeStampto parameter serialization code. PreventedDataAdatperupdates from working right (thanks Michael King).Fixed a misspelling in
MySqlHelper.cs(thanks Patrick Kristiansen).
Driver now using charset number given in handshake to create encoding.
Changed command editor to point to
MySqlClient.Design.Fixed bug in
Version.isAtLeast.Changed
DBConnectionStringto support changes done toMySqlConnectionString.Removed
SqlCommandEditorandDataAdapterPreviewDialog.Using new long return values in many places.
Integrated new
CompressedStreamclass.Changed
ConnectionStringand added attributes to allow it to be used inMySqlClient.Design.Changed
packet.csto support newer lengths inReadLenInteger.Changed other classes to use new properties and fields of
MySqlConnectionString.ConnectionInternalis now using PING to see whether the server is alive.Moved toolbox bitmaps into resource folder.
Changed
field.csto allow values to come directly from row buffer.Changed to use the new driver.Send syntax.
Using a new packet queueing system.
Started work handling the "broken" compression packet handling.
Fixed bug in
StreamCreatorwhere failure to connect to a host would continue to loop infinitly (thanks Kevin Casella).Improved connectstring handling.
Moved designers into Pro product.
Removed some old commented out code from
command.cs.Fixed a problem with compression.
Fixed connection object where an exception throw prior to the connection opening would not leave the connection in the connecting state (thanks Chris Cline).
Added GUID support.
Fixed sequence out of order bug (thanks Mark Reay).
Enum values now supported as parameter values (thanks Philipp Sumi).
Year datatype now supported.
Fixed compression.
Fixed bug where a parameter with a
TimeSpanas the value would not serialize properly.Fixed bug where default constructor would not set default connection string values.
Added some XML comments to some members.
Work to fix/improve compression handling.
Improved
ConnectionStringhandling so that it better matches the standard set bySqlClient.A
MySqlExceptionis now thrown if a user name is not included in the connection string.Localhost is now used as the default if not specified on the connection string.
An exception is now thrown if an attempt is made to set the connection string while the connection is open.
Small changes to
ConnectionStringdocs.Removed
MultiHostStreamandMySqlStream. Replaced it withCommon/StreamCreator.Added support for Use Pipe connection string value.
Added Platform class for easier access to platform utility functions.
Fixed small pooling bug where new connection was not getting created after
IsAlivefails.Added
Platform.csandStreamCreator.cs.Fixed
Field.csto properly handle 4.1 style timestamps.Changed
Common.VersiontoCommon.DBVersionto avoid name conflict.Fixed
field.csso that text columns return the right field type.Added
MySqlErrorclass to provide some reference for error codes (thanks Geert Veenstra).
Added Unix socket support (thanks Mohammad DAMT).
Only calling
Thread.Sleepwhen no data is available.Improved escaping of quote characters in parameter data.
Removed misleading comments from
parameter.cs.Fixed pooling bug.
Fixed
ConnectionStringeditor dialog (thanks marco p (pomarc)).UserIdnow supported in connection strings (thanks Jeff Neeley).Attempting to create a parameter that is not input throws an exception (thanks Ryan Gregg).
Added much documentation.
Checked in new
MultiHostStreamcapability. Big thanks to Dan Guisinger for this. he originally submitted the code and idea of supporting multiple machines on the connect string.Added a lot of documentation.
Fixed speed issue with 0.73.
Changed to Thread.Sleep(0) in MySqlDataStream to help optimize the case where it doesn't need to wait (thanks Todd German).
Prepopulating the idlepools to
MinPoolSize.Fixed
MySqlPooldeadlock condition as well as stupid bug where CreateNewPooledConnection was not ever adding new connections to the pool. Also fixedMySqlStream.ReadBytesandReadByteto not useTicksPerSecondwhich does not appear to always be right. (thanks Matthew J. Peddlesden)Fix for precision and scale (thanks Matthew J. Peddlesden).
Added
Thread.Sleep(1)to stream reading methods to be more cpu friendly (thanks Sean McGinnis).Fixed problem where
ExecuteReaderwould sometime return null (thanks Lloyd Dupont).Fixed major bug with null field handling (thanks Naucki).
Enclosed queries for
max_allowed_packetandcharactersetinside try catch (and set defaults).Fixed problem where socket was not getting closed properly (thanks Steve!).
Fixed problem where
ExecuteNonQuerywas not always returning the right value.Fixed
InternalConnectionto not use@@session.max_allowed_packetbut use@@max_allowed_packet. (Thanks Miguel)Added many new XML doc lines.
Fixed sql parsing to not send empty queries (thanks Rory).
Fixed problem where the reader was not unpeeking the packet on close.
Fixed problem where user variables were not being handled (thanks Sami Vaaraniemi).
Fixed loop checking in the MySqlPool (thanks Steve M. Brown)
Fixed
ParameterCollection.Addmethod to matchSqlClient(thanks Joshua Mouch).Fixed
ConnectionStringparsing to handle no and yes for boolean and not lowercase values (thanks Naucki).Added
InternalConnectionclass, changes to pooling.Implemented Persist Security Info.
Added
security.csandversion.csto projectFixed
DateTimehandling inParameter.cs(thanks Burkhard Perkens-Golomb).Fixed parameter serialization where some types would throw a cast exception.
Fixed
DataReaderto convert all returned values to prevent casting errors (thanks Keith Murray).Added code to
Command.ExecuteReaderto return null if the initial SQL statement throws an exception (thanks Burkhard Perkens-Golomb).Fixed
ExecuteScalarbug introduced with restructure.Restructure to allow for
LOCAL DATA INFILEand better sequencing of packets.Fixed several bugs related to restructure.
Early work done to support more secure passwords in Mysql 4.1. Old passwords in 4.1 not supported yet.
Parameters appearing after system parameters are now handled correctly (Adam M. (adammil)).
Strings can now be assigned directly to blob fields (Adam M.).
Fixed float parameters (thanks Pent).
Improved Parameter constructor and
ParameterCollection.Addmethods to better match SqlClient (thanks Joshua Mouch).Corrected
Connection.CreateCommandto return aMySqlCommandtype.Fixed connection string designer dialog box problem (thanks Abraham Guyt).
Fixed problem with sending commands not always reading the response packet (thanks Joshua Mouch).
Fixed parameter serialization where some blobs types were not being handled (thanks Sean McGinnis).
Removed spurious
MessageBox.showfromDataReadercode (thanks Joshua Mouch).Fixed a nasty bug in the split sql code (thanks everyone!).
Fixed bug in
MySqlStreamwhere too much data could attempt to be read (thanks Peter Belbin)Implemented
HasRows(thanks Nash Pherson).Fixed bug where tables with more than 252 columns cause an exception (thanks Joshua Kessler).
Fixed bug where SQL statements ending in ; would cause a problem (thanks Shane Krueger).
Fixed bug in driver where error messages were getting truncated by 1 character (thanks Shane Krueger).
Made
MySqlExceptionserializable (thanks Mathias Hasselmann).
Updated some of the character code pages to be more accurate.
Fixed problem where readers could be opened on connections that had readers open.
Moved test to separate assembly
MySqlClientTests.Fixed stupid problem in driver with sequence out of order (Thanks Peter Belbin).
Added some pipe tests.
Increased default max pool size to 50.
Compiles with Mono 0-24.
Fixed connection and data reader dispose problems.
Added
Stringdatatype handling to parameter serialization.Fixed sequence problem in driver that occurred after thrown exception (thanks Burkhard Perkens-Golomb).
Added support for
CommandBehavior.SingleRowtoDataReader.Fixed command sql processing so quotes are better handled (thanks Theo Spears).
Fixed parsing of double, single, and decimal values to account for non-English separators. You still have to use the right syntax if you using hard coded sql, but if you use parameters the code will convert floating point types to use '.' appropriately internal both into the server and out.
Added
MySqlStreamclass to simplify timeouts and driver coding.Fixed
DataReaderso that it is closed properly when the associated connection is closed. [thanks smishra]Made client more SqlClient compliant so that DataReaders have to be closed before the connection can be used to run another command.
Improved
DBNull.Valuehandling in the fields.Added several unit tests.
Fixed
MySqlExceptionbase class.Improved driver coding
Fixed bug where NextResult was returning false on the last resultset.
Added more tests for MySQL.
Improved casting problems by equating unsigned 32bit values to Int64 and unsigned 16bit values to Int32, and so forth.
Added new constructor for
MySqlParameterfor (name, type, size, srccol)Fixed bug in
MySqlDataReaderwhere it didn't check for null fieldlist before returning field count.Started adding
MySqlClientunit tests (addedMySqlClient/Testsfolder and some test cases).Fixed some things in Connection String handling.
Moved
INIT_DBtoMySqlPool. I may move it again, this is in preparation of the conference.Fixed bug inside
CommandBuilderthat prevented inserts from happening properly.Reworked some of the internals so that all three execute methods of Command worked properly.
Fixed many small bugs found during benchmarking.
The first cut of
CoonectionPoolingis working. "min pool size" and "max pool size" are respected.Work to enable multiple resultsets to be returned.
Character sets are handled much more intelligently now. The driver queries MySQL at startup for the default character set. That character set is then used for conversions if that code page can be loaded. If not, then the default code page for the current OS is used.
Added code to save the inferred type in the name,value constructor of
Parameter.Also, inferred type if value of null parameter is changed using
Valueproperty.Converted all files to use proper Camel case. MySQL is now MySql in all files. PgSQL is now PgSql.
Added attribute to PgSql code to prevent designer from trying to show.
Added
MySQLDbTypeproperty to Parameter object and added proper conversion code to convert fromDbTypetoMySQLDbType).Removed unused
ObjectToStringmethod fromMySQLParameter.cs.Fixed
Add(..)method inParameterCollectionso that it doesn't useAdd(name, value)instead.Fixed
IndexOfandContainsinParameterCollectionto be aware that parameter names are now stored without @.Fixed
Command.ConvertSQLToBytesso it only allows characters that can be in MySQL variable names.Fixed
DataReaderandFieldso that blob fields read their data fromField.csandGetBytesworks right.Added simple query builder editor to
CommandTextproperty ofMySQLCommand.Fixed
CommandBuilderandParameterserialization to account for Parameters not storing @ in their names.Removed
MySQLFieldTypeenum from Field.cs. Now usingMySQLDbTypeenum.Added
Designerattribute to several classes to prevent designer view when using VS.Net.Fixed Initial catalog typo in
ConnectionStringdesigner.Removed 3 parameter constructor for
MySQLParameterthat conflicted with (name, type, value).Changed
MySQLParametersoparamNameis now stored without leading @ (this fixed null inserts when using designer).Changed
TypeConverterforMySQLParameterto use the constructor with all properties.
Fixed sequence issue in driver.
Added
DbParametersEditorto make parameter editing more likeSqlClient.Fixed
Commandclass so that parameters can be edited using the designerUpdate connection string designer to support
Use Compressionflag.Fixed string encoding so that European characters will work correctly.
Creating base classes to aid in building new data providers.
Added support for UID key in connection string.
Field, parameter, command now using DBNull.Value instead of null.
CommandBuilderusingDBNull.Value.CommandBuildernow builds insert command correctly when an auto_insert field is not present.Field now uses typeof keyword to return
System.Types(performance).
MySQLCommandBuildernow implemented.Transaction support now implemented (not all table types support this).
GetSchemaTablefixed to not use xsd (for Mono).Driver is now Mono-compatible.
TIME data type now supported.
More work to improve Timestamp data type handling.
Changed signatures of all classes to match corresponding
SqlClientclasses.
Protocol compression using SharpZipLib (www.icsharpcode.net).
Named pipes on Windows now working properly.
Work done to improve
Timestampdata type handling.Implemented
IEnumerableonDataReadersoDataGridwould work.
Note
As of Connector/NET 5.1.2 (14 June 2007), the Visual Studion Plugin is part of the main Connector/NET package. For the change history for the Visual Studio Plugin, see Section C.5, “MySQL Connector/NET Change History”.
Bugs fixed:
Running queries based on a stored procedure would cause the data set designer to terminate. (Bugs #26364)
DataSet wizard would show all tables instead of only the tables available within the selected database. (Bugs #26348)
Bugs fixed:
The Add Connection dialog of the Server Explorer would freeze when accessing databases with capitalized characters in their name. (Bug#24875)
Creating a connection through the Server Explorer when using the Visual Studio Plugin would fail. The installer for the Visual Studio Plugin has been updated to ensure that Connector/NET 5.0.2 must be installed. (Bug#23071)
This is a bug fix release to resolve an incompatibility issue with Connector/NET 5.0.1.
It is critical that this release only be used with Connector/NET
5.0.1. After installing Connector/NET 5.0.1, you will need to
make a small change in your machine.config file. This file
should be located at
%win%\Microsoft.Net\Framework\v2.0.50727\CONFIG\machine.config
(%win% should be the location of your Windows
folder). Near the bottom of the file you will see a line like
this:
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data"/>
It needs to be changed to be like this:
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=5.0.1.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
- C.7.1. Changes in MySQL Connector/J 5.1.x
- C.7.2. Changes in MySQL Connector/J 5.0.x
- C.7.3. Changes in MySQL Connector/J 3.1.x
- C.7.4. Changes in MySQL Connector/J 3.0.x
- C.7.5. Changes in MySQL Connector/J 2.0.x
- C.7.6. Changes in MySQL Connector/J 1.2b (04 July 1999)
- C.7.7. Changes in MySQL Connector/J 1.2.x and lower
- C.7.1.1. Changes in MySQL Connector/J 5.1.9 (21 September 2009)
- C.7.1.2. Changes in MySQL Connector/J 5.1.8 (16 July 2009)
- C.7.1.3. Changes in MySQL Connector/J 5.1.7 (21 October 2008)
- C.7.1.4. Changes in MySQL Connector/J 5.1.6 (07 March 2008)
- C.7.1.5. Changes in MySQL Connector/J 5.1.5 (09 October 2007)
- C.7.1.6. Changes in MySQL Connector/J 5.1.4 (Not Released)
- C.7.1.7. Changes in MySQL Connector/J 5.1.3 (10 September 2007)
- C.7.1.8. Changes in MySQL Connector/J 5.1.2 (29 June 2007)
- C.7.1.9. Changes in MySQL Connector/J 5.1.1 (22 June 2007)
- C.7.1.10. Changes in MySQL Connector/J 5.1.0 (11 April 2007)
Bugs fixed:
In the class
com.mysql.jdbc.jdbc2.optional.SuspendableXAConnection, which is used whenpinGlobalTxToPhysicalConnection=true, there is a static map (XIDS_TO_PHYSICAL_CONNECTIONS) that tracks the Xid with the XAConnection, however this map was not populated. The effect was that theSuspendableXAConnectionwas never pinned to the real XA connection. Instead it created new connections on calls tostart,end,resume, andprepare. (Bug#46925)When using the ON DUPLICATE KEY UPDATE functionality together with the rewriteBatchedStatements option set to true, an exception was generated when trying to execute the prepared statement:
INSERT INTO config_table (modified,id_) VALUES (?,?) ON DUPLICATE KEY UPDATE modified=?
The exception generated was:
java.sql.SQLException: Parameter index out of range (3 > number of parameters, which is 2). at com.sag.etl.job.processors.JdbcInsertProcessor.flush(JdbcInsertProcessor.java:135) ...... Caused by: java.sql.SQLException: Parameter index out of range (3 > number of parameters, which is 2). at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3657) at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3641) at com.mysql.jdbc.PreparedStatement.setBytesNoEscapeNoQuotes(PreparedStatement.java:3391) at com.mysql.jdbc.PreparedStatement.setOneBatchedParameterSet(PreparedStatement.java:4203) at com.mysql.jdbc.PreparedStatement.executeBatchedInserts(PreparedStatement.java:1759) at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1441) at com.sag.etl.job.processors.JdbcInsertProcessor.flush(JdbcInsertProcessor.java:131) ... 16 more
When Connector/J encountered an error condition that caused it to create a
CommunicationsException, it tried to build a friendly error message that helped diagnose what was wrong. However, if there had been no network packets received from the server, the error message contained the following incorrect text:The last packet successfully received from the server was 1,249,932,468,916 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
The
getSuperTypesmethod returned a result set with incorrect names for the first two columns. The name of the first column in the result set was expected to beTYPE_CATand that of the second columnTYPE_SCHEM. The method however returned the names asTABLE_CATandTABLE_SCHEMfor first and second column respectively. (Bug#44508)SQLException for data truncation error gave the error code as 0 instead of 1265. (Bug#44324)
Calling
ResultSet.deleteRow()on a table with a primary key of typeBINARY(8)silently failed to delete the row, but only in some repeatable cases. The generatedDELETEstatement generated corrupted part of the primary key data. Specifically, one of the bytes was changed from 0x90 to 0x9D, although the corruption appeared to be different depending on whether the application was run on Windows or Linux. (Bug#43759)Accessing result set columns by name after the result set had been closed resulted in a NullPointerException instead of a SQLException. (Bug#41484)
QueryTimeoutdid not work for batch statements waiting on a locked table.When a batch statement was issued to the server and was forced to wait because of a locked table, Connector/J only terminated the first statement in the batch when the timeout was exceeded, leaving the rest hanging. (Bug#34555)
The
parseURLmethod in classcom.mysql.jdbc.Driverdid not work as expected. When given a URL such as “jdbc:mysql://www.mysql.com:12345/my_database” to parse, the propertyPORT_PROPERTY_KEYwas found to benulland theHOST_PROPERTY_KEYproperty was found to be “www.mysql.com:12345”.Note
Connector/J has been fixed so that it will now always fill in the
PORTproperty (using 3306 if not specified), and theHOSTproperty (usinglocalhostif not specified) whenparseURL()is called. The driver also parses a list of hosts intoHOST.nandPORT.nproperties as well as adding a propertyNUM_HOSTSfor the number of hosts it has found. If a list of hosts is passed to the driver,HOSTandPORTwill be set to the values given byHOST.1andPORT.1respectively. This change has centralized and cleaned up a large section of code used to generate lists of hosts, both for load-balanced and fault tolerant connections and their tests.Attempting to delete rows using
ResultSet.deleteRow()did not delete rows correctly. (Bug#27431)The
setDatemethod silently ignored the Calendar parameter. The code was implemented as follows:public void setDate(int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException { setDate(parameterIndex, x); }From reviewing the code it was apparent that the Calendar parameter
calwas ignored. (Bug#23584)
Bugs fixed:
The reported milliseconds since the last server packets were received/sent was incorrect by a factor of 1000. For example, the following method call:
SQLError.createLinkFailureMessageBasedOnHeuristics( (ConnectionImpl) this.conn, System.currentTimeMillis() - 1000, System.currentTimeMillis() - 2000, e, false);
returned the following string:
The last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
Calling
Connection.serverPrepareStatement()variants that do not take result set type or concurrency arguments returned statements that produced result sets with incorrect defaults, namelyTYPE_SCROLL_SENSITIVE. (Bug#45171)The result set returned by
getIndexInfo()did not have the format defined in the JDBC API specifications. The fourth column,DATA_TYPE, of the result set should be of typeBOOLEAN. Connector/J however returnsCHAR. (Bug#44869)The result set returned by
getTypeInfo()did not have the format defined in the JDBC API specifications. The second column,DATA_TYPE, of the result set should be of typeINTEGER. Connector/J however returnsSMALLINT. (Bug#44868)The
DEFERRABILITYcolumn in database metadata result sets was expected to be of typeSHORT. However, Connector/J returned it asINTEGER.This affected the following methods:
getImportedKeys(),getExportedKeys(),getCrossReference(). (Bug#44867)The result set returned by
getColumns()did not have the format defined in the JDBC API specifications. The fifth column,DATA_TYPE, of the result set should be of typeINTEGER. Connector/J however returnsSMALLINT. (Bug#44865)The result set returned by
getVersionColumns()did not have the format defined in the JDBC API specifications. The third column,DATA_TYPE, of the result set should be of typeINTEGER. Connector/J however returnsSMALLINT. (Bug#44863)The result set returned by
getBestRowIdentifier()did not have the format defined in the JDBC API specifications. The third column,DATA_TYPE, of the result set should be of typeINTEGER. Connector/J however returnsSMALLINT. (Bug#44862)Connector/J contains logic to generate a message text specifically for streaming result sets when there are
CommunicationsExceptionexceptions generated. However, this code was never reached.In the
CommunicationsExceptioncode:private boolean streamingResultSetInPlay = false; public CommunicationsException(ConnectionImpl conn, long lastPacketSentTimeMs, long lastPacketReceivedTimeMs, Exception underlyingException) { this.exceptionMessage = SQLError.createLinkFailureMessageBasedOnHeuristics(conn, lastPacketSentTimeMs, lastPacketReceivedTimeMs, underlyingException, this.streamingResultSetInPlay);streamingResultSetInPlaywas always false, which in the following code inSQLError.createLinkFailureMessageBasedOnHeuristics()never being executed:if (streamingResultSetInPlay) { exceptionMessageBuf.append( Messages.getString("CommunicationsException.ClientWasStreaming")); //$NON-NLS-1$ } else { ...The
SQLError.createLinkFailureMessageBasedOnHeuristics()method created a message text for communication link failures. When certain conditions were met, this message included both “last packet sent” and “last packet received” information, but when those conditions were not met, only “last packet sent” information was provided.Information about when the last packet was successfully received should be provided in all cases. (Bug#44587)
Statement.getGeneratedKeys()retained result set instances until the statement was closed. This caused memory leaks for long-lived statements, or statements used in tight loops. (Bug#44056)Using
useInformationSchemawithDatabaseMetaData.getExportedKeys()generated the following exception:com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'REFERENCED_TABLE_NAME' in where clause is ambiguous ... at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1772) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1923) at com.mysql.jdbc.DatabaseMetaDataUsingInfoSchema.executeMetadataQuery( DatabaseMetaDataUsingInfoSchema.java:50) at com.mysql.jdbc.DatabaseMetaDataUsingInfoSchema.getExportedKeys( DatabaseMetaDataUsingInfoSchema.java:603)
LoadBalancingConnectionProxy.doPing()did not have blacklist awareness.LoadBalancingConnectionProxyimplementeddoPing()to ping all underlying connections, but it threw any exceptions it encountered during this process.With the global blacklist enabled, it catches these exceptions, adds the host to the global blacklist, and only throws an exception if all hosts are down. (Bug#43421)
When the MySQL Server was upgraded from 4.0 to 5.0, the Connector/J application then failed to connect to the server. This was because authentication failed when the application ran from EBCDIC platforms such as z/OS. (Bug#43071)
When connecting with
traceProtocol=true, no trace data was generated for the server greeting or login request. (Bug#43070)Connector/J generated an unhandled
StringIndexOutOfBoundsException:java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1938) at com.mysql.jdbc.EscapeProcessor.processTimeToken(EscapeProcessor.java:353) at com.mysql.jdbc.EscapeProcessor.escapeSQL(EscapeProcessor.java:257) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1546) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1524)
A
ConcurrentModificationExceptionwas generated inLoadBalancingConnectionProxy:java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at com.mysql.jdbc.LoadBalancingConnectionProxy.getGlobalBlacklist(LoadBalancingConnectionProxy.java:520) at com.mysql.jdbc.RandomBalanceStrategy.pickConnection(RandomBalanceStrategy.java:55) at com.mysql.jdbc.LoadBalancingConnectionProxy.pickNewConnection(LoadBalancingConnectionProxy.java:414) at com.mysql.jdbc.LoadBalancingConnectionProxy.invoke(LoadBalancingConnectionProxy.java:390)
SQL injection was possible when using a string containing U+00A5 in a client-side prepared statement, and the character set being used was SJIS/Windows-31J. (Bug#41730)
If there was an apostrophe in a comment in a statement that was being sent through Connector/J, the apostrophe was still recognized as a quote and put the state machine in
EscapeTokenizerinto theinQuotesstate. This led to further parse errors.For example, consider the following statement:
String sql = "-- Customer's zip code will be fixed\n" + "update address set zip_code = 99999\n" + "where not regexp '^[0-9]{5}([[.-.]])?([0-9]{4})?$'";When passed through Connector/J, the
EscapeTokenizerdid not recognize that the first apostrophe was in a comment and thus setinQuotesto true. When that happened, the quote count was incorrect and thus the regular expression did not appear to be in quotes. With the parser not detecting that the regular expression was in quotes, the curly braces were recognized as escape sequences and were removed from the regular expression, breaking it. The server thus received SQL such as:-- Customer's zip code will be fixed update address set zip_code = '99999' where not regexp '^[0-9]([[.-.]])?([0-9])?$'
MySQL Connector/J 5.1.7 was slower than previous versions when the
rewriteBatchedStatementsoption was set totrue.Note
The performance regression in
indexOfIgnoreCaseRespectMarker()has been fixed. It has also been made possible for the driver to rewriteINSERTstatements withON DUPLICATE KEY UPDATEclauses in them, as long as theUPDATEclause contains no reference toLAST_INSERT_ID(), as that would cause the driver to return bogus values forgetGeneratedKeys()invocations. This has resulted in improved performance over version 5.1.7.When accessing a result set column by name using
ResultSetImpl.findColumn()an exception was generated:java.lang.NullPointerException at com.mysql.jdbc.ResultSetImpl.findColumn(ResultSetImpl.java:1103) at com.mysql.jdbc.ResultSetImpl.getShort(ResultSetImpl.java:5415) at org.apache.commons.dbcp.DelegatingResultSet.getShort(DelegatingResultSet.java:219) at com.zimbra.cs.db.DbVolume.constructVolume(DbVolume.java:297) at com.zimbra.cs.db.DbVolume.get(DbVolume.java:197) at com.zimbra.cs.db.DbVolume.create(DbVolume.java:95) at com.zimbra.cs.store.Volume.create(Volume.java:227) at com.zimbra.cs.store.Volume.create(Volume.java:189) at com.zimbra.cs.service.admin.CreateVolume.handle(CreateVolume.java:48) at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:428) at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:285)
The
RETURN_GENERATED_KEYSflag was being ignored. For example, in the following code theRETURN_GENERATED_KEYSflag was ignored:PreparedStatement ps = connection.prepareStatement("INSERT INTO table values(?,?)",PreparedStatement.RETURN_GENERATED_KEYS);When using Connector/J 5.1.7 to connect to MySQL Server 4.1.18 the following error message was generated:
Thu Dec 11 17:38:21 PST 2008 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2}This occurred with MySQL Server version that did not support
auto_increment_increment. The error message should not have been generated. (Bug#41416)When
DatabaseMetaData.getProcedureColumns()was called, the value forLENGTHwas always returned as 65535, regardless of the column type (fixed or variable) or the actual length of the column.However, if you obtained the
PRECISIONvalue, this was correct for both fixed and variable length columns. (Bug#41269)PreparedStatement.addBatch()did not check for all parameters being set, which led to inconsistent behavior inexecuteBatch(), especially when rewriting batched statements into multi-valueINSERTs. (Bug#41161)Error message strings contained variable values that were not expanded. For example:
Mon Nov 17 11:43:18 JST 2008 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2}When using
rewriteBatchedStatements=truewith:INSERT INTO table_name_values (...) VALUES (...)
Query rewriting failed because “values” at the end of the table name was mistaken for the reserved keyword. The error generated was as follows:
testBug40439(testsuite.simple.TestBug40439)java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values (2,'toto',2),(id,data, ordr) values (3,'toto',3),(id,data, ordr) values (' at line 1 at com.mysql.jdbc.PreparedStatement.executeBatchedInserts(PreparedStatement.java:1495) at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1097) at testsuite.simple.TestBug40439.testBug40439(TestBug40439.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at testsuite.simple.TestBug40439.main(TestBug40439.java:57)A statement interceptor received the incorrect parameters when used with a batched statement. (Bug#39426)
Using Connector/J 5.1.6 the method
ResultSet.getObjectreturned aBYTE[]for following:SELECT TRIM(rowid) FROM tbl
Where
rowidhad a type ofINT(11) PRIMARY KEY AUTO_INCREMENT.The expected return type was one of
CHAR,VARCHAR,CLOB, however, aBYTE[]was returned.Further, adding
functionsNeverReturnBlobs=trueto the connection string did not have any effect on the return type. (Bug#38387)
Functionality added or changed:
When statements include
ON DUPLICATE UPDATE, andrewriteBatchedStatementsis set to true, batched statements are not rewritten into the formINSERT INTO table VALUES (), (), (), instead the statements are executed sequentially.
Bugs fixed:
Statement.getGeneratedKeys()returned two keys when usingON DUPLICATE KEY UPDATEand the row was updated, not inserted. (Bug#42309)When using the replication driver with
autoReconnect=true, Connector/J checks inPreparedStatement.execute(also called byCallableStatement.execute) to determine if the first character of the statement is an “S”, in an attempt to block all statements that are not read-only-safe, for example non-SELECTstatements. However, this also blockedCALLs to stored procedures, even if the stored procedures were defined asSQL READ DATAorNO SQL. (Bug#40031)With large result sets
ResultSet.findColumnbecame a performance bottleneck. (Bug#39962)Connector/J ignored the value of the MySQL Server variable
auto_increment_increment. (Bug#39956)Connector/J failed to parse
TIMESTAMPstrings for nanos correctly. (Bug#39911)When the
LoadBalancingConnectionProxyhandles aSQLExceptionwith SQL state starting with “08”, it callsinvalidateCurrentConnection, which in turn removes thatConnectionfromliveConnectionsand theconnectionsToHostsMap, but it did not add the host to the new global blacklist, if the global blacklist was enabled.There was also the possibility of a
NullPointerExceptionwhen trying to update stats, whereconnectionsToHostsMap.get(this.currentConn)was called:int hostIndex = ((Integer) this.hostsToListIndexMap.get(this.connectionsToHostsMap.get(this.currentConn))).intValue();
This could happen if a client tried to issue a rollback after catching a
SQLExceptioncaused by a connection failure. (Bug#39784)When configuring the Java Replication Driver the last slave specified was never used. (Bug#39611)
When an
INSERT ON DUPLICATE KEY UPDATEwas performed, and the key already existed, theaffected-rowsvalue was returned as 1 instead of 0. (Bug#39352)When using the random load balancing strategy and starting with two servers that were both unavailable, an
IndexOutOfBoundsExceptionwas generated when removing a server from thewhiteList. (Bug#38782)Connector/J threw the following exception when using a read-only connection:
java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed.Connector/J was unable to connect when using a non-
latin1password. (Bug#37570)The
useOldAliasMetadataBehaviorconnection property was ignored. (Bug#35753)Incorrect result is returned from
isAfterLast()in streamingResultSetwhen usingsetFetchSize(Integer.MIN_VALUE). (Bug#35170)When
getGeneratedKeys()was called on a statement that had not been created withRETURN_GENERATED_KEYS, no exception was thrown, and batched executions then returned erroneous values. (Bug#34185)The
loadBalancebestResponseTimeblacklists did not have a global state. (Bug#33861)
Functionality added or changed:
Multiple result sets were not supported when using streaming mode to return data. Both normal statements and the resul sets from stored procedures now return multiple results sets, with the exception of result sets using registered
OUTPUTparamaters. (Bug#33678)XAConnections and datasources have been updated to the JDBC-4.0 standard.
The profiler event handling has been made extensible via the
profilerEventHandlerconnection property.Add the
verifyServerCertificatepropery. If set to "false" the driver will not verify the server's certificate whenuseSSLis set to "true"When using this feature, the keystore parameters should be specified by the
clientCertificateKeyStore*properties, rather than system properties, as the JSSE doesn't it straightforward to have a nonverifying trust store and the "default" key store.
Bugs fixed:
DatabaseMetaData.getColumns()returns incorrectCOLUMN_SIZEvalue forSETcolumn. (Bug#36830)When trying to read
Timevalues like “00:00:00” withResultSet.getTime(int)an exception is thrown. (Bug#36051)JDBC connection URL parameters is ignored when using
MysqlConnectionPoolDataSource. (Bug#35810)When
useServerPrepStmts=trueand slow query logging is enabled, the connector throws aNullPointerExceptionwhen it encounters a slow query. (Bug#35666)When using the keyword “loadbalance” in the connection string and trying to perform load balancing between two databases, the driver appears to hang. (Bug#35660)
JDBC data type getter method was changed to accept only column name, whereas previously it accepted column label. (Bug#35610)
Prepared statements from pooled connections caused a
NullPointerExceptionwhenclosed()under JDBC-4.0. (Bug#35489)In calling a stored function returning a
bigint, an exception is encountered beginning:java.sql.SQLException: java.lang.NumberFormatException: For input string:
followed by the text of the stored function starting after the argument list. (Bug#35199)
The JDBC driver uses a different method for evaluating column names in
resultsetmetadata.getColumnName()and when looking for a column inresultset.getObject(columnName). This causes Hibernate to fail in queries where the two methods yield different results, for example in queries that use alias names:SELECT column AS aliasName from table
MysqlConnectionPoolDataSourcedoes not supportReplicationConnection. Notice that we implementedcom.mysql.jdbc.ConnectionforReplicationConnection, however, only accessors from ConnectionProperties are implemented (not the mutators), and they return values from the currently active connection. All other methods fromcom.mysql.jdbc.Connectionare implemented, and operate on the currently active connection, with the exception ofresetServerState()andchangeUser(). (Bug#34937)ResultSet.getTimestamp()returns incorrect values for month/day ofTIMESTAMPs when using server-side prepared statements (not enabled by default). (Bug#34913)RowDataStaticdoes't always set the metadata inResultSetRow, which can lead to failures when unpackingDATE,TIME,DATETIMEandTIMESTAMPtypes when using absolute, relative, and previous result set navigation methods. (Bug#34762)When calling
isValid()on an active connection, if the timeout is nonzero then theConnectionis invalidated even if theConnectionis valid. (Bug#34703)It was not possible to truncate a
BLOBusingBlog.truncate()when using 0 as an argument. (Bug#34677)When using a cursor fetch for a statement, the internal prepared statement could cause a memory leak until the connection was closed. The internal prepared statement is now deleted when the corresponding result set is closed. (Bug#34518)
When retrieving the column type name of a geometry field, the driver would return
UNKNOWNinstead ofGEOMETRY. (Bug#34194)Statements with batched values do not return correct values for
getGeneratedKeys()whenrewriteBatchedStatementsis set totrue, and the statement has anON DUPLICATE KEY UPDATEclause. (Bug#34093)The internal class
ResultSetInternalMethodsreferenced the nonpublic classcom.mysql.jdbc.CachedResultSetMetaData. (Bug#33823)A
NullPointerExceptioncould be raised when using client-side prepared statements and enabled the prepared statement cache using thecachePrepStmts. (Bug#33734)Using server side cursors and cursor fetch, the table metadata information would return the data type name instead of the column name. (Bug#33594)
ResultSet.getTimestamp()would throw aNullPointerExceptioninstead of aSQLExceptionwhen called on an emptyResultSet. (Bug#33162)Load balancing connection using best response time would incorrectly "stick" to hosts that were down when the connection was first created.
We solve this problem with a black list that is used during the picking of new hosts. If the black list ends up including all configured hosts, the driver will retry for a configurable number of times (the
retriesAllDownconfiguration property, with a default of 120 times), sleeping 250ms between attempts to pick a new connection.We've also went ahead and made the balancing strategy extensible. To create a new strategy, implement the interface
com.mysql.jdbc.BalanceStrategy(which also includes our standard "extension" interface), and tell the driver to use it by passing in the class name via theloadBalanceStrategyconfiguration property. (Bug#32877)During a Daylight Savings Time (DST) switchover, there was no way to store two timestamp/datetime values , as the hours end up being the same when sent as the literal that MySQL requires.
Note that to get this scenario to work with MySQL (since it doesn't support per-value timezones), you need to configure your server (or session) to be in UTC, and tell the driver not to use the legacy date/time code by setting
useLegacyDatetimeCodeto "false". This will cause the driver to always convert to/from the server and client timezone consistently.This bug fix also fixes Bug#15604, by adding entirely new date/time handling code that can be switched on by
useLegacyDatetimeCodebeing set to "false" as a JDBC configuration property. For Connector/J 5.1.x, the default is "true", in trunk and beyond it will be "false" (that is, the old date/time handling code will be deprecated) (Bug#32577, Bug#15604)When unpacking rows directly, we don't hand off error message packets to the internal method which decodes them correctly, so no exception is raised, and the driver than hangs trying to read rows that aren't there. This tends to happen when calling stored procedures, as normal SELECTs won't have an error in this spot in the protocol unless an I/O error occurs. (Bug#32246)
When using a connection from
ConnectionPoolDataSource, someConnection.prepareStatement()methods would return null instead of the prepared statement. (Bug#32101)Using
CallableStatement.setNull()on a stored function would throw anArrayIndexOutOfBoundsexception when setting the last parameter to null. (Bug#31823)MysqlValidConnectionCheckerdoesn't properly handle connections created usingReplicationConnection. (Bug#31790)Retrieving the server version information for an active connection could return invalid information if the default character encoding on the host was not ASCII compatible. (Bug#31192)
Further fixes have been made to this bug in the event that a node is nonresponsive. Connector/J will now try a different random node instead of waiting for the node to recover before continuing. (Bug#31053)
ResultSetreturned byStatement.getGeneratedKeys()is not closed automatically when statement that created it is closed. (Bug#30508)DatabaseMetadata.getColumns()doesn't return the correct column names if the connection character isn't UTF-8. A bug in MySQL server compounded the issue, but was fixed within the MySQL 5.0 release cycle. The fix includes changes to all the sections of the code that access the server metadata. (Bug#20491)Fixed
ResultSetMetadata.getColumnName()for result sets returned fromStatement.getGeneratedKeys()- it was returning null instead of "GENERATED_KEY" as in 5.0.x.
The following features are new, compared to the 5.0 series of Connector/J
JDBC-4.0 support for setting per-connection client information (which can be viewed in the comments section of a query via
SHOW PROCESSLISTon a MySQL server, or can be extended to support custom persistence of the information via a public interface).Support for JDBC-4.0 XML processing via JAXP interfaces to DOM, SAX and StAX.
JDBC-4.0 standardized unwrapping to interfaces that include vendor extensions.
Functionality added or changed:
Added
autoSlowLogconfiguration property, overridesslowQueryThreshold*properties, driver determines slow queries by those that are slower than 5 * stddev of the mean query time (outside the 96% percentile).
Bugs fixed:
When a connection is in read-only mode, queries that are wrapped in parentheses were incorrectly identified DML statements. (Bug#28256)
When calling
setTimestampon a prepared statement, the timezone information stored in the calendar object was ignored. This resulted in the incorrectDATETIMEinformation being stored. The following example illustrates this:Timestamp t = new Timestamp( cal.getTimeInMillis() ); ps.setTimestamp( N, t, cal );
The following features are new, compared to the 5.0 series of Connector/J
JDBC-4.0 support for setting per-connection client information (which can be viewed in the comments section of a query via
SHOW PROCESSLISTon a MySQL server, or can be extended to support custom persistence of the information via a public interface).Support for JDBC-4.0 XML processing via JAXP interfaces to DOM, SAX and StAX.
JDBC-4.0 standardized unwrapping to interfaces that include vendor extensions.
Functionality added or changed:
Connector/J now connects using an initial character set of
utf-8solely for the purpose of authentication to allow user names or database names in any character set to be used in the JDBC connection URL. (Bug#29853)Added two configuration parameters:
blobsAreStrings— Should the driver always treat BLOBs as Strings. Added specifically to work around dubious metadata returned by the server forGROUP BYclauses. Defaults to false.functionsNeverReturnBlobs— Should the driver always treat data from functions returningBLOBsas Strings. Added specifically to work around dubious metadata returned by the server forGROUP BYclauses. Defaults to false.
Setting
rewriteBatchedStatementstotruenow causes CallableStatements with batched arguments to be re-written in the form "CALL (...); CALL (...); ..." to send the batch in as few client-server round trips as possible.The driver now picks appropriate internal row representation (whole row in one buffer, or individual byte[]s for each column value) depending on heuristics, including whether or not the row has
BLOBorTEXTtypes and the overall row-size. The threshold for row size that will cause the driver to use a buffer rather than individual byte[]s is configured by the configuration propertylargeRowSizeThreshold, which has a default value of 2KB.The data (and how it is stored) for
ResultSetrows are now behind an interface which allows us (in some cases) to allocate less memory per row, in that for "streaming" result sets, we re-use the packet used to read rows, since only one row at a time is ever active.Added experimental support for statement "interceptors" via the
com.mysql.jdbc.StatementInterceptorinterface, examples are incom/mysql/jdbc/interceptors. Implement this interface to be placed "in between" query execution, so that it can be influenced (currently experimental).The driver will automatically adjust the server session variable
net_write_timeoutwhen it determines its been asked for a "streaming" result, and resets it to the previous value when the result set has been consumed. (The configuration property is namednetTimeoutForStreamingResults, with a unit of seconds, the value '0' means the driver will not try and adjust this value).JDBC-4.0 ease-of-development features including auto-registration with the
DriverManagervia the service provider mechanism, standardized Connection validity checks and categorizedSQLExceptionsbased on recoverability/retry-ability and class of the underlying error.Statement.setQueryTimeout()s now affect the entire batch for batched statements, rather than the individual statements that make up the batch.Errors encountered during
Statement/PreparedStatement/CallableStatement.executeBatch()whenrewriteBatchStatementshas been set totruenow returnBatchUpdateExceptionsaccording to the setting ofcontinueBatchOnError.If
continueBatchOnErroris set totrue, the update counts for the "chunk" that were sent as one unit will all be set toEXECUTE_FAILED, but the driver will attempt to process the remainder of the batch. You can determine which "chunk" failed by looking at the update counts returned in theBatchUpdateException.If
continueBatchOnErroris set to "false", the update counts returned will contain all updates up-to and including the failed "chunk", with all counts for the failed "chunk" set toEXECUTE_FAILED.Since MySQL doesn't return multiple error codes for multiple-statements, or for multi-value
INSERT/REPLACE, it is the application's responsibility to handle determining which item(s) in the "chunk" actually failed.New methods on com.mysql.jdbc.Statement:
setLocalInfileInputStream()andgetLocalInfileInputStream():setLocalInfileInputStream()sets anInputStreaminstance that will be used to send data to the MySQL server for aLOAD DATA LOCAL INFILEstatement rather than aFileInputStreamorURLInputStreamthat represents the path given as an argument to the statement.This stream will be read to completion upon execution of a
LOAD DATA LOCAL INFILEstatement, and will automatically be closed by the driver, so it needs to be reset before each call toexecute*()that would cause the MySQL server to request data to fulfill the request forLOAD DATA LOCAL INFILE.If this value is set to
NULL, the driver will revert to using aFileInputStreamorURLInputStreamas required.getLocalInfileInputStream()returns theInputStreaminstance that will be used to send data in response to aLOAD DATA LOCAL INFILEstatement.This method returns
NULLif no such stream has been set viasetLocalInfileInputStream().
Setting
useBlobToStoreUTF8OutsideBMPtotruetells the driver to treat[MEDIUM/LONG]BLOBcolumns as[LONG]VARCHARcolumns holding text encoded in UTF-8 that has characters outside the BMP (4-byte encodings), which MySQL server can't handle natively.Set
utf8OutsideBmpExcludedColumnNamePatternto a regex so that column names matching the given regex will still be treated asBLOBsThe regex must follow the patterns used for thejava.util.regexpackage. The default is to exclude no columns, and include all columns.Set
utf8OutsideBmpIncludedColumnNamePatternto specify exclusion rules to utf8OutsideBmpExcludedColumnNamePattern". The regex must follow the patterns used for thejava.util.regexpackage.
Bugs fixed:
setObject(int, Object, int, int)delegate in PreparedStatmentWrapper delegates to wrong method. (Bug#30892)NPE with null column values when
padCharsWithSpaceis set to true. (Bug#30851)Collation on
VARBINARYcolumn types would be misidentified. A fix has been added, but this fix only works for MySQL server versions 5.0.25 and newer, since earlier versions didn't consistently return correct metadata for functions, and thus results from subqueries and functions were indistinguishable from each other, leading to type-related bugs. (Bug#30664)An
ArithmeticExceptionorNullPointerExceptionwould be raised when the batch had zero members andrewriteBatchedStatements=truewhenaddBatch()was never called, orexecuteBatch()was called immediately afterclearBatch(). (Bug#30550)Closing a load-balanced connection would cause a
ClassCastException. (Bug#29852)Connection checker for JBoss didn't use same method parameters via reflection, causing connections to always seem "bad". (Bug#29106)
DatabaseMetaData.getTypeInfo()for the typesDECIMALandNUMERICwill return a precision of 254 for server versions older than 5.0.3, 64 for versions 5.0.3–5.0.5 and 65 for versions newer than 5.0.5. (Bug#28972)CallableStatement.executeBatch()doesn't work when connection propertynoAccessToProcedureBodieshas been set totrue.The fix involves changing the behavior of
noAccessToProcedureBodies,in that the driver will now report all paramters as "IN" paramters but allow callers to call registerOutParameter() on them without throwing an exception. (Bug#28689)DatabaseMetaData.getColumns()doesn't containSCOPE_*orIS_AUTOINCREMENTcolumns. (Bug#27915)Schema objects with identifiers other than the connection character aren't retrieved correctly in
ResultSetMetadata. (Bug#27867)Connection.getServerCharacterEncoding()doesn't work for servers with version >= 4.1. (Bug#27182)The automated SVN revisions in
DBMD.getDriverVersion(). The SVN revision of the directory is now inserted into the version information during the build. (Bug#21116)Specifying a "validation query" in your connection pool that starts with "/* ping */" _exactly_ will cause the driver to instead send a ping to the server and return a fake result set (much lighter weight), and when using a ReplicationConnection or a LoadBalancedConnection, will send the ping across all active connections.
This is a new Beta development release, fixing recently discovered bugs.
Functionality added or changed:
Setting the configuration property
rewriteBatchedStatementstotruewill now cause the driver to rewrite batched prepared statements with more than 3 parameter sets in a batch into multi-statements (separated by ";") if they are not plain (that is, withoutSELECTorON DUPLICATE KEY UPDATEclauses)INSERTorREPLACEstatements.
This is a new Alpha development release, adding new features and fixing recently discovered bugs.
Functionality added or changed:
Incompatible Change: Pulled vendor-extension methods of
Connectionimplementation out into an interface to supportjava.sql.Wrapperfunctionality fromConnectionPoolDataSource. The vendor extensions are javadoc'd in thecom.mysql.jdbc.Connectioninterface.For those looking further into the driver implementation, it is not an API that is used for plugability of implementations inside our driver (which is why there are still references to
ConnectionImplthroughout the code).We've also added server and client
prepareStatement()methods that cover all of the variants in the JDBC API.Connection.serverPrepare(String)has been re-named toConnection.serverPrepareStatement()for consistency withConnection.clientPrepareStatement().Row navigation now causes any streams/readers open on the result set to be closed, as in some cases we're reading directly from a shared network packet and it will be overwritten by the "next" row.
Made it possible to retrieve prepared statement parameter bindings (to be used in
StatementInterceptors, primarily).Externalized the descriptions of connection properties.
The data (and how it is stored) for
ResultSetrows are now behind an interface which allows us (in some cases) to allocate less memory per row, in that for "streaming" result sets, we re-use the packet used to read rows, since only one row at a time is ever active.Similar to
Connection, we pulled out vendor extensions toStatementinto an interface namedcom.mysql.Statement, and moved theStatementclass intocom.mysql.StatementImpl. The two methods (javadoc'd incom.mysql.StatementareenableStreamingResults(), which already existed, anddisableStreamingResults()which sets the statement instance back to the fetch size and result set type it had beforeenableStreamingResults()was called.Driver now picks appropriate internal row representation (whole row in one buffer, or individual byte[]s for each column value) depending on heuristics, including whether or not the row has
BLOBorTEXTtypes and the overall row-size. The threshold for row size that will cause the driver to use a buffer rather than individual byte[]s is configured by the configuration propertylargeRowSizeThreshold, which has a default value of 2KB.Added experimental support for statement "interceptors" via the
com.mysql.jdbc.StatementInterceptorinterface, examples are incom/mysql/jdbc/interceptors.Implement this interface to be placed "in between" query execution, so that you can influence it. (currently experimental).
StatementInterceptorsare "chainable" when configured by the user, the results returned by the "current" interceptor will be passed on to the next on in the chain, from left-to-right order, as specified by the user in the JDBC configuration propertystatementInterceptors.See the sources (fully javadoc'd) for
com.mysql.jdbc.StatementInterceptorfor more details until we iron out the API and get it documented in the manual.Setting
rewriteBatchedStatementstotruenow causesCallableStatementswith batched arguments to be re-written in the formCALL (...); CALL (...); ...to send the batch in as few client-server round trips as possible.
This is the first public alpha release of the current Connector/J 5.1 development branch, providing an insight to upcoming features. Although some of these are still under development, this release includes the following new features and changes (in comparison to the current Connector/J 5.0 production release):
Important change: Due to a number of issues with the use of server-side prepared statements, Connector/J 5.0.5 has disabled their use by default. The disabling of server-side prepared statements does not affect the operation of the connector in any way.
To enable server-side prepared statements you must add the following configuration property to your connector string:
useServerPrepStmts=true
The default value of this property is false
(that is, Connector/J does not use server-side prepared
statements).
Note
The disabling of server-side prepared statements does not
affect the operation of the connector. However, if you use the
useTimezone=true connection option and use
client-side prepared statements (instead of server-side
prepared statements) you should also set
useSSPSCompatibleTimezoneShift=true.
Functionality added or changed:
Refactored
CommunicationsExceptioninto a JDBC-3.0 version, and a JDBC-4.0 version (which extendsSQLRecoverableException, now that it exists).Note
This change means that if you were catching
com.mysql.jdbc.CommunicationsExceptionin your applications instead of looking at the SQLState class of08, and are moving to Java 6 (or newer), you need to change your imports to that exception to becom.mysql.jdbc.exceptions.jdbc4.CommunicationsException, as the old class will not be instantiated for communications link-related errors under Java 6.Added support for JDBC-4.0 categorized
SQLExceptions.Added support for JDBC-4.0's
NCLOB, andNCHAR/NVARCHARtypes.com.mysql.jdbc.java6.javac— full path to your Java-6 javac executableAdded support for JDBC-4.0's SQLXML interfaces.
Re-worked Ant buildfile to build JDBC-4.0 classes separately, as well as support building under Eclipse (since Eclipse can't mix/match JDKs).
To build, you must set
JAVA_HOMEto J2SDK-1.4.2 or Java-5, and set the following properties on your Ant command line:com.mysql.jdbc.java6.javac— full path to your Java-6 javac executablecom.mysql.jdbc.java6.rtjar— full path to your Java-6rt.jarfile
New feature — driver will automatically adjust session variable
net_write_timeoutwhen it determines it has been asked for a "streaming" result, and resets it to the previous value when the result set has been consumed. (configuration property is namednetTimeoutForStreamingResultsvalue and has a unit of seconds, the value0means the driver will not try and adjust this value).Added support for JDBC-4.0's client information. The backend storage of information provided via
Connection.setClientInfo()and retrieved byConnection.getClientInfo()is pluggable by any class that implements thecom.mysql.jdbc.JDBC4ClientInfoProviderinterface and has a no-args constructor.The implementation used by the driver is configured using the
clientInfoProviderconfiguration property (with a default of value ofcom.mysql.jdbc.JDBC4CommentClientInfoProvider, an implementation which lists the client information as a comment prepended to every query sent to the server).This functionality is only available when using Java-6 or newer.
com.mysql.jdbc.java6.rtjar— full path to your Java-6rt.jarfileAdded support for JDBC-4.0's
Wrapperinterface.
- C.7.2.1. Changes in MySQL Connector/J 5.0.8 (09 October 2007)
- C.7.2.2. Changes in MySQL Connector/J 5.0.7 (20 July 2007)
- C.7.2.3. Changes in MySQL Connector/J 5.0.6 (15 May 2007)
- C.7.2.4. Changes in MySQL Connector/J 5.0.5 (02 March 2007)
- C.7.2.5. Changes in MySQL Connector/J 5.0.4 (20 October 2006)
- C.7.2.6. Changes in MySQL Connector/J 5.0.3 (26 July 2006 beta)
- C.7.2.7. Changes in MySQL Connector/J 5.0.2 (11 July 2006)
- C.7.2.8. Changes in MySQL Connector/J 5.0.1 (Not Released)
- C.7.2.9. Changes in MySQL Connector/J 5.0.0 (22 December 2005)
Functionality added or changed:
blobsAreStrings— Should the driver always treat BLOBs as Strings. Added specifically to work around dubious metadata returned by the server forGROUP BYclauses. Defaults to false.Added two configuration parameters:
blobsAreStrings— Should the driver always treat BLOBs as Strings. Added specifically to work around dubious metadata returned by the server forGROUP BYclauses. Defaults to false.functionsNeverReturnBlobs— Should the driver always treat data from functions returningBLOBsas Strings. Added specifically to work around dubious metadata returned by the server forGROUP BYclauses. Defaults to false.
functionsNeverReturnBlobs— Should the driver always treat data from functions returningBLOBsas Strings. Added specifically to work around dubious metadata returned by the server forGROUP BYclauses. Defaults to false.XAConnections now start in auto-commit mode (as per JDBC-4.0 specification clarification).
Driver will now fall back to sane defaults for
max_allowed_packetandnet_buffer_lengthif the server reports them incorrectly (and will log this situation atWARNlevel, since it is actually an error condition).
Bugs fixed:
Connections established using URLs of the form
jdbc:mysql:loadbalance://weren't doing failover if they tried to connect to a MySQL server that was down. The driver now attempts connections to the next "best" (depending on the load balance strategy in use) server, and continues to attempt connecting to the next "best" server every 250 milliseconds until one is found that is up and running or 5 minutes has passed.If the driver gives up, it will throw the last-received
SQLException. (Bug#31053)setObject(int, Object, int, int)delegate in PreparedStatmentWrapper delegates to wrong method. (Bug#30892)NPE with null column values when
padCharsWithSpaceis set to true. (Bug#30851)Collation on
VARBINARYcolumn types would be misidentified. A fix has been added, but this fix only works for MySQL server versions 5.0.25 and newer, since earlier versions didn't consistently return correct metadata for functions, and thus results from subqueries and functions were indistinguishable from each other, leading to type-related bugs. (Bug#30664)An
ArithmeticExceptionorNullPointerExceptionwould be raised when the batch had zero members andrewriteBatchedStatements=truewhenaddBatch()was never called, orexecuteBatch()was called immediately afterclearBatch(). (Bug#30550)Closing a load-balanced connection would cause a
ClassCastException. (Bug#29852)Connection checker for JBoss didn't use same method parameters via reflection, causing connections to always seem "bad". (Bug#29106)
DatabaseMetaData.getTypeInfo()for the typesDECIMALandNUMERICwill return a precision of 254 for server versions older than 5.0.3, 64 for versions 5.0.3–5.0.5 and 65 for versions newer than 5.0.5. (Bug#28972)CallableStatement.executeBatch()doesn't work when connection propertynoAccessToProcedureBodieshas been set totrue.The fix involves changing the behavior of
noAccessToProcedureBodies,in that the driver will now report all paramters as "IN" paramters but allow callers to call registerOutParameter() on them without throwing an exception. (Bug#28689)When a connection is in read-only mode, queries that are wrapped in parentheses were incorrectly identified DML statements. (Bug#28256)
UNSIGNEDtypes not reported viaDBMD.getTypeInfo(), and capitalization of type names is not consistent betweenDBMD.getColumns(),RSMD.getColumnTypeName()andDBMD.getTypeInfo().This fix also ensures that the precision of
UNSIGNED MEDIUMINTandUNSIGNED BIGINTis reported correctly viaDBMD.getColumns(). (Bug#27916)DatabaseMetaData.getColumns()doesn't containSCOPE_*orIS_AUTOINCREMENTcolumns. (Bug#27915)Schema objects with identifiers other than the connection character aren't retrieved correctly in
ResultSetMetadata. (Bug#27867)Cached metadata with
PreparedStatement.execute()throwsNullPointerException. (Bug#27412)Connection.getServerCharacterEncoding()doesn't work for servers with version >= 4.1. (Bug#27182)The automated SVN revisions in
DBMD.getDriverVersion(). The SVN revision of the directory is now inserted into the version information during the build. (Bug#21116)Specifying a "validation query" in your connection pool that starts with "/* ping */" _exactly_ will cause the driver to instead send a ping to the server and return a fake result set (much lighter weight), and when using a ReplicationConnection or a LoadBalancedConnection, will send the ping across all active connections.
Functionality added or changed:
The driver will now automatically set
useServerPrepStmtstotruewhenuseCursorFetchhas been set totrue, since the feature requires server-side prepared statements in order to function.tcpKeepAlive- Should the driver set SO_KEEPALIVE (defaulttrue)?Give more information in EOFExceptions thrown out of MysqlIO (how many bytes the driver expected to read, how many it actually read, say that communications with the server were unexpectedly lost).
Driver detects when it is running in a ColdFusion MX server (tested with version 7), and uses the configuration bundle
coldFusion, which setsuseDynamicCharsetInfotofalse(see previous entry), and setsuseLocalSessionStateand autoReconnect totrue.tcpNoDelay- Should the driver set SO_TCP_NODELAY (disabling the Nagle Algorithm, defaulttrue)?Added configuration property
slowQueryThresholdNanos- ifuseNanosForElapsedTimeis set totrue, and this property is set to a nonzero value the driver will use this threshold (in nanosecond units) to determine if a query was slow, instead of using millisecond units.tcpRcvBuf- Should the driver set SO_RCV_BUF to the given value? The default value of '0', means use the platform default value for this property.Setting
useDynamicCharsetInfotofalsenow causes driver to use static lookups for collations as well (makes ResultSetMetadata.isCaseSensitive() much more efficient, which leads to performance increase for ColdFusion, which calls this method for every column on every table it sees, it appears).Added configuration properties to allow tuning of TCP/IP socket parameters:
tcpNoDelay- Should the driver set SO_TCP_NODELAY (disabling the Nagle Algorithm, defaulttrue)?tcpKeepAlive- Should the driver set SO_KEEPALIVE (defaulttrue)?tcpRcvBuf- Should the driver set SO_RCV_BUF to the given value? The default value of '0', means use the platform default value for this property.tcpSndBuf- Should the driver set SO_SND_BUF to the given value? The default value of '0', means use the platform default value for this property.tcpTrafficClass- Should the driver set traffic class or type-of-service fields? See the documentation for java.net.Socket.setTrafficClass() for more information.
Setting the configuration parameter
useCursorFetchtotruefor MySQL-5.0+ enables the use of cursors that allow Connector/J to save memory by fetching result set rows in chunks (where the chunk size is set by calling setFetchSize() on a Statement or ResultSet) by using fully-materialized cursors on the server.tcpSndBuf- Should the driver set SO_SND_BUF to the given value? The default value of '0', means use the platform default value for this property.tcpTrafficClass- Should the driver set traffic class or type-of-service fields? See the documentation for java.net.Socket.setTrafficClass() for more information.Added new debugging functionality - Setting configuration property
includeInnodbStatusInDeadlockExceptionstotruewill cause the driver to append the output ofSHOW ENGINE INNODB STATUSto deadlock-related exceptions, which will enumerate the current locks held inside InnoDB.Added configuration property
useNanosForElapsedTime- for profiling/debugging functionality that measures elapsed time, should the driver try to use nanoseconds resolution if available (requires JDK >= 1.5)?Note
If
useNanosForElapsedTimeis set totrue, and this property is set to "0" (or left default), then elapsed times will still be measured in nanoseconds (if possible), but the slow query threshold will be converted from milliseconds to nanoseconds, and thus have an upper bound of approximately 2000 milliseconds (as that threshold is represented as an integer, not a long).
Bugs fixed:
Don't send any file data in response to LOAD DATA LOCAL INFILE if the feature is disabled at the client side. This is to prevent a malicious server or man-in-the-middle from asking the client for data that the client is not expecting. Thanks to Jan Kneschke for discovering the exploit and Andrey "Poohie" Hristov, Konstantin Osipov and Sergei Golubchik for discussions about implications and possible fixes. (Bug#29605)
Parser in client-side prepared statements runs to end of statement, rather than end-of-line for '#' comments. Also added support for '--' single-line comments. (Bug#28956)
Parser in client-side prepared statements eats character following '/' if it is not a multi-line comment. (Bug#28851)
PreparedStatement.getMetaData() for statements containing leading one-line comments is not returned correctly.
As part of this fix, we also overhauled detection of DML for
executeQuery()andSELECTs forexecuteUpdate()in plain and prepared statements to be aware of the same types of comments. (Bug#28469)
Functionality added or changed:
Added an experimental load-balanced connection designed for use with SQL nodes in a MySQL Cluster/NDB environment (This is not for master-slave replication. For that, we suggest you look at
ReplicationConnectionorlbpool).If the JDBC URL starts with
jdbc:mysql:loadbalance://host-1,host-2,...host-n, the driver will create an implementation ofjava.sql.Connectionthat load balances requests across a series of MySQL JDBC connections to the given hosts, where the balancing takes place after transaction commit.Therefore, for this to work (at all), you must use transactions, even if only reading data.
Physical connections to the given hosts will not be created until needed.
The driver will invalidate connections that it detects have had communication errors when processing a request. A new connection to the problematic host will be attempted the next time it is selected by the load balancing algorithm.
There are two choices for load balancing algorithms, which may be specified by the
loadBalanceStrategyJDBC URL configuration property:random— the driver will pick a random host for each request. This tends to work better than round-robin, as the randomness will somewhat account for spreading loads where requests vary in response time, while round-robin can sometimes lead to overloaded nodes if there are variations in response times across the workload.bestResponseTime— the driver will route the request to the host that had the best response time for the previous transaction.
bestResponseTime— the driver will route the request to the host that had the best response time for the previous transaction.Added configuration property
padCharsWithSpace(defaults tofalse). If set totrue, and a result set column has theCHARtype and the value does not fill the amount of characters specified in the DDL for the column, the driver will pad the remaining characters with space (for ANSI compliance).When
useLocalSessionStateis set totrueand connected to a MySQL-5.0 or later server, the JDBC driver will now determine whether an actualcommitorrollbackstatement needs to be sent to the database whenConnection.commit()orConnection.rollback()is called.This is especially helpful for high-load situations with connection pools that always call
Connection.rollback()on connection check-in/check-out because it avoids a round-trip to the server.Added configuration property
useDynamicCharsetInfo. If set tofalse(the default), the driver will use a per-connection cache of character set information queried from the server when necessary, or when set totrue, use a built-in static mapping that is more efficient, but isn't aware of custom character sets or character sets implemented after the release of the JDBC driver.Note
This only affects the
padCharsWithSpaceconfiguration property and theResultSetMetaData.getColumnDisplayWidth()method.New configuration property,
enableQueryTimeouts(defaulttrue).When enabled, query timeouts set via
Statement.setQueryTimeout()use a sharedjava.util.Timerinstance for scheduling. Even if the timeout doesn't expire before the query is processed, there will be memory used by theTimerTaskfor the given timeout which won't be reclaimed until the time the timeout would have expired if it hadn't been cancelled by the driver. High-load environments might want to consider disabling this functionality. (this configuration property is part of themaxPerformanceconfiguration bundle).Give better error message when "streaming" result sets, and the connection gets clobbered because of exceeding
net_write_timeouton the server.random— the driver will pick a random host for each request. This tends to work better than round-robin, as the randomness will somewhat account for spreading loads where requests vary in response time, while round-robin can sometimes lead to overloaded nodes if there are variations in response times across the workload.com.mysql.jdbc.[NonRegistering]Drivernow understands URLs of the formatjdbc:mysql:replication://andjdbc:mysql:loadbalance://which will create a ReplicationConnection (exactly like when using[NonRegistering]ReplicationDriver) and an experimental load-balanced connection designed for use with SQL nodes in a MySQL Cluster/NDB environment, respectively.In an effort to simplify things, we're working on deprecating multiple drivers, and instead specifying different core behavior based upon JDBC URL prefixes, so watch for
[NonRegistering]ReplicationDriverto eventually disappear, to be replaced withcom.mysql.jdbc[NonRegistering]Driverwith the new URL prefix.Fixed issue where a failed-over connection would let an application call
setReadOnly(false), when that call should be ignored until the connection is reconnected to a writable master unlessfailoverReadOnlyhad been set tofalse.Driver will now use
INSERT INTO ... VALUES (DEFAULT)form of statement for updatable result sets forResultSet.insertRow(), rather than pre-populating the insert row with values fromDatabaseMetaData.getColumns()(which results in aSHOW FULL COLUMNSon the server for every result set). If an application requires access to the default values beforeinsertRow()has been called, the JDBC URL should be configured withpopulateInsertRowWithDefaultValuesset totrue.This fix specifically targets performance issues with ColdFusion and the fact that it seems to ask for updatable result sets no matter what the application does with them.
More intelligent initial packet sizes for the "shared" packets are used (512 bytes, rather than 16K), and initial packets used during handshake are now sized appropriately as to not require reallocation.
Bugs fixed:
More useful error messages are generated when the driver thinks a result set is not updatable. (Thanks to Ashley Martens for the patch). (Bug#28085)
Connection.getTransactionIsolation()uses "SHOW VARIABLES LIKE" which is very inefficient on MySQL-5.0+ servers. (Bug#27655)Fixed issue where calling
getGeneratedKeys()on a prepared statement after callingexecute()didn't always return the generated keys (executeUpdate()worked fine however). (Bug#27655)CALL /* ... */doesn't work. As a side effect of this fix, you can now usesome_proc()/* */and#comments when preparing statements using client-side prepared statement emulation.If the comments happen to contain parameter markers (
?), they will be treated as belonging to the comment (that is, not recognized) rather than being a parameter of the statement.Note
The statement when sent to the server will contain the comments as-is, they're not stripped during the process of preparing the
PreparedStatementorCallableStatement.ResultSet.get*()with a column index < 1 returns misleading error message. (Bug#27317)Using
ResultSet.get*()with a column index less than 1 returns a misleading error message. (Bug#27317)Comments in DDL of stored procedures/functions confuse procedure parser, and thus metadata about them can not be created, leading to inability to retrieve said metadata, or execute procedures that have certain comments in them. (Bug#26959)
Fast date/time parsing doesn't take into account
00:00:00as a legal value. (Bug#26789)PreparedStatementis not closed inBlobFromLocator.getBytes(). (Bug#26592)When the configuration property
useCursorFetchwas set totrue, sometimes server would return new, more exact metadata during the execution of the server-side prepared statement that enables this functionality, which the driver ignored (using the original metadata returned duringprepare()), causing corrupt reading of data due to type mismatch when the actual rows were returned. (Bug#26173)CallableStatementswithOUT/INOUTparameters that are "binary" (BLOB,BIT,(VAR)BINARY,JAVA_OBJECT) have extra 7 bytes. (Bug#25715)Whitespace surrounding storage/size specifiers in stored procedure parameters declaration causes
NumberFormatExceptionto be thrown when calling stored procedure on JDK-1.5 or newer, as the Number classes in JDK-1.5+ are whitespace intolerant. (Bug#25624)Client options not sent correctly when using SSL, leading to stored procedures not being able to return results. Thanks to Don Cohen for the bug report, testcase and patch. (Bug#25545)
Statement.setMaxRows()is not effective on result sets materialized from cursors. (Bug#25517)BIT(> 1)is returned asjava.lang.StringfromResultSet.getObject()rather thanbyte[]. (Bug#25328)
Functionality added or changed:
Usage Advisor will now issue warnings for result sets with large numbers of rows. You can configure the trigger value by using the
resultSetSizeThresholdparameter, which has a default value of 100.The
rewriteBatchedStatementsfeature can now be used with server-side prepared statements.Important change: Due to a number of issues with the use of server-side prepared statements, Connector/J 5.0.5 has disabled their use by default. The disabling of server-side prepared statements does not affect the operation of the connector in any way.
To enable server-side prepared statements you must add the following configuration property to your connector string:
useServerPrepStmts=true
The default value of this property is
false(that is, Connector/J does not use server-side prepared statements).Improved speed of
datetimeparsing for ResultSets that come from plain or nonserver-side prepared statements. You can enable old implementation withuseFastDateParsing=falseas a configuration parameter.Usage Advisor now detects empty results sets and does not report on columns not referenced in those empty sets.
Fixed logging of XA commands sent to server, it is now configurable via
logXaCommandsproperty (defaults tofalse).Added configuration property
localSocketAddress, which is the host name or IP address given to explicitly configure the interface that the driver will bind the client side of the TCP/IP connection to when connecting.We've added a new configuration option
treatUtilDateAsTimestamp, which isfalseby default, as (1) We already had specific behavior to treat java.util.Date as a java.sql.Timestamp because it is useful to many folks, and (2) that behavior will very likely be required for drivers JDBC-post-4.0.
Bugs fixed:
Connection property
socketFactorywasn't exposed via correctly named mutator/accessor, causing data source implementations that use JavaBean naming conventions to set properties to fail to set the property (and in the case of SJAS, fail silently when trying to set this parameter). (Bug#26326)A query execution which timed out did not always throw a
MySQLTimeoutException. (Bug#25836)Storing a
java.util.Dateobject in aBLOBcolumn would not be serialized correctly duringsetObject. (Bug#25787)Timer instance used for
Statement.setQueryTimeout()created per-connection, rather than per-VM, causing memory leak. (Bug#25514)EscapeProcessorgets confused by multiple backslashes. We now push the responsibility of syntax errors back on to the server for most escape sequences. (Bug#25399)INOUTparameters inCallableStatementsget doubly-escaped. (Bug#25379)When using the
rewriteBatchedStatementsconnection option withPreparedState.executeBatch()an internal memory leak would occur. (Bug#25073)Fixed issue where field-level for metadata from
DatabaseMetaDatawhen usingINFORMATION_SCHEMAdidn't have references to current connections, sometimes leading to Null Pointer Exceptions (NPEs) when introspecting them viaResultSetMetaData. (Bug#25073)StringUtils.indexOfIgnoreCaseRespectQuotes()isn't case-insensitive on the first character of the target. This bug also affectedrewriteBatchedStatementsfunctionality when prepared statements did not use uppercase for theVALUESclause. (Bug#25047)Client-side prepared statement parser gets confused by in-line comments
/*...*/and therefore cannot rewrite batch statements or reliably detect the type of statements when they are used. (Bug#25025)Results sets from
UPDATEstatements that are part of multi-statement queries would cause anSQLExceptionerror, "Result is from UPDATE". (Bug#25009)Specifying
US-ASCIIas the character set in a connection to a MySQL 4.1 or newer server does not map correctly. (Bug#24840)Using
DatabaseMetaData.getSQLKeywords()does not return a all of the of the reserved keywords for the current MySQL version. Current implementation returns the list of reserved words for MySQL 5.1, and does not distinguish between versions. (Bug#24794)Calling
Statement.cancel()could result in a Null Pointer Exception (NPE). (Bug#24721)Using
setFetchSize()breaks preparedSHOWand other commands. (Bug#24360)Calendars and timezones are now lazily instantiated when required. (Bug#24351)
Using
DATETIMEcolumns would result in time shifts whenuseServerPrepStmtswas true. The reason was due to different behavior when using client-side compared to server-side prepared statements and theuseJDBCCompliantTimezoneShiftoption. This is now fixed if moving from server-side prepared statements to client-side prepared statements by settinguseSSPSCompatibleTimezoneShifttotrue, as the driver can't tell if this is a new deployment that never used server-side prepared statements, or if it is an existing deployment that is switching to client-side prepared statements from server-side prepared statements. (Bug#24344)Connector/J now returns a better error message when server doesn't return enough information to determine stored procedure/function parameter types. (Bug#24065)
A connection error would occur when connecting to a MySQL server with certain character sets. Some collations/character sets reported as "unknown" (specifically
ciasvariants of existing character sets), and inability to override the detected server character set. (Bug#23645)Inconsistency between
getSchemasandINFORMATION_SCHEMA. (Bug#23304)DatabaseMetaData.getSchemas()doesn't return aTABLE_CATALOGcolumn. (Bug#23303)When using a JDBC connection URL that is malformed, the
NonRegisteringDriver.getPropertyInfomethod will throw a Null Pointer Exception (NPE). (Bug#22628)Some exceptions thrown out of
StandardSocketFactorywere needlessly wrapped, obscuring their true cause, especially when using socket timeouts. (Bug#21480)When using a server-side prepared statement the driver would send timestamps to the server using nanoseconds instead of milliseconds. (Bug#21438)
When using server-side prepared statements and timestamp columns, value would be incorrectly populated (with nanoseconds, not microseconds). (Bug#21438)
ParameterMetaDatathrowsNullPointerExceptionwhen prepared SQL has a syntax error. AddedgenerateSimpleParameterMetadataconfiguration property, which when set totruewill generate metadata reflectingVARCHARfor every parameter (the default isfalse, which will cause an exception to be thrown if no parameter metadata for the statement is actually available). (Bug#21267)Fixed an issue where
XADataSourcescouldn't be bound into JNDI, as theDataSourceFactorydidn't know how to create instances of them.
Other changes:
Avoid static synchronized code in JVM class libraries for dealing with default timezones.
Performance enhancement of initial character set configuration, driver will only send commands required to configure connection character set session variables if the current values on the server do not match what is required.
Re-worked stored procedure parameter parser to be more robust. Driver no longer requires
BEGINin stored procedure definition, but does have requirement that if a stored function begins with a label directly after the "returns" clause, that the label is not a quoted identifier.Throw exceptions encountered during timeout to thread calling
Statement.execute*(), rather thanRuntimeException.Changed cached result set metadata (when using
cacheResultSetMetadata=true) to be cached per-connection rather than per-statement as previously implemented.Reverted back to internal character conversion routines for single-byte character sets, as the ones internal to the JVM are using much more CPU time than our internal implementation.
When extracting foreign key information from
SHOW CREATE TABLEinDatabaseMetaData, ignore exceptions relating to tables being missing (which could happen for cross-reference or imported-key requests, as the list of tables is generated first, then iterated).Fixed some Null Pointer Exceptions (NPEs) when cached metadata was used with
UpdatableResultSets.Take
localSocketAddressproperty into account when creating instances ofCommunicationsExceptionwhen the underyling exception is ajava.net.BindException, so that a friendlier error message is given with a little internal diagnostics.Fixed cases where
ServerPreparedStatementsweren't using cached metadata whencacheResultSetMetadata=truewas used.Use a
java.util.TreeMapto map column names to ordinal indexes forResultSet.findColumn()instead of a HashMap. This allows us to have case-insensitive lookups (required by the JDBC specification) without resorting to the many transient object instances needed to support this requirement with a normalHashMapwith either case-adjusted keys, or case-insensitive keys. (In the worst case scenario for lookups of a 1000 column result set, TreeMaps are about half as fast wall-clock time as a HashMap, however in normal applications their use gives many orders of magnitude reduction in transient object instance creation which pays off later for CPU usage in garbage collection).When using cached metadata, skip field-level metadata packets coming from the server, rather than reading them and discarding them without creating
com.mysql.jdbc.Fieldinstances.
Bugs fixed:
DBMD.getColumns() does not return expected COLUMN_SIZE for the SET type, now returns length of largest possible set disregarding whitespace or the "," delimitters to be consistent with the ODBC driver. (Bug#22613)
Added new _ci collations to CharsetMapping - utf8_unicode_ci not working. (Bug#22456)
Driver was using milliseconds for Statement.setQueryTimeout() when specification says argument is to be in seconds. (Bug#22359)
Workaround for server crash when calling stored procedures via a server-side prepared statement (driver now detects prepare(stored procedure) and substitutes client-side prepared statement). (Bug#22297)
Driver issues truncation on write exception when it shouldn't (due to sending big decimal incorrectly to server with server-side prepared statement). (Bug#22290)
Newlines causing whitespace to span confuse procedure parser when getting parameter metadata for stored procedures. (Bug#22024)
When using information_schema for metadata, COLUMN_SIZE for getColumns() is not clamped to range of java.lang.Integer as is the case when not using information_schema, thus leading to a truncation exception that isn't present when not using information_schema. (Bug#21544)
Column names don't match metadata in cases where server doesn't return original column names (column functions) thus breaking compatibility with applications that expect 1–1 mappings between findColumn() and rsmd.getColumnName(), usually manifests itself as "Can't find column ('')" exceptions. (Bug#21379)
Driver now sends numeric 1 or 0 for client-prepared statement
setBoolean()calls instead of '1' or '0'.Fixed configuration property
jdbcCompliantTruncationwas not being used for reads of result set values.DatabaseMetaData correctly reports
trueforsupportsCatalog*()methods.Driver now supports
{call sp}(without "()" if procedure has no arguments).
Functionality added or changed:
Added configuration option
noAccessToProcedureBodieswhich will cause the driver to create basic parameter metadata forCallableStatementswhen the user does not have access to procedure bodies viaSHOW CREATE PROCEDUREor selecting frommysql.procinstead of throwing an exception. The default value for this option isfalse
Bugs fixed:
Fixed
Statement.cancel()causesNullPointerExceptionif underlying connection has been closed due to server failure. (Bug#20650)If the connection to the server has been closed due to a server failure, then the cleanup process will call
Statement.cancel(), triggering aNullPointerException, even though there is no active connection. (Bug#20650)
Bugs fixed:
MysqlXaConnection.recover(int flags)now allows combinations ofXAResource.TMSTARTRSCANandTMENDRSCAN. To simulate the “scanning” nature of the interface, we return all prepared XIDs forTMSTARTRSCAN, and no new XIDs for calls withTMNOFLAGS, orTMENDRSCANwhen not in combination withTMSTARTRSCAN. This change was made for API compliance, as well as integration with IBM WebSphere's transaction manager. (Bug#20242)Fixed
MysqlValidConnectionCheckerfor JBoss doesn't work withMySQLXADataSources. (Bug#20242)Added connection/datasource property
pinGlobalTxToPhysicalConnection(defaults tofalse). When set totrue, when usingXAConnections, the driver ensures that operations on a given XID are always routed to the same physical connection. This allows theXAConnectionto supportXA START ... JOINafterXA ENDhas been called, and is also a workaround for transaction managers that don't maintain thread affinity for a global transaction (most either always maintain thread affinity, or have it as a configuration option). (Bug#20242)Better caching of character set converters (per-connection) to remove a bottleneck for multibyte character sets. (Bug#20242)
Fixed
ConnectionProperties(and thus some subclasses) are not serializable, even though some J2EE containers expect them to be. (Bug#19169)Fixed driver fails on non-ASCII platforms. The driver was assuming that the platform character set would be a superset of MySQL's
latin1when doing the handshake for authentication, and when reading error messages. We now use Cp1252 for all strings sent to the server during the handshake phase, and a hard-coded mapping of thelanguagesysttem variable to the character set that is used for error messages. (Bug#18086)Fixed can't use
XAConnectionfor local transactions when no global transaction is in progress. (Bug#17401)
Bugs fixed:
Added support for Connector/MXJ integration via url subprotocol
jdbc:mysql:mxj://.... (Bug#14729)Idle timeouts cause
XAConnectionsto whine about rolling themselves back. (Bug#14729)When fix for Bug#14562 was merged from 3.1.12, added functionality for
CallableStatement's parameter metadata to return correct information for.getParameterClassName(). (Bug#14729)Added service-provider entry to
META-INF/services/java.sql.Driverfor JDBC-4.0 support. (Bug#14729)Fuller synchronization of
Connectionto avoid deadlocks when using multithreaded frameworks that multithread a single connection (usually not recommended, but the JDBC spec allows it anyways), part of fix to Bug#14972). (Bug#14729)Moved all
SQLExceptionconstructor usage to a factory inSQLError(ground-work for JDBC-4.0SQLState-based exception classes). (Bug#14729)Removed Java5-specific calls to
BigDecimalconstructor (when result set value is'',(int)0was being used as an argument indirectly via method return value. This signature doesn't exist prior to Java5.) (Bug#14729)Implementation of
Statement.cancel()andStatement.setQueryTimeout(). Both require MySQL-5.0.0 or newer server, require a separate connection to issue theKILL QUERYstatement, and in the case ofsetQueryTimeout()creates an additional thread to handle the timeout functionality.Note: Failures to cancel the statement for
setQueryTimeout()may manifest themselves asRuntimeExceptionsrather than failing silently, as there is currently no way to unblock the thread that is executing the query being cancelled due to timeout expiration and have it throw the exception instead. (Bug#14729)Return "[VAR]BINARY" for
RSMD.getColumnTypeName()when that is actually the type, and it can be distinguished (MySQL-4.1 and newer). (Bug#14729)Attempt detection of the MySQL type
BINARY(it is an alias, so this isn't always reliable), and use thejava.sql.Types.BINARYtype mapping for it.Added unit tests for
XADatasource, as well as friendlier exceptions for XA failures compared to the "stock"XAException(which has no messages).If the connection
useTimezoneis set totrue, then also respect time zone conversions in escape-processed string literals (for example,"{ts ...}"and"{t ...}").Don't allow
.setAutoCommit(true), or.commit()or.rollback()on an XA-managed connection as per the JDBC specification.XADataSourceimplemented (ported from 3.2 branch which won't be released as a product). Usecom.mysql.jdbc.jdbc2.optional.MysqlXADataSourceas your datasource class name in your application server to utilize XA transactions in MySQL-5.0.10 and newer.Moved
-bin-g.jarfile into separatedebugsubdirectory to avoid confusion.Return original column name for
RSMD.getColumnName()if the column was aliased, alias name for.getColumnLabel()(if aliased), and original table name for.getTableName(). Note this only works for MySQL-4.1 and newer, as older servers don't make this information available to clients.Setting
useJDBCCompliantTimezoneShift=true(it is not the default) causes the driver to use GMT for allTIMESTAMP/DATETIMEtime zones, and the current VM time zone for any other type that refers to time zones. This feature can not be used whenuseTimezone=trueto convert between server and client time zones.PreparedStatement.setString()didn't work correctly whensql_modeon server containedNO_BACKSLASH_ESCAPESand no characters that needed escaping were present in the string.Add one level of indirection of internal representation of
CallableStatementparameter metadata to avoid class not found issues on JDK-1.3 forParameterMetadatainterface (which doesn't exist prior to JDBC-3.0).
- C.7.3.1. Changes in MySQL Connector/J 3.1.15 (Not yet released)
- C.7.3.2. Changes in MySQL Connector/J 3.1.14 (10-19-2006)
- C.7.3.3. Changes in MySQL Connector/J 3.1.13 (26 May 2006)
- C.7.3.4. Changes in MySQL Connector/J 3.1.12 (30 November 2005)
- C.7.3.5. Changes in MySQL Connector/J 3.1.11 (07 October 2005)
- C.7.3.6. Changes in MySQL Connector/J 3.1.10 (23 June 2005)
- C.7.3.7. Changes in MySQL Connector/J 3.1.9 (22 June 2005)
- C.7.3.8. Changes in MySQL Connector/J 3.1.8 (14 April 2005)
- C.7.3.9. Changes in MySQL Connector/J 3.1.7 (18 February 2005)
- C.7.3.10. Changes in MySQL Connector/J 3.1.6 (23 December 2004)
- C.7.3.11. Changes in MySQL Connector/J 3.1.5 (02 December 2004)
- C.7.3.12. Changes in MySQL Connector/J 3.1.4 (04 September 2004)
- C.7.3.13. Changes in MySQL Connector/J 3.1.3 (07 July 2004)
- C.7.3.14. Changes in MySQL Connector/J 3.1.2 (09 June 2004)
- C.7.3.15. Changes in MySQL Connector/J 3.1.1 (14 February 2004 alpha)
- C.7.3.16. Changes in MySQL Connector/J 3.1.0 (18 February 2003 alpha)
Important change: Due to a number of issues with the use of server-side prepared statements, Connector/J 5.0.5 has disabled their use by default. The disabling of server-side prepared statements does not affect the operation of the connector in any way.
To enable server-side prepared statements you must add the following configuration property to your connector string:
useServerPrepStmts=true
The default value of this property is false
(that is, Connector/J does not use server-side prepared
statements).
Bugs fixed:
Specifying
US-ASCIIas the character set in a connection to a MySQL 4.1 or newer server does not map correctly. (Bug#24840)
Bugs fixed:
Check and store value for continueBatchOnError property in constructor of Statements, rather than when executing batches, so that Connections closed out from underneath statements don't cause NullPointerExceptions when it is required to check this property. (Bug#22290)
Fixed Bug#18258 - DatabaseMetaData.getTables(), columns() with bad catalog parameter threw exception rather than return empty result set (as required by spec). (Bug#22290)
Driver now sends numeric 1 or 0 for client-prepared statement setBoolean() calls instead of '1' or '0'. (Bug#22290)
Fixed bug where driver would not advance to next host if roundRobinLoadBalance=true and the last host in the list is down. (Bug#22290)
Driver issues truncation on write exception when it shouldn't (due to sending big decimal incorrectly to server with server-side prepared statement). (Bug#22290)
Fixed bug when calling stored functions, where parameters weren't numbered correctly (first parameter is now the return value, subsequent parameters if specified start at index "2"). (Bug#22290)
Removed logger autodetection altogether, must now specify logger explicitly if you want to use a logger other than one that logs to STDERR. (Bug#21207)
DDriver throws NPE when tracing prepared statements that have been closed (in asSQL()). (Bug#21207)
ResultSet.getSomeInteger() doesn't work for BIT(>1). (Bug#21062)
Escape of quotes in client-side prepared statements parsing not respected. Patch covers more than bug report, including NO_BACKSLASH_ESCAPES being set, and stacked quote characters forms of escaping (that is, '' or ""). (Bug#20888)
Fixed can't pool server-side prepared statements, exception raised when re-using them. (Bug#20687)
Fixed Updatable result set that contains a BIT column fails when server-side prepared statements are used. (Bug#20485)
Fixed updatable result set throws ClassCastException when there is row data and moveToInsertRow() is called. (Bug#20479)
Fixed ResultSet.getShort() for UNSIGNED TINYINT returns incorrect values when using server-side prepared statements. (Bug#20306)
ReplicationDriver does not always round-robin load balance depending on URL used for slaves list. (Bug#19993)
Fixed calling toString() on ResultSetMetaData for driver-generated (that is, from DatabaseMetaData method calls, or from getGeneratedKeys()) result sets would raise a NullPointerException. (Bug#19993)
Connection fails to localhost when using timeout and IPv6 is configured. (Bug#19726)
ResultSet.getFloatFromString() can't retrieve values near Float.MIN/MAX_VALUE. (Bug#18880)
Fixed memory leak with profileSQL=true. (Bug#16987)
Fixed NullPointerException in MysqlDataSourceFactory due to Reference containing RefAddrs with null content. (Bug#16791)
Bugs fixed:
Fixed PreparedStatement.setObject(int, Object, int)doesn't respect scale of BigDecimals. (Bug#19615)Fixed
ResultSet.wasNull()returns incorrect value when extracting native string from server-side prepared statement generated result set. (Bug#19282)Fixed invalid classname returned for
ResultSetMetaData.getColumnClassName()forBIGINT type. (Bug#19282)Fixed case where driver wasn't reading server status correctly when fetching server-side prepared statement rows, which in some cases could cause warning counts to be off, or multiple result sets to not be read off the wire. (Bug#19282)
Fixed data truncation and
getWarnings()only returns last warning in set. (Bug#18740)Fixed aliased column names where length of name > 251 are corrupted. (Bug#18554)
Improved performance of retrieving
BigDecimal,Time,TimestampandDatevalues from server-side prepared statements by creating fewer short-lived instances ofStringswhen the native type is not an exact match for the requested type. (Bug#18496)Added performance feature, re-writing of batched executes for
Statement.executeBatch()(for all DML statements) andPreparedStatement.executeBatch()(for INSERTs with VALUE clauses only). Enable by using "rewriteBatchedStatements=true" in your JDBC URL. (Bug#18041)Fixed issue where server-side prepared statements don't cause truncation exceptions to be thrown when truncation happens. (Bug#18041)
Fixed
CallableStatement.registerOutParameter()not working when some parameters pre-populated. Still waiting for feedback from JDBC experts group to determine what correct parameter count fromgetMetaData()should be, however. (Bug#17898)Fixed calling
clearParameters()on a closed prepared statement causes NPE. (Bug#17587)Map "latin1" on MySQL server to CP1252 for MySQL > 4.1.0. (Bug#17587)
Added additional accessor and mutator methods on ConnectionProperties so that DataSource users can use same naming as regular URL properties. (Bug#17587)
Fixed
ResultSet.wasNull()not always reset correctly for booleans when done via conversion for server-side prepared statements. (Bug#17450)Fixed
Statement.getGeneratedKeys()throwsNullPointerExceptionwhen no query has been processed. (Bug#17099)Fixed updatable result set doesn't return
AUTO_INCREMENTvalues forinsertRow()when multiple column primary keys are used. (the driver was checking for the existence of single-column primary keys and an autoincrement value > 0 instead of a straightforwardisAutoIncrement()check). (Bug#16841)lib-nodistdirectory missing from package breaks out-of-box build. (Bug#15676)Fixed issue with
ReplicationConnectionincorrectly copying state, doesn't transfer connection context correctly when transitioning between the same read-only states. (Bug#15570)No "dos" character set in MySQL > 4.1.0. (Bug#15544)
INOUTparameter does not storeINvalue. (Bug#15464)PreparedStatement.setObject()serializesBigIntegeras object, rather than sending as numeric value (and is thus not complementary to.getObject()on anUNSIGNED LONGtype). (Bug#15383)Fixed issue where driver was unable to initialize character set mapping tables. Removed reliance on
.propertiesfiles to hold this information, as it turns out to be too problematic to code around class loader hierarchies that change depending on how an application is deployed. Moved information back into theCharsetMappingclass. (Bug#14938)Exception thrown for new decimal type when using updatable result sets. (Bug#14609)
Driver now aware of fix for
BITtype metadata that went into MySQL-5.0.21 for server not reporting length consistently . (Bug#13601)Added support for Apache Commons logging, use "com.mysql.jdbc.log.CommonsLogger" as the value for the "logger" configuration property. (Bug#13469)
Fixed driver trying to call methods that don't exist on older and newer versions of Log4j. The fix is not trying to auto-detect presence of log4j, too many different incompatible versions out there in the wild to do this reliably.
If you relied on autodetection before, you will need to add "logger=com.mysql.jdbc.log.Log4JLogger" to your JDBC URL to enable Log4J usage, or alternatively use the new "CommonsLogger" class to take care of this. (Bug#13469)
LogFactory now prepends "com.mysql.jdbc.log" to log class name if it can't be found as-specified. This allows you to use "short names" for the built-in log factories, for example "logger=CommonsLogger" instead of "logger=com.mysql.jdbc.log.CommonsLogger". (Bug#13469)
ResultSet.getShort()forUNSIGNED TINYINTreturned wrong values. (Bug#11874)
Bugs fixed:
Process escape tokens in
Connection.prepareStatement(...). You can disable this behavior by setting the JDBC URL configuration propertyprocessEscapeCodesForPrepStmtstofalse. (Bug#15141)Usage advisor complains about unreferenced columns, even though they've been referenced. (Bug#15065)
Driver incorrectly closes streams passed as arguments to
PreparedStatements. Reverts to legacy behavior by setting the JDBC configuration propertyautoClosePStmtStreamstotrue(also included in the 3-0-Compat configuration “bundle”). (Bug#15024)Deadlock while closing server-side prepared statements from multiple threads sharing one connection. (Bug#14972)
Unable to initialize character set mapping tables (due to J2EE classloader differences). (Bug#14938)
Escape processor replaces quote character in quoted string with string delimiter. (Bug#14909)
DatabaseMetaData.getColumns()doesn't returnTABLE_NAMEcorrectly. (Bug#14815)storesMixedCaseIdentifiers()returnsfalse(Bug#14562)storesLowerCaseIdentifiers()returnstrue(Bug#14562)storesMixedCaseQuotedIdentifiers()returnsfalse(Bug#14562)storesMixedCaseQuotedIdentifiers()returnstrue(Bug#14562)If
lower_case_table_names=0(on server):storesLowerCaseIdentifiers()returnsfalsestoresLowerCaseQuotedIdentifiers()returnsfalsestoresMixedCaseIdentifiers()returnstruestoresMixedCaseQuotedIdentifiers()returnstruestoresUpperCaseIdentifiers()returnsfalsestoresUpperCaseQuotedIdentifiers()returnstrue
storesUpperCaseIdentifiers()returnsfalse(Bug#14562)storesUpperCaseQuotedIdentifiers()returnstrue(Bug#14562)If
lower_case_table_names=1(on server):storesLowerCaseIdentifiers()returnstruestoresLowerCaseQuotedIdentifiers()returnstruestoresMixedCaseIdentifiers()returnsfalsestoresMixedCaseQuotedIdentifiers()returnsfalsestoresUpperCaseIdentifiers()returnsfalsestoresUpperCaseQuotedIdentifiers()returnstrue
storesLowerCaseQuotedIdentifiers()returnstrue(Bug#14562)Fixed
DatabaseMetaData.stores*Identifiers():If
lower_case_table_names=0(on server):storesLowerCaseIdentifiers()returnsfalsestoresLowerCaseQuotedIdentifiers()returnsfalsestoresMixedCaseIdentifiers()returnstruestoresMixedCaseQuotedIdentifiers()returnstruestoresUpperCaseIdentifiers()returnsfalsestoresUpperCaseQuotedIdentifiers()returnstrue
If
lower_case_table_names=1(on server):storesLowerCaseIdentifiers()returnstruestoresLowerCaseQuotedIdentifiers()returnstruestoresMixedCaseIdentifiers()returnsfalsestoresMixedCaseQuotedIdentifiers()returnsfalsestoresUpperCaseIdentifiers()returnsfalsestoresUpperCaseQuotedIdentifiers()returnstrue
storesMixedCaseIdentifiers()returnstrue(Bug#14562)storesLowerCaseQuotedIdentifiers()returnsfalse(Bug#14562)Java type conversion may be incorrect for
MEDIUMINT. (Bug#14562)storesLowerCaseIdentifiers()returnsfalse(Bug#14562)Added configuration property
useGmtMillisForDatetimeswhich when set totruecausesResultSet.getDate(),.getTimestamp()to return correct millis-since GMT when.getTime()is called on the return value (currently default isfalsefor legacy behavior). (Bug#14562)Extraneous sleep on
autoReconnect. (Bug#13775)Reconnect during middle of
executeBatch()should not occur ifautoReconnectis enabled. (Bug#13255)maxQuerySizeToLogis not respected. Added logging of bound values forexecute()phase of server-side prepared statements whenprofileSQL=trueas well. (Bug#13048)OpenOffice expects
DBMD.supportsIntegrityEnhancementFacility()to returntrueif foreign keys are supported by the datasource, even though this method also covers support for check constraints, which MySQL doesn't have. Setting the configuration propertyoverrideSupportsIntegrityEnhancementFacilitytotruecauses the driver to returntruefor this method. (Bug#12975)Added
com.mysql.jdbc.testsuite.url.defaultsystem property to set default JDBC url for testsuite (to speed up bug resolution when I'm working in Eclipse). (Bug#12975)logSlowQueriesshould give better info. (Bug#12230)Don't increase timeout for failover/reconnect. (Bug#6577)
Fixed client-side prepared statement bug with embedded
?characters inside quoted identifiers (it was recognized as a placeholder, when it was not).Don't allow
executeBatch()forCallableStatementswith registeredOUT/INOUTparameters (JDBC compliance).Fall back to platform-encoding for
URLDecoder.decode()when parsing driver URL properties if the platform doesn't have a two-argument version of this method.
Bugs fixed:
The configuration property
sessionVariablesnow allows you to specify variables that start with the “@” sign. (Bug#13453)URL configuration parameters don't allow “
&” or “=” in their values. The JDBC driver now parses configuration parameters as if they are encoded using the application/x-www-form-urlencoded format as specified byjava.net.URLDecoder(http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLDecoder.html).If the “
%” character is present in a configuration property, it must now be represented as%25, which is the encoded form of “%” when using application/x-www-form-urlencoded encoding. (Bug#13453)Workaround for Bug#13374:
ResultSet.getStatement()on closed result set returnsNULL(as per JDBC 4.0 spec, but not backward-compatible). Set the connection propertyretainStatementAfterResultSetClosetotrueto be able to retrieve aResultSet's statement after theResultSethas been closed via.getStatement()(the default isfalse, to be JDBC-compliant and to reduce the chance that code using JDBC leaksStatementinstances). (Bug#13277)ResultSetMetaDatafromStatement.getGeneratedKeys()caused aNullPointerExceptionto be thrown whenever a method that required a connection reference was called. (Bug#13277)Backport of
VAR[BINARY|CHAR] [BINARY]types detection from 5.0 branch. (Bug#13277)Fixed
NullPointerExceptionwhen convertingcatalogparameter in manyDatabaseMetaDataMethodstobyte[]s (for the result set) when the parameter isnull. (nullisn't technically allowed by the JDBC specification, but we've historically allowed it). (Bug#13277)Backport of
Fieldclass,ResultSetMetaData.getColumnClassName(), andResultSet.getObject(int)changes from 5.0 branch to fix behavior surroundingVARCHAR BINARY/VARBINARYand related types. (Bug#13277)Read response in
MysqlIO.sendFileToServer(), even if the local file can't be opened, otherwise next query issued will fail, because it is reading the response to the emptyLOAD DATA INFILEpacket sent to the server. (Bug#13277)When
gatherPerfMetricsis enabled for servers older than 4.1.0, aNullPointerExceptionis thrown from the constructor ofResultSetif the query doesn't use any tables. (Bug#13043)java.sql.Types.OTHERreturned forBINARYandVARBINARYcolumns when usingDatabaseMetaData.getColumns(). (Bug#12970)ServerPreparedStatement.getBinding()now checks if the statement is closed before attempting to reference the list of parameter bindings, to avoid throwing aNullPointerException. (Bug#12970)Tokenizer for
=in URL properties was causingsessionVariables=....to be parameterized incorrectly. (Bug#12753)cp1251incorrectly mapped towin1251for servers newer than 4.0.x. (Bug#12752)getExportedKeys()(Bug#12541)Specifying a catalog works as stated in the API docs. (Bug#12541)
Specifying
NULLmeans that catalog will not be used to filter the results (thus all databases will be searched), unless you've setnullCatalogMeansCurrent=truein your JDBC URL properties. (Bug#12541)getIndexInfo()(Bug#12541)getProcedures()(and thus indirectlygetProcedureColumns()) (Bug#12541)getImportedKeys()(Bug#12541)Specifying
""means “current” catalog, even though this isn't quite JDBC spec compliant, it is there for legacy users. (Bug#12541)getCrossReference()(Bug#12541)Added
Connection.isMasterConnection()for clients to be able to determine if a multi-host master/slave connection is connected to the first host in the list. (Bug#12541)getColumns()(Bug#12541)Handling of catalog argument in
DatabaseMetaData.getIndexInfo(), which also means changes to the following methods inDatabaseMetaData:getBestRowIdentifier()getColumns()getCrossReference()getExportedKeys()getImportedKeys()getIndexInfo()getPrimaryKeys()getProcedures()(and thus indirectlygetProcedureColumns())getTables()
The
catalogargument in all of these methods now behaves in the following way:Specifying
NULLmeans that catalog will not be used to filter the results (thus all databases will be searched), unless you've setnullCatalogMeansCurrent=truein your JDBC URL properties.Specifying
""means “current” catalog, even though this isn't quite JDBC spec compliant, it is there for legacy users.Specifying a catalog works as stated in the API docs.
Made
Connection.clientPrepare()available from “wrapped” connections in thejdbc2.optionalpackage (connections built byConnectionPoolDataSourceinstances).
getBestRowIdentifier()(Bug#12541)Made
Connection.clientPrepare()available from “wrapped” connections in thejdbc2.optionalpackage (connections built byConnectionPoolDataSourceinstances). (Bug#12541)getTables()(Bug#12541)getPrimaryKeys()(Bug#12541)Connection.prepareCall()is database name case-sensitive (on Windows systems). (Bug#12417)explainSlowQuerieshangs with server-side prepared statements. (Bug#12229)Properties shared between master and slave with replication connection. (Bug#12218)
Geometry types not handled with server-side prepared statements. (Bug#12104)
maxPerformance.propertiesmis-spells “elideSetAutoCommits”. (Bug#11976)ReplicationConnectionwon't switch to slave, throws “Catalog can't be null” exception. (Bug#11879)Pstmt.setObject(...., Types.BOOLEAN)throws exception. (Bug#11798)Escape tokenizer doesn't respect stacked single quotes for escapes. (Bug#11797)
GEOMETRYtype not recognized when using server-side prepared statements. (Bug#11797)Foreign key information that is quoted is parsed incorrectly when
DatabaseMetaDatamethods use that information. (Bug#11781)The
sendBlobChunkSizeproperty is now clamped tomax_allowed_packetwith consideration of stream buffer size and packet headers to avoidPacketTooBigExceptionswhenmax_allowed_packetis similar in size to the defaultsendBlobChunkSizewhich is 1M. (Bug#11781)CallableStatement.clearParameters()now clears resources associated withINOUT/OUTPUTparameters as well asINPUTparameters. (Bug#11781)Fixed regression caused by fix for Bug#11552 that caused driver to return incorrect values for unsigned integers when those integers where within the range of the positive signed type. (Bug#11663)
Moved source code to Subversion repository. (Bug#11663)
Incorrect generation of testcase scripts for server-side prepared statements. (Bug#11663)
Fixed statements generated for testcases missing
;for “plain” statements. (Bug#11629)Spurious
!on console when character encoding isutf8. (Bug#11629)StringUtils.getBytes()doesn't work when using multi-byte character encodings and a length in characters is specified. (Bug#11614)DBMD.storesLower/Mixed/UpperIdentifiers()reports incorrect values for servers deployed on Windows. (Bug#11575)Reworked
Fieldclass,*Buffer, andMysqlIOto be aware of field lengths >Integer.MAX_VALUE. (Bug#11498)Escape processor didn't honor strings demarcated with double quotes. (Bug#11498)
Updated
DBMD.supportsCorrelatedQueries()to returntruefor versions > 4.1,supportsGroupByUnrelated()to returntrueandgetResultSetHoldability()to returnHOLD_CURSORS_OVER_COMMIT. (Bug#11498)Lifted restriction of changing streaming parameters with server-side prepared statements. As long as
allstreaming parameters were set before execution,.clearParameters()does not have to be called. (due to limitation of client/server protocol, prepared statements can not reset individual stream data on the server side). (Bug#11498)ResultSet.moveToCurrentRow()fails to work when preceded by a call toResultSet.moveToInsertRow(). (Bug#11190)VARBINARYdata corrupted when using server-side prepared statements and.setBytes(). (Bug#11115)Statement.getWarnings()fails with NPE if statement has been closed. (Bug#10630)Only get
char[]from SQL inPreparedStatement.ParseInfo()when needed. (Bug#10630)
Bugs fixed:
Initial implemention of
ParameterMetadataforPreparedStatement.getParameterMetadata(). Only works fully forCallableStatements, as current server-side prepared statements return every parameter as aVARCHARtype.Fixed connecting without a database specified raised an exception in
MysqlIO.changeDatabaseTo().
Bugs fixed:
Production package doesn't include JBoss integration classes. (Bug#11411)
Removed nonsensical “costly type conversion” warnings when using usage advisor. (Bug#11411)
Fixed
PreparedStatement.setClob()not acceptingnullas a parameter. (Bug#11360)Connector/J dumping query into
SQLExceptiontwice. (Bug#11360)autoReconnectping causes exception on connection startup. (Bug#11259)Connection.setCatalog()is now aware of theuseLocalSessionStateconfiguration property, which when set totruewill prevent the driver from sendingUSE ...to the server if the requested catalog is the same as the current catalog. (Bug#11115)3-0-Compat— Compatibility with Connector/J 3.0.x functionality (Bug#11115)maxPerformance— maximum performance without being reckless (Bug#11115)solarisMaxPerformance— maximum performance for Solaris, avoids syscalls where it can (Bug#11115)Added
maintainTimeStatsconfiguration property (defaults totrue), which tells the driver whether or not to keep track of the last query time and the last successful packet sent to the server's time. If set tofalse, removes two syscalls per query. (Bug#11115)VARBINARYdata corrupted when using server-side prepared statements andResultSet.getBytes(). (Bug#11115)Added the following configuration bundles, use one or many via the
useConfigsconfiguration property:maxPerformance— maximum performance without being recklesssolarisMaxPerformance— maximum performance for Solaris, avoids syscalls where it can3-0-Compat— Compatibility with Connector/J 3.0.x functionality
Try to handle
OutOfMemoryErrorsmore gracefully. Although not much can be done, they will in most cases close the connection they happened on so that further operations don't run into a connection in some unknown state. When an OOM has happened, any further operations on the connection will fail with a “Connection closed” exception that will also list the OOM exception as the reason for the implicit connection close event. (Bug#10850)Setting
cachePrepStmts=truenow causes theConnectionto also cache the check the driver performs to determine if a prepared statement can be server-side or not, as well as caches server-side prepared statements for the lifetime of a connection. As before, theprepStmtCacheSizeparameter controls the size of these caches. (Bug#10850)Don't send
COM_RESET_STMTfor each execution of a server-side prepared statement if it isn't required. (Bug#10850)0-length streams not sent to server when using server-side prepared statements. (Bug#10850)
Driver detects if you're running MySQL-5.0.7 or later, and does not scan for
LIMIT ?[,?]in statements being prepared, as the server supports those types of queries now. (Bug#10850)Reorganized directory layout. Sources now are in
srcfolder. Don't pollute parent directory when building, now output goes to./build, distribution goes to./dist. (Bug#10496)Added support/bug hunting feature that generates
.sqltest scripts toSTDERRwhenautoGenerateTestcaseScriptis set totrue. (Bug#10496)SQLExceptionis thrown when using propertycharacterSetResultswithcp932oreucjpms. (Bug#10496)The datatype returned for
TINYINT(1)columns whentinyInt1isBit=true(the default) can be switched betweenTypes.BOOLEANandTypes.BITusing the new configuration propertytransformedBitIsBoolean, which defaults tofalse. If set tofalse(the default),DatabaseMetaData.getColumns()andResultSetMetaData.getColumnType()will returnTypes.BOOLEANforTINYINT(1)columns. Iftrue,Types.BOOLEANwill be returned instead. Regardless of this configuration property, iftinyInt1isBitis enabled, columns with the typeTINYINT(1)will be returned asjava.lang.Booleaninstances fromResultSet.getObject(...), andResultSetMetaData.getColumnClassName()will returnjava.lang.Boolean. (Bug#10485)SQLExceptionthrown when retrievingYEAR(2)withResultSet.getString(). The driver will now always treatYEARtypes asjava.sql.Datesand return the correct values forgetString(). Alternatively, theyearIsDateTypeconnection property can be set tofalseand the values will be treated asSHORTs. (Bug#10485)Driver doesn't support
{?=CALL(...)}for calling stored functions. This involved adding support for function retrieval toDatabaseMetaData.getProcedures()andgetProcedureColumns()as well. (Bug#10310)Unsigned
SMALLINTtreated as signed forResultSet.getInt(), fixed all cases forUNSIGNEDinteger values and server-side prepared statements, as well asResultSet.getObject()forUNSIGNED TINYINT. (Bug#10156)Made
ServerPreparedStatement.asSql()work correctly so auto-explain functionality would work with server-side prepared statements. (Bug#10155)Double quotes not recognized when parsing client-side prepared statements. (Bug#10155)
Made JDBC2-compliant wrappers public in order to allow access to vendor extensions. (Bug#10155)
DatabaseMetaData.supportsMultipleOpenResults()now returnstrue. The driver has supported this for some time, DBMD just missed that fact. (Bug#10155)Cleaned up logging of profiler events, moved code to dump a profiler event as a string to
com.mysql.jdbc.log.LogUtilsso that third parties can use it. (Bug#10155)Made
enableStreamingResults()visible oncom.mysql.jdbc.jdbc2.optional.StatementWrapper. (Bug#10155)Actually write manifest file to correct place so it ends up in the binary jar file. (Bug#10144)
Added
createDatabaseIfNotExistproperty (default isfalse), which will cause the driver to ask the server to create the database specified in the URL if it doesn't exist. You must have the appropriate privileges for database creation for this to work. (Bug#10144)Memory leak in
ServerPreparedStatementifserverPrepare()fails. (Bug#10144)com.mysql.jdbc.PreparedStatement.ParseInfodoes unnecessary call totoCharArray(). (Bug#9064)Driver now correctly uses CP932 if available on the server for Windows-31J, CP932 and MS932 java encoding names, otherwise it resorts to SJIS, which is only a close approximation. Currently only MySQL-5.0.3 and newer (and MySQL-4.1.12 or .13, depending on when the character set gets backported) can reliably support any variant of CP932.
Overhaul of character set configuration, everything now lives in a properties file.
Bugs fixed:
Should accept
nullfor catalog (meaning use current) in DBMD methods, even though it is not JDBC-compliant for legacy's sake. Disable by setting connection propertynullCatalogMeansCurrenttofalse(which will be the default value in C/J 3.2.x). (Bug#9917)Fixed driver not returning
truefor-1whenResultSet.getBoolean()was called on result sets returned from server-side prepared statements. (Bug#9778)Added a
Manifest.MFfile with implementation information to the.jarfile. (Bug#9778)More tests in
Field.isOpaqueBinary()to distinguish opaque binary (that is, fields with typeCHAR(n)andCHARACTER SET BINARY) from output of various scalar and aggregate functions that return strings. (Bug#9778)DBMD.getTables()shouldn't return tables if views are asked for, even if the database version doesn't support views. (Bug#9778)Should accept
nullfor name patterns in DBMD (meaning “%”), even though it isn't JDBC compliant, for legacy's sake. Disable by setting connection propertynullNamePatternMatchesAlltofalse(which will be the default value in C/J 3.2.x). (Bug#9769)The performance metrics feature now gathers information about number of tables referenced in a SELECT. (Bug#9704)
The logging system is now automatically configured. If the value has been set by the user, via the URL property
loggeror the system propertycom.mysql.jdbc.logger, then use that, otherwise, autodetect it using the following steps:Log4j, if it is available,
Then JDK1.4 logging,
Then fallback to our
STDERRlogging.
(Bug#9704)
Statement.getMoreResults()could throw NPE when existing result set was.close()d. (Bug#9704)Stored procedures with
DECIMALparameters with storage specifications that contained “,” in them would fail. (Bug#9682)PreparedStatement.setObject(int, Object, int type, int scale)now uses scale value forBigDecimalinstances. (Bug#9682)Added support for the c3p0 connection pool's (http://c3p0.sf.net/) validation/connection checker interface which uses the lightweight
COM_PINGcall to the server if available. To use it, configure your c3p0 connection pool'sconnectionTesterClassNameproperty to usecom.mysql.jdbc.integration.c3p0.MysqlConnectionTester. (Bug#9320)PreparedStatement.getMetaData()inserts blank row in database under certain conditions when not using server-side prepared statements. (Bug#9320)Better detection of
LIMITinside/outside of quoted strings so that the driver can more correctly determine whether a prepared statement can be prepared on the server or not. (Bug#9320)Connection.canHandleAsPreparedStatement()now makes “best effort” to distinguishLIMITclauses with placeholders in them from ones without in order to have fewer false positives when generating work-arounds for statements the server cannot currently handle as server-side prepared statements. (Bug#9320)Fixed
build.xmlto not compilelog4jlogging iflog4jnot available. (Bug#9320)Added finalizers to
ResultSetandStatementimplementations to be JDBC spec-compliant, which requires that if not explicitly closed, these resources should be closed upon garbage collection. (Bug#9319)Stored procedures with same name in different databases confuse the driver when it tries to determine parameter counts/types. (Bug#9319)
A continuation of Bug#8868, where functions used in queries that should return nonstring types when resolved by temporary tables suddenly become opaque binary strings (work-around for server limitation). Also fixed fields with type of
CHAR(n) CHARACTER SET BINARYto return correct/matching classes forRSMD.getColumnClassName()andResultSet.getObject(). (Bug#9236)Cannot use
UTF-8for characterSetResults configuration property. (Bug#9206)PreparedStatement.addBatch()doesn't work with server-side prepared statements and streamingBINARYdata. (Bug#9040)ServerPreparedStatementsnow correctly “stream”BLOB/CLOBdata to the server. You can configure the threshold chunk size using the JDBC URL propertyblobSendChunkSize(the default is 1MB). (Bug#8868)DATE_FORMAT()queries returned asBLOBs fromgetObject(). (Bug#8868)Server-side session variables can be preset at connection time by passing them as a comma-delimited list for the connection property
sessionVariables. (Bug#8868)BlobFromLocatornow uses correct identifier quoting when generating prepared statements. (Bug#8868)Fixed regression in
ping()for users usingautoReconnect=true. (Bug#8868)Check for empty strings (
'') when convertingCHAR/VARCHARcolumn data to numbers, throw exception ifemptyStringsConvertToZeroconfiguration property is set tofalse(for backward-compatibility with 3.0, it is now set totrueby default, but will most likely default tofalsein 3.2). (Bug#8803)DATA_TYPEcolumn fromDBMD.getBestRowIdentifier()causesArrayIndexOutOfBoundsExceptionwhen accessed (and in fact, didn't return any value). (Bug#8803)DBMD.supportsMixedCase*Identifiers()returns wrong value on servers running on case-sensitive file systems. (Bug#8800)DBMD.supportsResultSetConcurrency()not returningtruefor forward-only/read-only result sets (we obviously support this). (Bug#8792)Fixed
ResultSet.getTime()on aNULLvalue for server-side prepared statements throws NPE.Made
Connection.ping()a public method.Added support for new precision-math
DECIMALtype in MySQL 5.0.3 and up.Fixed
DatabaseMetaData.getTables()returning views when they were not asked for as one of the requested table types.
Bugs fixed:
PreparedStatementsnot creating streaming result sets. (Bug#8487)Don't pass
NULLtoString.valueOf()inResultSet.getNativeConvertToString(), as it stringifies it (that is, returnsnull), which is not correct for the method in question. (Bug#8487)Fixed NPE in
ResultSet.realClose()when using usage advisor and result set was already closed. (Bug#8428)ResultSet.getString()doesn't maintain format stored on server, bug fix only enabled whennoDatetimeStringSyncproperty is set totrue(the default isfalse). (Bug#8428)Added support for
BITtype in MySQL-5.0.3. The driver will treatBIT(1-8)as the JDBC standardBITtype (which maps tojava.lang.Boolean), as the server does not currently send enough information to determine the size of a bitfield when < 9 bits are declared.BIT(>9)will be treated asVARBINARY, and will returnbyte[]whengetObject()is called. (Bug#8424)Added
useLocalSessionStateconfiguration property, when set totruethe JDBC driver trusts that the application is well-behaved and only sets autocommit and transaction isolation levels using the methods provided onjava.sql.Connection, and therefore can manipulate these values in many cases without incurring round-trips to the database server. (Bug#8424)Added
enableStreamingResults()toStatementfor connection pool implementations that checkStatement.setFetchSize()for specification-compliant values. CallStatement.setFetchSize(>=0)to disable the streaming results for that statement. (Bug#8424)ResultSet.getBigDecimal()throws exception when rounding would need to occur to set scale. The driver now chooses a rounding mode of “half up” if nonroundingBigDecimal.setScale()fails. (Bug#8424)Fixed synchronization issue with
ServerPreparedStatement.serverPrepare()that could cause deadlocks/crashes if connection was shared between threads. (Bug#8096)Emulated locators corrupt binary data when using server-side prepared statements. (Bug#8096)
Infinite recursion when “falling back” to master in failover configuration. (Bug#7952)
Disable multi-statements (if enabled) for MySQL-4.1 versions prior to version 4.1.10 if the query cache is enabled, as the server returns wrong results in this configuration. (Bug#7952)
Removed
dontUnpackBinaryResultsfunctionality, the driver now always stores results from server-side prepared statements as is from the server and unpacks them on demand. (Bug#7952)Fixed duplicated code in
configureClientCharset()that preventeduseOldUTF8Behavior=truefrom working properly. (Bug#7952)Added
holdResultsOpenOverStatementCloseproperty (default isfalse), that keeps result sets open over statement.close() or new execution on same statement (suggested by Kevin Burton). (Bug#7715)Detect new
sql_modevariable in string form (it used to be integer) and adjust quoting method for strings appropriately. (Bug#7715)Timestamps converted incorrectly to strings with server-side prepared statements and updatable result sets. (Bug#7715)
Timestamp key column data needed
_binarystripped forUpdatableResultSet.refreshRow(). (Bug#7686)Choose correct “direction” to apply time adjustments when both client and server are in GMT time zone when using
ResultSet.get(..., cal)andPreparedStatement.set(...., cal). (Bug#4718)Remove
_binaryintroducer from parameters used as in/out parameters inCallableStatement. (Bug#4718)Always return
byte[]s for output parameters registered as*BINARY. (Bug#4718)By default, the driver now scans SQL you are preparing via all variants of
Connection.prepareStatement()to determine if it is a supported type of statement to prepare on the server side, and if it is not supported by the server, it instead prepares it as a client-side emulated prepared statement. You can disable this by passingemulateUnsupportedPstmts=falsein your JDBC URL. (Bug#4718)Added
dontTrackOpenResourcesoption (default isfalse, to be JDBC compliant), which helps with memory use for nonwell-behaved apps (that is, applications that don't closeStatementobjects when they should). (Bug#4718)Send correct value for “boolean”
trueto server forPreparedStatement.setObject(n, "true", Types.BIT). (Bug#4718)Fixed bug with Connection not caching statements from
prepareStatement()when the statement wasn't a server-side prepared statement. (Bug#4718)
Bugs fixed:
DBMD.getProcedures()doesn't respect catalog parameter. (Bug#7026)Fixed hang on
SocketInputStream.read()withStatement.setMaxRows()and multiple result sets when driver has to truncate result set directly, rather than tacking aLIMITon the end of it.n
Bugs fixed:
Use 1MB packet for sending file for
LOAD DATA LOCAL INFILEif that is <max_allowed_packeton server. (Bug#6537)SUM()onDECIMALwith server-side prepared statement ignores scale if zero-padding is needed (this ends up being due to conversion toDOUBLEby server, which when converted to a string to parse intoBigDecimal, loses all “padding” zeros). (Bug#6537)Use
DatabaseMetaData.getIdentifierQuoteString()when building DBMD queries. (Bug#6537)Use our own implementation of buffered input streams to get around blocking behavior of
java.io.BufferedInputStream. Disable this withuseReadAheadInput=false. (Bug#6399)Make auto-deserialization of
java.lang.Objectsstored inBLOBcolumns configurable viaautoDeserializeproperty (defaults tofalse). (Bug#6399)ResultSetMetaData.getColumnDisplaySize()returns incorrect values for multi-byte charsets. (Bug#6399)Re-work
Field.isOpaqueBinary()to detectCHAR(to support fixed-length binary fields forn) CHARACTER SET BINARYResultSet.getObject(). (Bug#6399)Failing to connect to the server when one of the addresses for the given host name is IPV6 (which the server does not yet bind on). The driver now loops through all IP addresses for a given host, and stops on the first one that
accepts()asocket.connect(). (Bug#6348)Removed unwanted new
Throwable()inResultSetconstructor due to bad merge (caused a new object instance that was never used for every result set created). Found while profiling for Bug#6359. (Bug#6225)ServerSidePreparedStatementallocating short-lived objects unnecessarily. (Bug#6225)Use null-safe-equals for key comparisons in updatable result sets. (Bug#6225)
Fixed too-early creation of
StringBufferinEscapeProcessor.escapeSQL(), also returnStringwhen escaping not needed (to avoid unnecessary object allocations). Found while profiling for Bug#6359. (Bug#6225)UNSIGNED BIGINTunpacked incorrectly from server-side prepared statement result sets. (Bug#5729)Added experimental configuration property
dontUnpackBinaryResults, which delays unpacking binary result set values until they're asked for, and only creates object instances for nonnumerical values (it is set tofalseby default). For some usecase/jvm combinations, this is friendlier on the garbage collector. (Bug#5706)Don't throw exceptions for
Connection.releaseSavepoint(). (Bug#5706)Inefficient detection of pre-existing string instances in
ResultSet.getNativeString(). (Bug#5706)Use a per-session
Calendarinstance by default when decoding dates fromServerPreparedStatements(set to old, less performant behavior by setting propertydynamicCalendars=true). (Bug#5706)Fixed batched updates with server prepared statements weren't looking if the types had changed for a given batched set of parameters compared to the previous set, causing the server to return the error “Wrong arguments to mysql_stmt_execute()”. (Bug#5235)
Handle case when string representation of timestamp contains trailing “
.” with no numbers following it. (Bug#5235)Server-side prepared statements did not honor
zeroDateTimeBehaviorproperty, and would cause class-cast exceptions when usingResultSet.getObject(), as the all-zero string was always returned. (Bug#5235)Fix comparisons made between string constants and dynamic strings that are converted with either
toUpperCase()ortoLowerCase()to useLocale.ENGLISH, as some locales “override” case rules for English. Also useStringUtils.indexOfIgnoreCase()instead of.toUpperCase().indexOf(), avoids creating a very short-lived transientStringinstance.
Bugs fixed:
Fixed
ServerPreparedStatementto read prepared statement metadata off the wire, even though it is currently a placeholder instead of usingMysqlIO.clearInputStream()which didn't work at various times because data wasn't available to read from the server yet. This fixes sporadic errors users were having withServerPreparedStatementsthrowingArrayIndexOutOfBoundExceptions. (Bug#5032)Added three ways to deal with all-zero datetimes when reading them from a
ResultSet:exception(the default), which throws anSQLExceptionwith an SQLState ofS1009;convertToNull, which returnsNULLinstead of the date; andround, which rounds the date to the nearest closest value which is'0001-01-01'. (Bug#5032)The driver is more strict about truncation of numerics on
ResultSet.get*(), and will throw anSQLExceptionwhen truncation is detected. You can disable this by settingjdbcCompliantTruncationtofalse(it is enabled by default, as this functionality is required for JDBC compliance). (Bug#5032)You can now use URLs in
LOAD DATA LOCAL INFILEstatements, and the driver will use Java's built-in handlers for retreiving the data and sending it to the server. This feature is not enabled by default, you must set theallowUrlInLocalInfileconnection property totrue. (Bug#5032)ResultSet.getObject()doesn't return typeBooleanfor pseudo-bit types from prepared statements on 4.1.x (shortcut for avoiding extra type conversion when using binary-encoded result sets obscured test ingetObject()for “pseudo” bit type). (Bug#5032)Use
com.mysql.jdbc.Message's classloader when loading resource bundle, should fix sporadic issues when the caller's classloader can't locate the resource bundle. (Bug#5032)ServerPreparedStatementsdealing with return ofDECIMALtype don't work. (Bug#5012)Track packet sequence numbers if
enablePacketDebug=true, and throw an exception if packets received out-of-order. (Bug#4689)ResultSet.wasNull()does not work for primatives if a previousnullwas returned. (Bug#4689)Optimized integer number parsing, enable “old” slower integer parsing using JDK classes via
useFastIntParsing=falseproperty. (Bug#4642)Added
useOnlyServerErrorMessagesproperty, which causes message text in exceptions generated by the server to only contain the text sent by the server (as opposed to the SQLState's “standard” description, followed by the server's error message). This property is set totrueby default. (Bug#4642)ServerPreparedStatement.execute*()sometimes threwArrayIndexOutOfBoundsExceptionwhen unpacking field metadata. (Bug#4642)Connector/J 3.1.3 beta does not handle integers correctly (caused by changes to support unsigned reads in
Buffer.readInt()->Buffer.readShort()). (Bug#4510)Added support in
DatabaseMetaData.getTables()andgetTableTypes()for views, which are now available in MySQL server 5.0.x. (Bug#4510)ResultSet.getObject()returns wrong type for strings when using prepared statements. (Bug#4482)Calling
MysqlPooledConnection.close()twice (even though an application error), caused NPE. Fixed. (Bug#4482)
Bugs fixed:
Support new time zone variables in MySQL-4.1.3 when
useTimezone=true. (Bug#4311)Error in retrieval of
mediumintcolumn with prepared statements and binary protocol. (Bug#4311)Support for unsigned numerics as return types from prepared statements. This also causes a change in
ResultSet.getObject()for thebigint unsignedtype, which used to returnBigDecimalinstances, it now returns instances ofjava.lang.BigInteger. (Bug#4311)Externalized more messages (on-going effort). (Bug#4119)
Null bitmask sent for server-side prepared statements was incorrect. (Bug#4119)
Added constants for MySQL error numbers (publicly accessible, see
com.mysql.jdbc.MysqlErrorNumbers), and the ability to generate the mappings of vendor error codes to SQLStates that the driver uses (for documentation purposes). (Bug#4119)Added packet debuging code (see the
enablePacketDebugproperty documentation). (Bug#4119)Use SQL Standard SQL states by default, unless
useSqlStateCodesproperty is set tofalse. (Bug#4119)Mangle output parameter names for
CallableStatementsso they will not clash with user variable names.Added support for
INOUTparameters inCallableStatements.
Bugs fixed:
Don't enable server-side prepared statements for server version 5.0.0 or 5.0.1, as they aren't compatible with the '4.1.2+' style that the driver uses (the driver expects information to come back that isn't there, so it hangs). (Bug#3804)
getWarnings()returnsSQLWarninginstead ofDataTruncation. (Bug#3804)getProcedureColumns()doesn't work with wildcards for procedure name. (Bug#3540)getProcedures()does not return any procedures in result set. (Bug#3539)Fixed
DatabaseMetaData.getProcedures()when run on MySQL-5.0.0 (output ofSHOW PROCEDURE STATUSchanged between 5.0.0 and 5.0.1. (Bug#3520)Added
connectionCollationproperty to cause driver to issueset collation_connection=...query on connection init if default collation for given charset is not appropriate. (Bug#3520)DBMD.getSQLStateType()returns incorrect value. (Bug#3520)Correctly map output parameters to position given in
prepareCall()versus. order implied duringregisterOutParameter(). (Bug#3146)Cleaned up detection of server properties. (Bug#3146)
Correctly detect initial character set for servers >= 4.1.0. (Bug#3146)
Support placeholder for parameter metadata for server >= 4.1.2. (Bug#3146)
Added
gatherPerformanceMetricsproperty, along with properties to control when/where this info gets logged (see docs for more info).Fixed case when no parameters could cause a
NullPointerExceptioninCallableStatement.setOutputParameters().Enabled callable statement caching via
cacheCallableStmtsproperty.Fixed sending of split packets for large queries, enabled nio ability to send large packets as well.
Added
.toString()functionality toServerPreparedStatement, which should help if you're trying to debug a query that is a prepared statement (it shows SQL as the server would process).Added
logSlowQueriesproperty, along withslowQueriesThresholdMillisproperty to control when a query should be considered “slow.”Removed wrapping of exceptions in
MysqlIO.changeUser().Fixed stored procedure parameter parsing info when size was specified for a parameter (for example,
char(),varchar()).ServerPreparedStatementsweren't actually de-allocating server-side resources when.close()was called.Fixed case when no output parameters specified for a stored procedure caused a bogus query to be issued to retrieve out parameters, leading to a syntax error from the server.
Bugs fixed:
Use DocBook version of docs for shipped versions of drivers. (Bug#2671)
NULLfields were not being encoded correctly in all cases in server-side prepared statements. (Bug#2671)Fixed rare buffer underflow when writing numbers into buffers for sending prepared statement execution requests. (Bug#2671)
Fixed
ConnectionPropertiesthat weren't properly exposed via accessors, cleaned upConnectionPropertiescode. (Bug#2623)Class-cast exception when using scrolling result sets and server-side prepared statements. (Bug#2623)
Merged unbuffered input code from 3.0. (Bug#2623)
Enabled streaming of result sets from server-side prepared statements. (Bug#2606)
Server-side prepared statements were not returning datatype
YEARcorrectly. (Bug#2606)Fixed charset conversion issue in
getTables(). (Bug#2502)Implemented multiple result sets returned from a statement or stored procedure. (Bug#2502)
Implemented
Connection.prepareCall(), andDatabaseMetaData.getProcedures()andgetProcedureColumns(). (Bug#2359)Merged prepared statement caching, and
.getMetaData()support from 3.0 branch. (Bug#2359)Fixed off-by-1900 error in some cases for years in
TimeUtil.fastDate/TimeCreate()when unpacking results from server-side prepared statements. (Bug#2359)Reset
long binaryparameters inServerPreparedStatementwhenclearParameters()is called, by sendingCOM_RESET_STMTto the server. (Bug#2359)NULLvalues for numeric types in binary encoded result sets causingNullPointerExceptions. (Bug#2359)Display where/why a connection was implicitly closed (to aid debugging). (Bug#1673)
DatabaseMetaData.getColumns()is not returning correct column ordinal info for non-'%'column name patterns. (Bug#1673)Fixed
NullPointerExceptioninServerPreparedStatement.setTimestamp(), as well as year and month descrepencies inServerPreparedStatement.setTimestamp(),setDate(). (Bug#1673)Added ability to have multiple database/JVM targets for compliance and regression/unit tests in
build.xml. (Bug#1673)Fixed sending of queries larger than 16M. (Bug#1673)
Merged fix of datatype mapping from MySQL type
FLOATtojava.sql.Types.REALfrom 3.0 branch. (Bug#1673)Fixed NPE and year/month bad conversions when accessing some datetime functionality in
ServerPreparedStatementsand their resultant result sets. (Bug#1673)Added named and indexed input/output parameter support to
CallableStatement. MySQL-5.0.x or newer. (Bug#1673)CommunicationsExceptionimplemented, that tries to determine why communications was lost with a server, and displays possible reasons when.getMessage()is called. (Bug#1673)Detect collation of column for
RSMD.isCaseSensitive(). (Bug#1673)Optimized
Buffer.readLenByteArray()to return shared empty byte array when length is 0.Fix support for table aliases when checking for all primary keys in
UpdatableResultSet.Unpack “unknown” data types from server prepared statements as
Strings.Implemented
Statement.getWarnings()for MySQL-4.1 and newer (usingSHOW WARNINGS).Ensure that warnings are cleared before executing queries on prepared statements, as-per JDBC spec (now that we support warnings).
Correctly initialize datasource properties from JNDI Refs, including explicitly specified URLs.
Implemented long data (Blobs, Clobs, InputStreams, Readers) for server prepared statements.
Deal with 0-length tokens in
EscapeProcessor(caused by callable statement escape syntax).DatabaseMetaDatanow reportssupportsStoredProcedures()for MySQL versions >= 5.0.0Support for
mysql_change_user(). See thechangeUser()method incom.mysql.jdbc.Connection.Removed
useFastDatesconnection property.Support for NIO. Use
useNIO=trueon platforms that support NIO.Check for closed connection on delete/update/insert row operations in
UpdatableResultSet.Support for transaction savepoints (MySQL >= 4.0.14 or 4.1.1).
Support “old”
profileSqlcapitalization inConnectionProperties. This property is deprecated, you should useprofileSQLif possible.Fixed character encoding issues when converting bytes to ASCII when MySQL doesn't provide the character set, and the JVM is set to a multi-byte encoding (usually affecting retrieval of numeric values).
Centralized setting of result set type and concurrency.
Fixed bug with
UpdatableResultSetsnot using client-side prepared statements.Default result set type changed to
TYPE_FORWARD_ONLY(JDBC compliance).Fixed
IllegalAccessErrortoCalendar.getTimeInMillis()inDateTimeValue(for JDK < 1.4).Allow contents of
PreparedStatement.setBlob()to be retained between calls to.execute*().Fixed stack overflow in
Connection.prepareCall()(bad merge).Refactored how connection properties are set and exposed as
DriverPropertyInfoas well asConnectionandDataSourceproperties.Reduced number of methods called in average query to be more efficient.
Prepared
Statementswill be re-prepared on auto-reconnect. Any errors encountered are postponed until first attempt to re-execute the re-prepared statement.
Bugs fixed:
Added
useServerPrepStmtsproperty (defaultfalse). The driver will use server-side prepared statements when the server version supports them (4.1 and newer) when this property is set totrue. It is currently set tofalseby default until all bind/fetch functionality has been implemented. Currently only DML prepared statements are implemented for 4.1 server-side prepared statements.Added
requireSSLproperty.Track open
Statements, close all whenConnection.close()is called (JDBC compliance).
- C.7.4.1. Changes in MySQL Connector/J 3.0.17 (23 June 2005)
- C.7.4.2. Changes in MySQL Connector/J 3.0.16 (15 November 2004)
- C.7.4.3. Changes in MySQL Connector/J 3.0.15 (04 September 2004)
- C.7.4.4. Changes in MySQL Connector/J 3.0.14 (28 May 2004)
- C.7.4.5. Changes in MySQL Connector/J 3.0.13 (27 May 2004)
- C.7.4.6. Changes in MySQL Connector/J 3.0.12 (18 May 2004)
- C.7.4.7. Changes in MySQL Connector/J 3.0.11 (19 February 2004)
- C.7.4.8. Changes in MySQL Connector/J 3.0.10 (13 January 2004)
- C.7.4.9. Changes in MySQL Connector/J 3.0.9 (07 October 2003)
- C.7.4.10. Changes in MySQL Connector/J 3.0.8 (23 May 2003)
- C.7.4.11. Changes in MySQL Connector/J 3.0.7 (08 April 2003)
- C.7.4.12. Changes in MySQL Connector/J 3.0.6 (18 February 2003)
- C.7.4.13. Changes in MySQL Connector/J 3.0.5 (22 January 2003)
- C.7.4.14. Changes in MySQL Connector/J 3.0.4 (06 January 2003)
- C.7.4.15. Changes in MySQL Connector/J 3.0.3 (17 December 2002)
- C.7.4.16. Changes in MySQL Connector/J 3.0.2 (08 November 2002)
- C.7.4.17. Changes in MySQL Connector/J 3.0.1 (21 September 2002)
- C.7.4.18. Changes in MySQL Connector/J 3.0.0 (31 July 2002)
Bugs fixed:
Workaround for server Bug#9098: Default values of
CURRENT_*forDATE,TIME,DATETIME, andTIMESTAMPcolumns can't be distinguished fromstringvalues, soUpdatableResultSet.moveToInsertRow()generates bad SQL for inserting default values. (Bug#8812)NON_UNIQUEcolumn fromDBMD.getIndexInfo()returned inverted value. (Bug#8812)EUCKRcharset is sent asSET NAMES euc_krwhich MySQL-4.1 and newer doesn't understand. (Bug#8629)Added support for the
EUC_JP_Solarischaracter encoding, which maps to a MySQL encoding ofeucjpms(backported from 3.1 branch). This only works on servers that supporteucjpms, namely 5.0.3 or later. (Bug#8629)Use hex escapes for
PreparedStatement.setBytes()for double-byte charsets including “aliases”Windows-31J,CP934,MS932. (Bug#8629)DatabaseMetaData.supportsSelectForUpdate()returns correct value based on server version. (Bug#8629)Which requires hex escaping of binary data when using multi-byte charsets with prepared statements. (Bug#8064)
Fixed duplicated code in
configureClientCharset()that preventeduseOldUTF8Behavior=truefrom working properly. (Bug#7952)Backported SQLState codes mapping from Connector/J 3.1, enable with
useSqlStateCodes=trueas a connection property, it defaults tofalsein this release, so that we don't break legacy applications (it defaults totruestarting with Connector/J 3.1). (Bug#7686)Timestamp key column data needed
_binarystripped forUpdatableResultSet.refreshRow(). (Bug#7686)MS932,SHIFT_JIS, andWindows_31Jnot recognized as aliases forsjis. (Bug#7607)Handle streaming result sets with more than 2 billion rows properly by fixing wraparound of row number counter. (Bug#7601)
PreparedStatement.fixDecimalExponent()adding extra+, making number unparseable by MySQL server. (Bug#7601)Escape sequence {fn convert(..., type)} now supports ODBC-style types that are prepended by
SQL_. (Bug#7601)Statements created from a pooled connection were returning physical connection instead of logical connection when
getConnection()was called. (Bug#7316)Support new protocol type
MYSQL_TYPE_VARCHAR. (Bug#7081)Added
useOldUTF8Behavior' configuration property, which causes JDBC driver to act like it did with MySQL-4.0.x and earlier when the character encoding isutf-8when connected to MySQL-4.1 or newer. (Bug#7081)DatabaseMetaData.getIndexInfo()ignoreduniqueparameter. (Bug#7081)PreparedStatement.fixDecimalExponent()adding extra+, making number unparseable by MySQL server. (Bug#7061)PreparedStatementsdon't encode Big5 (and other multi-byte) character sets correctly in static SQL strings. (Bug#7033)Connections starting up failed-over (due to down master) never retry master. (Bug#6966)
Timestamp/Timeconversion goes in the wrong “direction” whenuseTimeZone=trueand server time zone differs from client time zone. (Bug#5874)
Bugs fixed:
Made
TINYINT(1)->BIT/Booleanconversion configurable viatinyInt1isBitproperty (defaulttrueto be JDBC compliant out of the box). (Bug#5664)Off-by-one bug in
Buffer.readString(. (Bug#5664)string)ResultSet.updateByte()when on insert row throwsArrayOutOfBoundsException. (Bug#5664)Fixed regression where
useUnbufferedInputwas defaulting tofalse. (Bug#5664)ResultSet.getTimestamp()on a column withTIMEin it fails. (Bug#5664)Fixed
DatabaseMetaData.getTypes()returning incorrect (this is, nonnegative) scale for theNUMERICtype. (Bug#5664)Only set
character_set_resultsduring connection establishment if server version >= 4.1.1. (Bug#5664)Fixed
ResultSetMetaData.isReadOnly()to detect nonwritable columns when connected to MySQL-4.1 or newer, based on existence of “original” table and column names.Re-issue character set configuration commands when re-using pooled connections and/or
Connection.changeUser()when connected to MySQL-4.1 or newer.
Bugs fixed:
ResultSet.getMetaData()should not return incorrectly initialized metadata if the result set has been closed, but should instead throw anSQLException. Also fixed forgetRow()andgetWarnings()and traversal methods by callingcheckClosed()before operating on instance-level fields that are nullified during.close(). (Bug#5069)Use
_binaryintroducer forPreparedStatement.setBytes()andset*Stream()when connected to MySQL-4.1.x or newer to avoid misinterpretation during character conversion. (Bug#5069)Parse new time zone variables from 4.1.x servers. (Bug#5069)
ResultSetshould releaseField[]instance in.close(). (Bug#5022)RSMD.getPrecision()returning 0 for nonnumeric types (should return max length in chars for nonbinary types, max length in bytes for binary types). This fix also fixes mapping ofRSMD.getColumnType()andRSMD.getColumnTypeName()for theBLOBtypes based on the length sent from the server (the server doesn't distinguish betweenTINYBLOB,BLOB,MEDIUMBLOBorLONGBLOBat the network protocol level). (Bug#4880)“Production” is now “GA” (General Availability) in naming scheme of distributions. (Bug#4860, Bug#4138)
DBMD.getColumns()returns incorrect JDBC type for unsigned columns. This affects type mappings for all numeric types in theRSMD.getColumnType()andRSMD.getColumnTypeNames()methods as well, to ensure that “like” types fromDBMD.getColumns()match up with whatRSMD.getColumnType()andgetColumnTypeNames()return. (Bug#4860, Bug#4138)Calling
.close()twice on aPooledConnectioncauses NPE. (Bug#4808)Added FLOSS license exemption. (Bug#4742)
Removed redundant calls to
checkRowPos()inResultSet. (Bug#4334)Failover for
autoReconnectnot using port numbers for any hosts, and not retrying all hosts.Warning
This required a change to the
SocketFactoryconnect()method signature, which is nowpublic Socket connect(String host, int portNumber, Properties props); therefore, any third-party socket factories will have to be changed to support this signature.(Bug#4334)
Logical connections created by
MysqlConnectionPoolDataSourcewill now issue arollback()when they are closed and sent back to the pool. If your application server/connection pool already does this for you, you can set therollbackOnPooledCloseproperty tofalseto avoid the overhead of an extrarollback(). (Bug#4334)StringUtils.escapeEasternUnicodeByteStreamwas still broken for GBK. (Bug#4010)
Bugs fixed:
Bugs fixed:
Inconsistent reporting of data type. The server still doesn't return all types for *BLOBs *TEXT correctly, so the driver won't return those correctly. (Bug#3570)
UpdatableResultSetnot picking up default values formoveToInsertRow(). (Bug#3557)Not specifying database in URL caused
MalformedURLexception. (Bug#3554)Auto-convert MySQL encoding names to Java encoding names if used for
characterEncodingproperty. (Bug#3554)Use
junit.textui.TestRunnerfor all unit tests (to allow them to be run from the command line outside of Ant or Eclipse). (Bug#3554)Added encoding names that are recognized on some JVMs to fix case where they were reverse-mapped to MySQL encoding names incorrectly. (Bug#3554)
Made
StringRegressionTest4.1-unicode aware. (Bug#3520)Fixed regression in
PreparedStatement.setString()and eastern character encodings. (Bug#3520)DBMD.getSQLStateType()returns incorrect value. (Bug#3520)Renamed
StringUtils.escapeSJISByteStream()to more appropriateescapeEasternUnicodeByteStream(). (Bug#3511)StringUtils.escapeSJISByteStream()not covering all eastern double-byte charsets correctly. (Bug#3511)Return creating statement for
ResultSetscreated bygetGeneratedKeys(). (Bug#2957)Use
SET character_set_resultsduring initialization to allow any charset to be returned to the driver for result sets. (Bug#2670)Don't truncate
BLOBorCLOBvalues when usingsetBytes()and/orsetBinary/CharacterStream(). . (Bug#2670)Dynamically configure character set mappings for field-level character sets on MySQL-4.1.0 and newer using
SHOW COLLATIONwhen connecting. (Bug#2670)Map
binarycharacter set toUS-ASCIIto supportDATETIMEcharset recognition for servers >= 4.1.2. (Bug#2670)Use
charsetnrreturned during connect to encode queries before issuingSET NAMESon MySQL >= 4.1.0. (Bug#2670)Add helper methods to
ResultSetMetaData(getColumnCharacterEncoding()andgetColumnCharacterSet()) to allow end-users to see what charset the driver thinks it should be using for the column. (Bug#2670)Only set
character_set_resultsfor MySQL >= 4.1.0. (Bug#2670)Allow
urlparameter forMysqlDataSourceandMysqlConnectionPoolDataSourceso that passing of other properties is possible from inside appservers.Don't escape SJIS/GBK/BIG5 when using MySQL-4.1 or newer.
Backport documentation tooling from 3.1 branch.
Added
failOverReadOnlyproperty, to allow end-user to configure state of connection (read-only/writable) when failed over.Allow
java.util.Dateto be sent in as parameter toPreparedStatement.setObject(), converting it to aTimestampto maintain full precision. . (Bug#103)Add unsigned attribute to
DatabaseMetaData.getColumns()output in theTYPE_NAMEcolumn.Map duplicate key and foreign key errors to SQLState of
23000.Backported “change user” and “reset server state” functionality from 3.1 branch, to allow clients of
MysqlConnectionPoolDataSourceto reset server state ongetConnection()on a pooled connection.
Bugs fixed:
Return
java.lang.DoubleforFLOATtype fromResultSetMetaData.getColumnClassName(). (Bug#2855)Return
[Binstead ofjava.lang.ObjectforBINARY,VARBINARYandLONGVARBINARYtypes fromResultSetMetaData.getColumnClassName()(JDBC compliance). (Bug#2855)Issue connection events on all instances created from a
ConnectionPoolDataSource. (Bug#2855)Return
java.lang.IntegerforTINYINTandSMALLINTtypes fromResultSetMetaData.getColumnClassName(). (Bug#2852)Added
useUnbufferedInputparameter, and now use it by default (due to JVM issue http://developer.java.sun.com/developer/bugParade/bugs/4401235.html) (Bug#2578)Fixed failover always going to last host in list. (Bug#2578)
Detect
on/offor1,2,3form oflower_case_table_namesvalue on server. (Bug#2578)AutoReconnecttime was growing faster than exponentially. (Bug#2447)Trigger a
SET NAMES utf8when encoding is forced toutf8orutf-8via thecharacterEncodingproperty. Previously, only the Java-style encoding name ofutf-8would trigger this.
Bugs fixed:
Enable caching of the parsing stage of prepared statements via the
cachePrepStmts,prepStmtCacheSize, andprepStmtCacheSqlLimitproperties (disabled by default). (Bug#2006)Fixed security exception when used in Applets (applets can't read the system property
file.encodingwhich is needed forLOAD DATA LOCAL INFILE). (Bug#2006)Speed up parsing of
PreparedStatements, try to use one-pass whenever possible. (Bug#2006)Fixed exception
Unknown character set 'danish'on connect with JDK-1.4.0 (Bug#2006)Fixed mappings in SQLError to report deadlocks with SQLStates of
41000. (Bug#2006)Removed static synchronization bottleneck from instance factory method of
SingleByteCharsetConverter. (Bug#2006)Removed static synchronization bottleneck from
PreparedStatement.setTimestamp(). (Bug#2006)ResultSet.findColumn()should use first matching column name when there are duplicate column names inSELECTquery (JDBC-compliance). (Bug#2006)maxRowsproperty would affect internal statements, so check it for all statement creation internal to the driver, and set to 0 when it is not. (Bug#2006)Use constants for SQLStates. (Bug#2006)
Map charset
ko18_rutoko18rwhen connected to MySQL-4.1.0 or newer. (Bug#2006)Ensure that
Buffer.writeString()saves room for the\0. (Bug#2006)ArrayIndexOutOfBoundswhen parameter number == number of parameters + 1. (Bug#1958)Connection property
maxRowsnot honored. (Bug#1933)Statements being created too many times in
DBMD.extractForeignKeyFromCreateTable(). (Bug#1925)Support escape sequence {fn convert ... }. (Bug#1914)
Implement
ResultSet.updateClob(). (Bug#1913)Autoreconnect code didn't set catalog upon reconnect if it had been changed. (Bug#1913)
ResultSet.getObject()onTINYINTandSMALLINTcolumns should return Java typeInteger. (Bug#1913)Added more descriptive error message
Server Configuration Denies Access to DataSource, as well as retrieval of message from server. (Bug#1913)ResultSetMetaData.isCaseSensitive()returned wrong value forCHAR/VARCHARcolumns. (Bug#1913)Added
alwaysClearStreamconnection property, which causes the driver to always empty any remaining data on the input stream before each query. (Bug#1913)DatabaseMetaData.getSystemFunction()returning bad functionVResultsSion. (Bug#1775)Foreign Keys column sequence is not consistent in
DatabaseMetaData.getImported/Exported/CrossReference(). (Bug#1731)Fix for
ArrayIndexOutOfBoundsexception when usingStatement.setMaxRows(). (Bug#1695)Subsequent call to
ResultSet.updateFoo()causes NPE if result set is not updatable. (Bug#1630)Fix for 4.1.1-style authentication with no password. (Bug#1630)
Cross-database updatable result sets are not checked for updatability correctly. (Bug#1592)
DatabaseMetaData.getColumns()should returnTypes.LONGVARCHARfor MySQLLONGTEXTtype. (Bug#1592)Fixed regression of
Statement.getGeneratedKeys()andREPLACEstatements. (Bug#1576)Barge blobs and split packets not being read correctly. (Bug#1576)
Backported fix for aliased tables and
UpdatableResultSetsincheckUpdatability()method from 3.1 branch. (Bug#1534)“Friendlier” exception message for
PacketTooLargeException. (Bug#1534)Don't count quoted IDs when inside a 'string' in
PreparedStatementparsing. (Bug#1511)
Bugs fixed:
ResultSet.get/setStringmashing char 127. (Bug#1247)Added property to “clobber” streaming results, by setting the
clobberStreamingResultsproperty totrue(the default isfalse). This will cause a “streaming”ResultSetto be automatically closed, and any oustanding data still streaming from the server to be discarded if another query is executed before all the data has been read from the server. (Bug#1247)Added
com.mysql.jdbc.util.BaseBugReportto help creation of testcases for bug reports. (Bug#1247)Backported authentication changes for 4.1.1 and newer from 3.1 branch. (Bug#1247)
Made
databaseName,portNumber, andserverNameoptional parameters forMysqlDataSourceFactory. (Bug#1246)Optimized
CLOB.setChracterStream(). (Bug#1131)Fixed
CLOB.truncate(). (Bug#1130)Fixed deadlock issue with
Statement.setMaxRows(). (Bug#1099)DatabaseMetaData.getColumns()getting confused about the keyword “set” in character columns. (Bug#1099)Clip +/- INF (to smallest and largest representative values for the type in MySQL) and NaN (to 0) for
setDouble/setFloat(), and issue a warning on the statement when the server does not support +/- INF or NaN. (Bug#884)Don't fire connection closed events when closing pooled connections, or on
PooledConnection.getConnection()with already open connections. (Bug#884)Double-escaping of
'\'when charset is SJIS or GBK and'\'appears in nonescaped input. (Bug#879)When emptying input stream of unused rows for “streaming” result sets, have the current thread
yield()every 100 rows in order to not monopolize CPU time. (Bug#879)Issue exception on
ResultSet.geton empty result set (wasn't caught in some cases). (Bug#848)XXX()Don't hide messages from exceptions thrown in I/O layers. (Bug#848)
Fixed regression in large split-packet handling. (Bug#848)
Better diagnostic error messages in exceptions for “streaming” result sets. (Bug#848)
Don't change timestamp TZ twice if
useTimezone==true. (Bug#774)Don't wrap
SQLExceptionsinRowDataDynamic. (Bug#688)Don't try and reset isolation level on reconnect if MySQL doesn't support them. (Bug#688)
The
insertRowin anUpdatableResultSetis now loaded with the default column values whenmoveToInsertRow()is called. (Bug#688)DatabaseMetaData.getColumns()wasn't returningNULLfor default values that are specified asNULL. (Bug#688)Change default statement type/concurrency to
TYPE_FORWARD_ONLYandCONCUR_READ_ONLY(spec compliance). (Bug#688)Fix
UpdatableResultSetto return values forgetwhen on insert row. (Bug#675)XXX()Support
InnoDBcontraint names when extracting foreign key information inDatabaseMetaData(implementing ideas from Parwinder Sekhon). (Bug#664, Bug#517)Backported 4.1 protocol changes from 3.1 branch (server-side SQL states, new field information, larger client capability flags, connect-with-database, and so forth). (Bug#664, Bug#517)
refreshRowdidn't work when primary key values contained values that needed to be escaped (they ended up being doubly escaped). (Bug#661)Fixed
ResultSet.previous()behavior to move current position to before result set when on first row of result set. (Bug#496)Fixed
StatementandPreparedStatementissuing bogus queries whensetMaxRows()had been used and aLIMITclause was present in the query. (Bug#496)Faster date handling code in
ResultSetandPreparedStatement(no longer usesDatemethods that synchronize on static calendars).Fixed test for end of buffer in
Buffer.readString().
Bugs fixed:
Fixed SJIS encoding bug, thanks to Naoto Sato. (Bug#378)
Fix problem detecting server character set in some cases. (Bug#378)
Allow multiple calls to
Statement.close(). (Bug#378)Return correct number of generated keys when using
REPLACEstatements. (Bug#378)Unicode character 0xFFFF in a string would cause the driver to throw an
ArrayOutOfBoundsException. . (Bug#378)Fix row data decoding error when using very large packets. (Bug#378)
Optimized row data decoding. (Bug#378)
Issue exception when operating on an already closed prepared statement. (Bug#378)
Optimized usage of
EscapeProcessor. (Bug#378)Use JVM charset with file names and
LOAD DATA [LOCAL] INFILE.Fix infinite loop with
Connection.cleanup().Changed Ant target
compile-coretocompile-driver, and made testsuite compilation a separate target.Fixed result set not getting set for
Statement.executeUpdate(), which affectedgetGeneratedKeys()andgetUpdateCount()in some cases.Return list of generated keys when using multi-value
INSERTSwithStatement.getGeneratedKeys().Allow bogus URLs in
Driver.getPropertyInfo().
Bugs fixed:
Fixed charset issues with database metadata (charset was not getting set correctly).
You can now toggle profiling on/off using
Connection.setProfileSql(boolean).4.1 Column Metadata fixes.
Fixed
MysqlPooledConnection.close()calling wrong event type.Fixed
StringIndexOutOfBoundsExceptioninPreparedStatement.setClob().IOExceptionsduring a transaction now cause theConnectionto be closed.Remove synchronization from
Driver.connect()andDriver.acceptsUrl().Fixed missing conversion for
YEARtype inResultSetMetaData.getColumnTypeName().Updatable
ResultSetscan now be created for aliased tables/columns when connected to MySQL-4.1 or newer.Fixed
LOAD DATA LOCAL INFILEbug when file >max_allowed_packet.Don't pick up indexes that start with
prias primary keys forDBMD.getPrimaryKeys().Ensure that packet size from
alignPacketSize()does not exceedmax_allowed_packet(JVM bug)Don't reset
Connection.isReadOnly()when autoReconnecting.Fixed escaping of 0x5c (
'\') character for GBK and Big5 charsets.Fixed
ResultSet.getTimestamp()when underlying field is of typeDATE.Throw
SQLExceptionswhen trying to do operations on a forcefully closedConnection(that is, when a communication link failure occurs).
Bugs fixed:
Backported 4.1 charset field info changes from Connector/J 3.1.
Fixed
Statement.setMaxRows()to stop sendingLIMITtype queries when not needed (performance).Fixed
DBMD.getTypeInfo()andDBMD.getColumns()returning different value for precision inTEXTandBLOBtypes.Fixed
SQLExceptionsgetting swallowed on initial connect.Fixed
ResultSetMetaDatato return""when catalog not known. FixesNullPointerExceptionswith Sun'sCachedRowSet.Allow ignoring of warning for “non transactional tables” during rollback (compliance/usability) by setting
ignoreNonTxTablesproperty totrue.Clean up
Statementquery/method mismatch tests (that is,INSERTnot allowed with.executeQuery()).Fixed
ResultSetMetaData.isWritable()to return correct value.More checks added in
ResultSettraversal method to catch when in closed state.Implemented
Blob.setBytes(). You still need to pass the resultantBlobback into an updatableResultSetorPreparedStatementto persist the changes, because MySQL does not support “locators”.Add “window” of different
NULLsorting behavior toDBMD.nullsAreSortedAtStart(4.0.2 to 4.0.10, true; otherwise, no).
Bugs fixed:
Fixed
ResultSet.isBeforeFirst()for empty result sets.Added missing
LONGTEXTtype toDBMD.getColumns().Implemented an empty
TypeMapforConnection.getTypeMap()so that some third-party apps work with MySQL (IBM WebSphere 5.0 Connection pool).Added update options for foreign key metadata.
Fixed
Buffer.fastSkipLenString()causingArrayIndexOutOfBoundsexceptions with some queries when unpacking fields.Quote table names in
DatabaseMetaData.getColumns(),getPrimaryKeys(),getIndexInfo(),getBestRowIdentifier().Retrieve
TX_ISOLATIONfrom database forConnection.getTransactionIsolation()when the MySQL version supports it, instead of an instance variable.Greatly reduce memory required for
setBinaryStream()inPreparedStatements.
Bugs fixed:
Streamlined character conversion and
byte[]handling inPreparedStatementsforsetByte().Fixed
PreparedStatement.executeBatch()parameter overwriting.Added quoted identifiers to database names for
Connection.setCatalog.Added support for 4.0.8-style large packets.
Reduce memory footprint of
PreparedStatementsby sharing outbound packet withMysqlIO.Added
strictUpdatesproperty to allow control of amount of checking for “correctness” of updatable result sets. Set this tofalseif you want faster updatable result sets and you know that you create them fromSELECTstatements on tables with primary keys and that you have selected all primary keys in your query.Added support for quoted identifiers in
PreparedStatementparser.
Bugs fixed:
Allow user to alter behavior of
Statement/PreparedStatement.executeBatch()viacontinueBatchOnErrorproperty (defaults totrue).More robust escape tokenizer: Recognize
--comments, and allow nested escape sequences (seetestsuite.EscapeProcessingTest).Fixed
Buffer.isLastDataPacket()for 4.1 and newer servers.NamedPipeSocketFactorynow works (only intended for Windows), seeREADMEfor instructions.Changed
charsToByteinSingleByteCharConverterto be nonstatic.Use nonaliased table/column names and database names to fully qualify tables and columns in
UpdatableResultSet(requires MySQL-4.1 or newer).LOAD DATA LOCAL INFILE ...now works, if your server is configured to allow it. Can be turned off with theallowLoadLocalInfileproperty (see theREADME).Implemented
Connection.nativeSQL().Fixed
ResultSetMetaData.getColumnTypeName()returningBLOBforTEXTandTEXTforBLOBtypes.Fixed charset handling in
Fields.java.Because of above, implemented
ResultSetMetaData.isAutoIncrement()to useField.isAutoIncrement().Substitute
'?'for unknown character conversions in single-byte character sets instead of'\0'.Added
CLIENT_LONG_FLAGto be able to get more column flags (isAutoIncrement()being the most important).Honor
lower_case_table_nameswhen enabled in the server when doing table name comparisons inDatabaseMetaDatamethods.DBMD.getImported/ExportedKeys()now handles multiple foreign keys per table.More robust implementation of updatable result sets. Checks that all primary keys of the table have been selected.
Some MySQL-4.1 protocol support (extended field info from selects).
Check for connection closed in more
Connectionmethods (createStatement,prepareStatement,setTransactionIsolation,setAutoCommit).Fixed
ResultSetMetaData.getPrecision()returning incorrect values for some floating-point types.Changed
SingleByteCharConverterto use lazy initialization of each converter.
Bugs fixed:
Implemented
Clob.setString().Added
com.mysql.jdbc.MiniAdminclass, which allows you to sendshutdowncommand to MySQL server. This is intended to be used when “embedding” Java and MySQL server together in an end-user application.Added SSL support. See
READMEfor information on how to use it.All
DBMDresult set columns describing schemas now returnNULLto be more compliant with the behavior of other JDBC drivers for other database systems (MySQL does not support schemas).Use
SHOW CREATE TABLEwhen possible for determining foreign key information forDatabaseMetaData. Also allows cascade options forDELETEinformation to be returned.Implemented
Clob.setCharacterStream().Failover and
autoReconnectwork only when the connection is in anautoCommit(false)state, in order to stay transaction-safe.Fixed
DBMD.supportsResultSetConcurrency()so that it returnstrueforResultSet.TYPE_SCROLL_INSENSITIVEandResultSet.CONCUR_READ_ONLYorResultSet.CONCUR_UPDATABLE.Implemented
Clob.setAsciiStream().Removed duplicate code from
UpdatableResultSet(it can be inherited fromResultSet, the extra code for each method to handle updatability I thought might someday be necessary has not been needed).Fixed
UnsupportedEncodingExceptionthrown when “forcing” a character encoding via properties.Fixed incorrect conversion in
ResultSet.getLong().Implemented
ResultSet.updateBlob().Removed some not-needed temporary object creation by smarter use of
StringsinEscapeProcessor,ConnectionandDatabaseMetaDataclasses.Escape
0x5ccharacter in strings for the SJIS charset.PreparedStatementnow honors stream lengths in setBinary/Ascii/Character Stream() unless you set the connection propertyuseStreamLengthsInPrepStmtstofalse.Fixed issue with updatable result sets and
PreparedStatementsnot working.Fixed start position off-by-1 error in
Clob.getSubString().Added
connectTimeoutparameter that allows users of JDK-1.4 and newer to specify a maximum time to wait to establish a connection.Fixed various non-ASCII character encoding issues.
Fixed
ResultSet.isLast()for empty result sets (should returnfalse).Added driver property
useHostsInPrivileges. Defaults totrue. Affects whether or not@hostnamewill be used inDBMD.getColumn/TablePrivileges.Fixed
ResultSet.setFetchDirection(FETCH_UNKNOWN).Added
queriesBeforeRetryMasterproperty that specifies how many queries to issue when failed over before attempting to reconnect to the master (defaults to 50).Fixed issue when calling
Statement.setFetchSize()when using arbitrary values.Properly restore connection properties when autoReconnecting or failing-over, including
autoCommitstate, and isolation level.Implemented
Clob.truncate().
Bugs fixed:
Charsets now automatically detected. Optimized code for single-byte character set conversion.
Fixed
RowDataStatic.getAt()off-by-one bug.Fixed
ResultSet.getRow()off-by-one bug.Massive code clean-up to follow Java coding conventions (the time had come).
Implemented
ResultSet.getCharacterStream().Added limited
Clobfunctionality (ResultSet.getClob(),PreparedStatemtent.setClob(),PreparedStatement.setObject(Clob).Connection.isClosed()no longer “pings” the server.Connection.close()issuesrollback()whengetAutoCommit()isfalse.Added
socketTimeoutparameter to URL.Added
LOCAL TEMPORARYto table types inDatabaseMetaData.getTableTypes().Added
paranoidparameter, which sanitizes error messages by removing “sensitive” information from them (such as host names, ports, or user names), as well as clearing “sensitive” data structures when possible.
Bugs fixed:
General source-code cleanup.
The driver now only works with JDK-1.2 or newer.
Fix and sort primary key names in
DBMetaData(SF bugs 582086 and 582086).ResultSet.getTimestamp()now works forDATEtypes (SF bug 559134).Float types now reported as
java.sql.Types.FLOAT(SF bug 579573).Support for streaming (row-by-row) result sets (see
README) Thanks to Doron.Testsuite now uses Junit (which you can get from http://www.junit.org.
JDBC Compliance: Passes all tests besides stored procedure tests.
ResultSet.getDate/Time/Timestampnow recognizes all forms of invalid values that have been set to all zeros by MySQL (SF bug 586058).Added multi-host failover support (see
README).Repackaging: New driver name is
com.mysql.jdbc.Driver, old name still works, though (the driver is now provided by MySQL-AB).Support for large packets (new addition to MySQL-4.0 protocol), see
READMEfor more information.Better checking for closed connections in
StatementandPreparedStatement.Performance improvements in string handling and field metadata creation (lazily instantiated) contributed by Alex Twisleton-Wykeham-Fiennes.
JDBC-3.0 functionality including
Statement/PreparedStatement.getGeneratedKeys()andResultSet.getURL().Overall speed improvements via controlling transient object creation in
MysqlIOclass when reading packets.!!! LICENSE CHANGE !!! The driver is now GPL. If you need non-GPL licenses, please contact me
<mark@mysql.com>.Performance enchancements: Driver is now 50–100% faster in most situations, and creates fewer temporary objects.
- C.7.5.1. Changes in MySQL Connector/J 2.0.14 (16 May 2002)
- C.7.5.2. Changes in MySQL Connector/J 2.0.13 (24 April 2002)
- C.7.5.3. Changes in MySQL Connector/J 2.0.12 (07 April 2002)
- C.7.5.4. Changes in MySQL Connector/J 2.0.11 (27 January 2002)
- C.7.5.5. Changes in MySQL Connector/J 2.0.10 (24 January 2002)
- C.7.5.6. Changes in MySQL Connector/J 2.0.9 (13 January 2002)
- C.7.5.7. Changes in MySQL Connector/J 2.0.8 (25 November 2001)
- C.7.5.8. Changes in MySQL Connector/J 2.0.7 (24 October 2001)
- C.7.5.9. Changes in MySQL Connector/J 2.0.6 (16 June 2001)
- C.7.5.10. Changes in MySQL Connector/J 2.0.5 (13 June 2001)
- C.7.5.11. Changes in MySQL Connector/J 2.0.3 (03 December 2000)
- C.7.5.12. Changes in MySQL Connector/J 2.0.1 (06 April 2000)
- C.7.5.13. Changes in MySQL Connector/J 2.0.0pre5 (21 February 2000)
- C.7.5.14. Changes in MySQL Connector/J 2.0.0pre4 (10 January 2000)
- C.7.5.15. Changes in MySQL Connector/J 2.0.0pre (17 August 1999)
Bugs fixed:
ResultSet.getDouble()now uses code built into JDK to be more precise (but slower).Fixed typo for
relaxAutoCommitparameter.LogicalHandle.isClosed()calls through to physical connection.Added SQL profiling (to
STDERR). SetprofileSql=truein your JDBC URL. SeeREADMEfor more information.PreparedStatementnow releases resources on.close(). (SF bug 553268)More code cleanup.
Quoted identifiers not used if server version does not support them. Also, if server started with
--ansior--sql-mode=ANSI_QUOTES, “"” will be used as an identifier quote character, otherwise “'” will be used.
Bugs fixed:
Fixed unicode chars being read incorrectly. (SF bug 541088)
Faster blob escaping for
PrepStmt.Added
setURL()toMySQLXADataSource. (SF bug 546019)Added
set/getPortNumber()toDataSource(s). (SF bug 548167)PreparedStatement.toString()fixed. (SF bug 534026)More code cleanup.
Rudimentary version of
Statement.getGeneratedKeys()from JDBC-3.0 now implemented (you need to be using JDK-1.4 for this to work, I believe).DBMetaData.getIndexInfo()- bad PAGES fixed. (SF BUG 542201)ResultSetMetaData.getColumnClassName()now implemented.
Bugs fixed:
Fixed
testsuite.TraversalafterLast()bug, thanks to Igor Lastric.Added new types to
getTypeInfo(), fixed existing types thanks to Al Davis and Kid Kalanon.Fixed time zone off-by-1-hour bug in
PreparedStatement(538286, 528785).Added identifier quoting to all
DatabaseMetaDatamethods that need them (should fix 518108).Added support for
BITtypes (51870) toPreparedStatement.ResultSet.insertRow()should now detect auto_increment fields in most cases and use that value in the new row. This detection will not work in multi-valued keys, however, due to the fact that the MySQL protocol does not return this information.Relaxed synchronization in all classes, should fix 520615 and 520393.
DataSources- fixedsetUrlbug (511614, 525565), wrong datasource class name (532816, 528767).Added support for
YEARtype (533556).Fixes for
ResultSetupdatability inPreparedStatement.ResultSet: Fixed updatability (values being set tonullif not updated).Added
getTable/ColumnPrivileges()to DBMD (fixes 484502).Added
getIdleFor()method toConnectionandMysqlLogicalHandle.ResultSet.refreshRow()implemented.Fixed
getRow()bug (527165) inResultSet.General code cleanup.
Bugs fixed:
Full synchronization of
Statement.java.Fixed missing
DELETE_RULEvalue inDBMD.getImported/ExportedKeys()andgetCrossReference().More changes to fix
Unexpected end of input streamerrors when readingBLOBvalues. This should be the last fix.
Bugs fixed:
Fixed null-pointer-exceptions when using
MysqlConnectionPoolDataSourcewith Websphere 4 (bug 505839).Fixed spurious
Unexpected end of input streamerrors inMysqlIO(bug 507456).
Bugs fixed:
Fixed extra memory allocation in
MysqlIO.readPacket()(bug 488663).Added detection of network connection being closed when reading packets (thanks to Todd Lizambri).
Fixed casting bug in
PreparedStatement(bug 488663).DataSourceimplementations moved toorg.gjt.mm.mysql.jdbc2.optionalpackage, and (initial) implementations ofPooledConnectionDataSourceandXADataSourceare in place (thanks to Todd Wolff for the implementation and testing ofPooledConnectionDataSourcewith IBM WebSphere 4).Fixed quoting error with escape processor (bug 486265).
Removed concatenation support from driver (the
||operator), as older versions of VisualAge seem to be the only thing that use it, and it conflicts with the logical||operator. You will need to start mysqld with the--ansiflag to use the||operator as concatenation (bug 491680).Ant build was corrupting included
jarfiles, fixed (bug 487669).Report batch update support through
DatabaseMetaData(bug 495101).Implementation of
DatabaseMetaData.getExported/ImportedKeys()andgetCrossReference().Fixed off-by-one-hour error in
PreparedStatement.setTimestamp()(bug 491577).Full synchronization on methods modifying instance and class-shared references, driver should be entirely thread-safe now (please let me know if you have problems).
Bugs fixed:
XADataSource/ConnectionPoolDataSourcecode (experimental)DatabaseMetaData.getPrimaryKeys()andgetBestRowIdentifier()are now more robust in identifying primary keys (matches regardless of case or abbreviation/full spelling ofPrimary KeyinKey_typecolumn).Batch updates now supported (thanks to some inspiration from Daniel Rall).
PreparedStatement.setAnyNumericType()now handles positive exponents correctly (adds+so MySQL can understand it).
Bugs fixed:
Character sets read from database if
useUnicode=trueandcharacterEncodingis not set. (thanks to Dmitry Vereshchagin)Initial transaction isolation level read from database (if available). (thanks to Dmitry Vereshchagin)
Fixed
PreparedStatementgenerating SQL that would end up with syntax errors for some queries.PreparedStatement.setCharacterStream()now implementedCaptialize type names when
captializeTypeNames=trueis passed in URL or properties (for WebObjects. (thanks to Anjo Krank)ResultSet.getBlob()now returnsnullif column value wasnull.Fixed
ResultSetMetaData.getPrecision()returning one less than actual on newer versions of MySQL.Fixed dangling socket problem when in high availability (
autoReconnect=true) mode, and finalizer forConnectionwill close any dangling sockets on GC.Fixed time zone issue in
PreparedStatement.setTimestamp(). (thanks to Erik Olofsson)PreparedStatement.setDouble() now uses full-precision doubles (reverting a fix made earlier to truncate them).
Fixed
DatabaseMetaData.supportsTransactions(), andsupportsTransactionIsolationLevel()andgetTypeInfo()SQL_DATETIME_SUBandSQL_DATA_TYPEfields not being readable.Updatable result sets now
