Appendix C. MySQL Change History
In ORDER BY clauses, mixing aggregate
functions and nongrouping columns is not allowed if the
ONLY_FULL_GROUP_BY SQL mode is
enabled. However, in some cases, no error was thrown because of
insufficient checking.
(Bug#27219)
For the --record_log_pos
option, mysqlhotcopy now determines the slave
status information from the result of SHOW
SLAVE STATUS by using the
Relay_Master_Log_File and
Exec_Master_Log_Pos values rather than the
Master_Log_File and
Read_Master_Log_Pos values. 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)
mysqld sometimes miscalculated the number of
digits required when storing a floating-point number in a
CHAR column. This caused the
value to be truncated, or (when using a debug build) caused the
server to crash.
(Bug#26788)
See also Bug#12860.
config-win.h unconditionally defined
bool as BOOL,
causing problems on systems where bool is 1
byte and BOOL is 4 bytes.
(Bug#26461)
The internal init_time() library function
was renamed to my_init_time() to avoid
conflicts with external libraries.
(Bug#26294)
On Windows, for distributions built with debugging support, mysql could crash if the user typed Control-C. (Bug#26243)
mysqlcheck -A -r did not correctly identify all tables that needed repairing. (Bug#25347)
On Windows, an error in configure.js caused
installation of source distributions to fail.
(Bug#25340)
Using mysqldump in MySQL 5.1 resulted in dump
files that could not be loaded in MySQL 5.0 because
USING
options in index definitions appeared after the index column
list, whereas 5.0 accepted only the old syntax that has
type_nameUSING before the column list. The parser in
5.0 now accepts USING following the column
list.
(Bug#25162)
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 no errmsg.sys file 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)
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)
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
root user, 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 the root user has no
password. The installer now writes a registry key named
FoundExistingDataDir. 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)
The MySQL header files contained some duplicate macro definitions that could cause compilation problems. (Bug#23839)
SHOW COLUMNS on a
TEMPOARY table caused locking issues.
(Bug#23588)
For distributions compiled with the bundled
libedit library, there were difficulties
using the mysql client to enter input for
non-ASCII or multi-byte characters.
(Bug#23097)
For Windows Vista, MySQLInstanceConfig.exe did not include a proper manifest enabling it to run with administrative privileges. (Bug#22563)
See also Bug#24732.
On Mac OS X, mysqld did not react to Ctrl-C
when run under gdb, even when run with the
--gdb option.
(Bug#21567)
mysql_config output did not include
-lmygcc on 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)
mysqldumpslow returned a confusing error message when no configuration file was found. (Bug#20455)
Host names sometimes were treated as case sensitive in
account-management statements (CREATE
USER, GRANT,
REVOKE, and so forth).
(Bug#19828)
The readline library 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 Aborted_clients status
variable was incremented twice if a client exited without
calling mysql_close().
(Bug#16918)
The parser used signed rather than unsigned values in some cases that caused legal lengths in column declarations to be rejected. (Bug#15776)
A SET column whose definition specified 64
elements could not be updated using integer values.
(Bug#15409)
Clients were ignoring the TCP/IP port number specified as the default port via the --with-tcp-port configuration option. (Bug#15327)
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
--comments or
--skip-comments option can be
used to control whether to retain or strip comments. The default
is --skip-comments.
(Bug#11230, Bug#26215)
If an INSERT ...
SELECT statement is executed, and no automatically
generated value is successfully inserted, then
mysql_insert_id() returns the ID
of the last inserted row.
If no automatically generated value is successfully inserted,
then mysql_insert_id() returns
0.
(Bug#9481)
MySQLInstanceConfig.exe did not save the
innodb_data_home_dir value to
the my.ini file under certain
circumstances.
(Bug#6627)
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 (except Windows, for which large values are truncated to 4GB with a warning).For
join_buffer_size,sort_buffer_size, andmyisam_sort_buffer_size, values are limited to 4GB on all platforms. Larger values are truncated to 4GB with a warning.
In addition, settings for
read_buffer_size and
read_rnd_buffer_size are
limited to 2GB on all platforms. Larger values are truncated to
2GB with a warning.
(Bug#5731, Bug#29419, Bug#29446)
Executing DISABLE KEYS and ENABLE
KEYS on a nonempty table would cause the size of the
index file for the table to grow considerable. This was because
the DISABLE KEYS operation would only mark
the existing index, without deleting the index blocks. The
ENABLE KEYS operation would re-create the
index, adding new blocks, while the previous index blocks would
remain. Existing indexes are now dropped and recreated when the
ENABLE KEYS statement is executed.
(Bug#4692)
This is a Service Pack release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.66a).
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:
Security Enhancement: To enable stricter control over the location from which user-defined functions can be loaded, the
plugin_dirsystem variable has been backported from MySQL 5.1. If the value is nonempty, user-defined function object files can be loaded only from the directory named by this variable. If the value is empty, the behavior that is used prior to the inclusion ofplugin_dirapplies: The UDF object files must be located in a directory that is searched by your system's dynamic linker. (Bug#37428)
Bugs fixed:
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 DIRECTORYpath name is now disallowed.Additional corrections were made to handle the data directory path name if it contains symlinked directories in its path, and to make the check both at table-creation time and 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)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This is a bugfix release that replaces MySQL 5.0.66.
Bugs fixed:
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
Important
This release was withdrawn from production due to the side effect produced by Bug#20748. It has been replaced by MySQL 5.0.66a, which should be used instead.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.64). 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:
mysql-test-run.pl now supports
--client-bindirand--client-libdiroptions for specifying the directory where client binaries and libraries are located. (Bug#34995)
Bugs fixed:
Incompatible Change: An additional correction to the original MySQL 5.0.64 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.
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)
Some binary distributions had a duplicate “-64bit” suffix in the file name. (Bug#37623)
The mysql client failed to recognize comment lines consisting of
--followed by a newline. (Bug#36244)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)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)
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.0.67. (Bug#33812)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.62). 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:
Important Change: Incompatible Change: The
FEDERATEDstorage engine is now disabled by default in the.cnffiles shipped with MySQL distributions (my-huge.cnf,my-medium.cnf, and so forth). This affects server behavior only if you install one of these files. (Bug#37069)
Bugs fixed:
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.
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)For
EXPLAIN EXTENDED, execution of an uncorrelatedINsubquery caused a crash if the subquery required a temporary table for its execution. (Bug#36011)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.60). 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:
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)
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 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.
mysqltest ignored the value of
--tmpdirin one place. (Bug#36465)Conversion of a
FLOAT ZEROFILLvalue to string could cause a server crash if the value wasNULL. (Bug#36139)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)The server crashed inside
NOT INsubqueries with an impossibleWHEREorHAVINGclause, such asNOT IN (SELECT ... FROM t1, t2, ... WHERE 0). (Bug#36005)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 combination of
GROUP_CONCAT(),DISTINCT, andLEFT JOINcould crash the server when the right table is empty. (Bug#35298)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.16.3, “Installing from the Development Source Tree”, for information about what they do.) (Bug#34291)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)
This is a Service Pack release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.60). For this release, there are no such changes or fixes.
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.
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.58). 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:
Bugs fixed:
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 DIRECTORYpath name is now disallowed.Note
Additional fixes were made in MySQL 5.0.70.
See also Bug#39277.
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)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)Replication:
insert_idwas not written to the binary log for inserts intoBLACKHOLEtables. (Bug#35178)Replication: The character sets and collations used for constant identifiers in stored procedures were not replicated correctly. (Bug#34289)
Replication: An extraneous
ROLLBACKstatement was written to the binary log by a connection that did not use any transactional tables. (Bug#33329)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:
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:
MASTER_POS_WAIT()did not returnNULLwhen the server was not a slave. (Bug#26622)Replication: The inspecific 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:
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)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.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)
There was a memory leak when connecting to a
FEDERATEDtable using a connection string that had a host value oflocalhostor omitted the host and a port value of0or omitted the port. (Bug#35509)Using
LOAD DATA INFILEwith a view could crash the server. (Bug#35469)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)Debugging symbols were missing for some executables in Windows binary distributions. (Bug#35104)
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.
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)
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)
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- 1Executing 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)
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)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)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)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=constant2Reuse of prepared statements could cause a memory leak in the embedded server. (Bug#33796)
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)
Certain combinations of views, subselects with outer references and stored routines or triggers could cause the server to crash. (Bug#33389)
SLEEP(0)failed to return on 64-bit Mac OS X due to a bug inpthread_cond_timedwait(). (Bug#33304)Granting the
UPDATEprivilege on one column of a view caused the server to crash. (Bug#33201)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, 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)Incorrect assertions could cause a server crash for
DELETEtriggers for transactional tables. (Bug#32790)Inserting strings with a common prefix into a table that used the
ucs2character set corrupted the table. (Bug#32705)Queries using
LIKEon tables having indexedCHARcolumns using either of theeucjpmsorujischaracter sets did not return correct results. (Bug#32510)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)
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)
When 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)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 mysql_config command would output
CFLAGSvalues that were incompatible with C++ for the HP-UX platform. (Bug#29645)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.
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)
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)
On Windows, an error in
configure.jscaused installation of source distributions to fail. (Bug#25340)Using mysqldump in MySQL 5.1 resulted in dump files that could not be loaded in MySQL 5.0 because
USINGoptions in index definitions appeared after the index column list, whereas 5.0 accepted only the old syntax that hastype_nameUSINGbefore the column list. The parser in 5.0 now acceptsUSINGfollowing the column list. (Bug#25162)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)
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)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)On Mac OS X, mysqld did not react to Ctrl-C when run under gdb, even when run with the
--gdboption. (Bug#21567)mysql-stress-test.pl and mysqld_multi.server.sh were missing from some binary distributions. (Bug#21023, Bug#25486)
A
SETcolumn whose definition specified 64 elements could not be updated using integer values. (Bug#15409)MySQLInstanceConfig.exe did not save the
innodb_data_home_dirvalue to themy.inifile under certain circumstances. (Bug#6627)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.56). 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:
Cluster API: Important Change: Because
NDB_LE_MemoryUsage.page_size_kbshows memory page sizes in bytes rather than kilobytes, it has been renamed topage_size_bytes. The namepage_size_kbis now deprecated and thus subject to removal in a future release, although it currently remains supported for reasons of backward compatibility. See TheNdb_logevent_typeType, for more information aboutNDB_LE_MemoryUsage. (Bug#30271)The ndbd and ndb_mgmd man pages have been reclassified from volume 1 to volume 8. (Bug#34642)
mysqltest now has
mkdirandrmdircommands for creating and removing directories. (Bug#31004)
Bugs fixed:
MySQL Cluster: When configured with
NDBsupport, MySQL failed to compile using gcc 4.3 on 64bit FreeBSD systems. (Bug#34169)MySQL Cluster: The failure of a DDL statement could sometimes lead to node failures when attempting to execute subsequent DDL statements. (Bug#34160)
MySQL Cluster: Extremely long
SELECTstatements (where the text of the statement was in excess of 50000 characters) againstNDBtables returned empty results. (Bug#34107)MySQL Cluster: A periodic failure to flush the send buffer by the
NDBTCP transporter could cause a unnecessary delay of 10 ms between operations. (Bug#34005)MySQL Cluster: When all data and SQL nodes in the cluster were shut down abnormally (that is, other than by using
STOPin the cluster management client), ndb_mgm used excessive amounts of CPU. (Bug#33237)MySQL Cluster: Transaction atomicity was sometimes not preserved between reads and inserts under high loads. (Bug#31477)
MySQL Cluster: Numerous
NDBCLUSTERtest failures occurred in builds compiled using icc on IA64 platforms. (Bug#31239)MySQL Cluster: Having tables with a great many columns could cause Cluster backups to fail. (Bug#30172)
MySQL Cluster: Issuing an
INSERT ... ON DUPLICATE KEY UPDATEconcurrently with or following aTRUNCATEstatement on anNDBtable failed withNDBerror 4350 Transaction already aborted. (Bug#29851)MySQL Cluster: It was possible in
config.inito define cluster nodes having node IDs greater than the maximum allowed value. (Bug#28298)Cluster API: When reading a
BIT(64)value usingNdbOperation:getValue(), 12 bytes were written to the buffer rather than the expected 8 bytes. (Bug#33750)mysql_explain_log concatenated multiple-line statements, causing malformed results for statements that contained SQL comments beginning with
--. (Bug#34339)Executing an
ALTER VIEWstatement on a table crashed the server. (Bug#34337)Passing anything other than a integer 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)
Large unsigned integers were improperly handled for prepared statements, resulting in truncation or conversion to negative numbers. (Bug#33798)
make_binary_distribution passed the
--print-libgcc-fileoption to the C compiler, but this does not work with the ICC compiler. (Bug#33536)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)
Repeated creation and deletion of views within prepared statements could eventually crash the server. (Bug#32890)
See also Bug#34587.
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)
InnoDBadaptive hash latches could be held too long, resulting in a server crash. This fix may also provide significant performance improvements on systems on which many queries using filesorts with temporary tables are being performed. (Bug#32149)SHOW STATUScaused a server crash ifInnoDBhad not been initialized. (Bug#32083)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)
mysql did not use its completion table. Also, the table contained few entries. (Bug#24624)
mysql_config output did not include
-lmygccon some platforms when it was needed. (Bug#21158)
This is a Service Pack release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied in MySQL 5.0.56sp1 since the previous MySQL Enterprise Server Quarterly Service Pack release (5.0.50sp1a). 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:
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)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)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:errnoThe 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.2.10.4, “Adaptive Hash Indexes”.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:
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: 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: The MySQL 5.0.50 patch for this bug was reverted because it changed the behavior of a General Availability MySQL release. (Bug#30234)
See also Bug#27525.
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: 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)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)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)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)
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: The failure of a master node could lead to subsequent failures in local checkpointing. (Bug#32160)
MySQL Cluster: An uninitialized variable in the
NDBstorage engine code led toAUTO_INCREMENTfailures when the server was compiled with gcc 4.2.1. (Bug#31848)This regression was introduced by Bug#27437.
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: Primary keys on variable-length columns (such as
VARCHAR) did not work correctly. (Bug#31635)MySQL Cluster: Transaction timeouts were not handled well in some circumstances, leading to excessive number of transactions being aborted unnecessarily. (Bug#30379)
MySQL Cluster: In some cases, the cluster managment server logged entries multiple times following a restart of mgmd. (Bug#29565)
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:
UPDATE IGNOREcould sometimes fail onNDBtables due to the use of unitialized data when checking for duplicate keys to be ignored. (Bug#25817)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.0.30 and MySQL 5.0.33 (Bug#21072)
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: SQL statements containing comments using
--syntax were not replayable by mysqlbinlog, even though such statements replicated correctly. (Bug#32205)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 of memory or more. (Bug#31793)
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: Issuing a
DROP VIEWstatement caused replication to fail if the view did not actually exist. (Bug#30998)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: Replication of
LOAD DATA INFILEcould fail whenread_buffer_sizewas larger thanmax_allowed_packet. (Bug#30435)Replication: Setting
server_iddid not update its value for the current session. (Bug#28908)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: 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)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)Use of uninitialized memory for
filesortin a subquery caused a server crash. (Bug#33675)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)
SET GLOBAL myisam_max_sort_file_size=DEFAULTsetmyisam_max_sort_file_sizeto an incorrect value. (Bug#33382)See also Bug#31177.
CREATE TABLE ... SELECTcreated tables that for date columns used the obsoleteField_datetype instead ofField_newdate. (Bug#33256)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)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)
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)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)An
ORDER BYquery usingIS NULLin theWHEREclause did not return correct results. (Bug#32815)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)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)Specifying a nonexistent column for an
INSERT DELAYEDstatement caused a server crash rather than producing an error. (Bug#32676)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.
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)A build problem introduced in MySQL 5.0.52 was resolved: The x86 32-bit Intel icc-compiled server binary had unwanted dependences on Intel icc runtime libraries. (Bug#32514)
The rules for valid column names were being applied differently for base tables and views. (Bug#32496)
Sending 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)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)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)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)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)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)HOUR(),MINUTE(), andSECOND()could return nonzero values forDATEarguments. (Bug#31990)A column with malformed multi-byte characters could cause the full-text parser to go into an infinite loop. (Bug#31950)
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)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)
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 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)The examined-rows count was not incremented for
constqueries. (Bug#31700)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)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)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)Killing a
CREATE TABLE ... LIKEstatement that was waiting for a name lock caused a server crash. When the statement was killed, the server attempted to release locks that were not held. (Bug#31479)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 nullSELECT 1 REGEX NULLcaused an assertion failure for debug servers. (Bug#31440)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 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)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)Full-text searches on
ucs2columns caused a server crash. (FULLTEXTindexes onucs2columns cannot be used, but it should be possible to performIN BOOLEAN MODEsearches onucs2columns without a crash.) (Bug#31159)Data in
BLOBorGEOMETRYcolumns could be cropped when performing aUNIONquery. (Bug#31158)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)GROUP BY NULL WITH ROLLUPcould cause a server crash. (Bug#31095)See also Bug#32558.
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)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)
The
MOD()function and the%operator crashed the server for a divisor less than 1 with a very long fractional part. (Bug#31019)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)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)For
MEMORYtables, lookups forNULLvalues inBTREEindexes could return incorrect results. (Bug#30885)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)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)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 optimizer could ignore
ORDER BYin cases when the result set is ordered byfilesort, resulting in rows being returned in incorrect order. (Bug#30666)MyISAMtables could not exceed 4294967295 (2^32 - 1) rows on Windows. (Bug#30638)mysql-test-run.pl could not run mysqld with
rootprivileges. (Bug#30630)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_colDIVnumberThe 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)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)For
CREATE ... SELECT ... FROM, where the resulting table contained indexes, addingSQL_BUFFER_RESULTto theSELECTpart caused index corruption in the table. (Bug#30384)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)Some valid
euc-krcharacters having the second byte in the ranges[0x41..0x5A]and[0x61..0x7A]were rejected. (Bug#30315)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)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)Specifying the
--without-geometryoption for configure caused server compilation to fail. (Bug#29972)Under some circumstances, a UDF initialization function could be passed incorrect argument lengths. (Bug#29804)
configure did not find
nsson some Linux platforms. (Bug#29658)InnoDBhad a race condition for an adaptive hash rw-lock waiting for an X-lock. This fix may also provide significant speed improvements on systems experiencing problems with contention for the adaptive hash index. (Bug#29560)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)
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 can be accessed in expressions and attempting to set their values produces an error message that the variable is read only. (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)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)
The result from
CHAR()was incorrectly assumed in some contexts to return a single-byte result. (Bug#28550)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)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)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)
The anonymous accounts were not being created during MySQL installation. (Bug#27692)
A 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 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)resolveip failed to produce correct results for host names that begin with a digit. (Bug#27427)
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.
mysqlcheck -A -r did not correctly identify all tables that needed repairing. (Bug#25347)
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 Windows Vista, MySQLInstanceConfig.exe did not include a proper manifest enabling it to run with administrative privileges. (Bug#22563)
See also Bug#24732.
mysqldumpslow returned a confusing error message when no configuration file was found. (Bug#20455)
Host names sometimes were treated as case sensitive in account-management statements (
CREATE USER,GRANT,REVOKE, and so forth). (Bug#19828)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
Aborted_clientsstatus variable was incremented twice if a client exited without callingmysql_close(). (Bug#16918)Clients were ignoring the TCP/IP port number specified as the default port via the --with-tcp-port configuration option. (Bug#15327)
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)If an
INSERT ... SELECTstatement is executed, and no automatically generated value is successfully inserted, thenmysql_insert_id()returns the ID of the last inserted row.If no automatically generated value is successfully inserted, then
mysql_insert_id()returns 0. (Bug#9481)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 (except Windows, for which large values are truncated to 4GB with a warning).For
join_buffer_size,sort_buffer_size, andmyisam_sort_buffer_size, values are limited to 4GB on all platforms. Larger 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)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.54). 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:
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)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)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)
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: The failure of a master node could lead to subsequent failures in local checkpointing. (Bug#32160)
MySQL Cluster: Primary keys on variable-length columns (such as
VARCHAR) did not work correctly. (Bug#31635)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.0.30 and MySQL 5.0.33 (Bug#21072)
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: SQL statements containing comments using
--syntax were not replayable by mysqlbinlog, even though such statements replicated correctly. (Bug#32205)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: Setting
server_iddid not update its value for the current session. (Bug#28908)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)Use of uninitialized memory for
filesortin a subquery caused a server crash. (Bug#33675)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)
SET GLOBAL myisam_max_sort_file_size=DEFAULTsetmyisam_max_sort_file_sizeto an incorrect value. (Bug#33382)See also Bug#31177.
CREATE TABLE ... SELECTcreated tables that for date columns used the obsoleteField_datetype instead ofField_newdate. (Bug#33256)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)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)
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)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)HOUR(),MINUTE(), andSECOND()could return nonzero values forDATEarguments. (Bug#31990)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)
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)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)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)
An
ORDER BYat the end of aUNIONaffected individualSELECTstatements rather than the overall query result. (Bug#27848)With the
read_onlysystem variable enabled,CREATE DATABASEandDROP DATABASEwere allowed to users who did not have theSUPERprivilege. (Bug#27440)resolveip failed to produce correct results for host names that begin with a digit. (Bug#27427)
mysqlcheck -A -r did not correctly identify all tables that needed repairing. (Bug#25347)
For Windows Vista, MySQLInstanceConfig.exe did not include a proper manifest enabling it to run with administrative privileges. (Bug#22563)
See also Bug#24732.
mysqldumpslow returned a confusing error message when no configuration file was found. (Bug#20455)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This is a bugfix release that replaces MySQL 5.0.54.
Bugs fixed:
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.
Note
The proof-of-concept exploit is freely available on the Internet. Everyone with a vulnerable MySQL configuration is advised to upgrade immediately.
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.52). 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
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)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:
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: The MySQL 5.0.50 patch for this bug was reverted because it changed the behavior of a General Availability MySQL release. (Bug#30234)
See also Bug#27525.
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)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 of memory or more. (Bug#31793)
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: 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: 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)An
ORDER BYquery usingIS NULLin theWHEREclause did not return correct results. (Bug#32815)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)Specifying a nonexistent column for an
INSERT DELAYEDstatement caused a server crash rather than producing an error. (Bug#32676)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.
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)Sending 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)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)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)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)InnoDBdoes not supportSPATIALindexes, but could crash when asked to handle one. Now an error is returned. (Bug#32125)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)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)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)Killing a
CREATE TABLE ... LIKEstatement that was waiting for a name lock caused a server crash. When the statement was killed, the server attempted to release locks that were not held. (Bug#31479)myisamchk --unpack could corrupt a table that when unpacked has static (fixed-length) row format. (Bug#31277)
Server variables could not be set to their current values on Linux platforms. (Bug#31177)
See also Bug#6958.
Data in
BLOBorGEOMETRYcolumns could be cropped when performing aUNIONquery. (Bug#31158)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)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)Many nested subqueries in a single query could led to excessive memory consumption and possibly a crash of the server. (Bug#31048)
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)A multiple-table
UPDATEinvolving transactional and nontransactional tables caused an assertion failure. (Bug#30763)mysql-test-run.pl could not run mysqld with
rootprivileges. (Bug#30630)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)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)For
CREATE ... SELECT ... FROM, where the resulting table contained indexes, addingSQL_BUFFER_RESULTto theSELECTpart caused index corruption in the table. (Bug#30384)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)Some valid
euc-krcharacters having the second byte in the ranges[0x41..0x5A]and[0x61..0x7A]were rejected. (Bug#30315)Simultaneous
ALTER TABLEstatements forBLACKHOLEtables caused 100% CPU use due to locking problems. (Bug#30294)Tables with a
GEOMETRYcolumn could be marked as corrupt if you added a non-SPATIALindex on aGEOMETRYcolumn. (Bug#30284)On some 64-bit systems, inserting the largest negative value into a
BIGINTcolumn resulted in incorrect data. (Bug#30069)InnoDBhad a race condition for an adaptive hash rw-lock waiting for an X-lock. This fix may also provide significant speed improvements on systems experiencing problems with contention for the adaptive hash index. (Bug#29560)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)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)
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)A 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 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)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.
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)
Zero-padding of exponent values was not the same across platforms. (Bug#12860)
If an
INSERT ... SELECTstatement is executed, and no automatically generated value is successfully inserted, thenmysql_insert_id()returns the ID of the last inserted row.If no automatically generated value is successfully inserted, then
mysql_insert_id()returns 0. (Bug#9481)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.50). 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:
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)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:errnoThe 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.2.10.4, “Adaptive Hash Indexes”.
Bugs fixed:
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)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: 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)MySQL Cluster: An uninitialized variable in the
NDBstorage engine code led toAUTO_INCREMENTfailures when the server was compiled with gcc 4.2.1. (Bug#31848)This regression was introduced by Bug#27437.
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: Transaction timeouts were not handled well in some circumstances, leading to excessive number of transactions being aborted unnecessarily. (Bug#30379)
MySQL Cluster: In some cases, the cluster managment server logged entries multiple times following a restart of mgmd. (Bug#29565)
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:
UPDATE IGNOREcould sometimes fail onNDBtables due to the use of unitialized data when checking for duplicate keys to be ignored. (Bug#25817)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)A build problem introduced in MySQL 5.0.52 was resolved: The x86 32-bit Intel icc-compiled server binary had unwanted dependences on Intel icc runtime libraries. (Bug#32514)
The rules for valid column names were being applied differently for base tables and views. (Bug#32496)
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)The server crashed on optimizations involving a join of
INTandMEDIUMINTcolumns and a system variable in theWHEREclause. (Bug#32103)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)A column with malformed multi-byte characters could cause the full-text parser to go into an infinite loop. (Bug#31950)
In debug builds, testing the result of an
INsubquery againstNULLcaused an assertion failure. (Bug#31884)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)The server could crash during
filesortforORDER BYbased on expressions withINET_NTOA()orOCT()if those functions returnedNULL. (Bug#31758)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)The examined-rows count was not incremented for
constqueries. (Bug#31700)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)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)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 nullSELECT 1 REGEX NULLcaused an assertion failure for debug servers. (Bug#31440)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 an almost-full
MyISAMtable, an insert that failed could leave the table in a corrupt state. (Bug#31305)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)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)Full-text searches on
ucs2columns caused a server crash. (FULLTEXTindexes onucs2columns cannot be used, but it should be possible to performIN BOOLEAN MODEsearches onucs2columns without a crash.) (Bug#31159)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)GROUP BY NULL WITH ROLLUPcould cause a server crash. (Bug#31095)See also Bug#32558.
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)The
MOD()function and the%operator crashed the server for a divisor less than 1 with a very long fractional part. (Bug#31019)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)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)On Windows, the
pthread_mutex_trylock()implementation was incorrect. One symptom was that invalidating the query cache could cause a server crash. (Bug#30768)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 optimizer could ignore
ORDER BYin cases when the result set is ordered byfilesort, resulting in rows being returned in incorrect order. (Bug#30666)MyISAMtables could not exceed 4294967295 (2^32 - 1) rows on Windows. (Bug#30638)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_colDIVnumberWhen 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)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)Setting certain values on a table using a spatial index could cause the server to crash. (Bug#30286)
Some
INFORMATION_SCHEMAtables are intended for internal use, but could be accessed by usingSHOWstatements. (Bug#30079)Specifying the
--without-geometryoption for configure caused server compilation to fail. (Bug#29972)Under some circumstances, a UDF initialization function could be passed incorrect argument lengths. (Bug#29804)
configure did not find
nsson some Linux platforms. (Bug#29658)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 can be accessed in expressions and attempting to set their values produces an error message that the variable is read only. (Bug#29131)SHOW VARIABLESdid not display therelay_log,relay_log_index, orrelay_log_info_filesystem variables. (Bug#28893)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)
The result from
CHAR()was incorrectly assumed in some contexts to return a single-byte result. (Bug#28550)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)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)comp_err created files with permissions such that they might be inaccessible during make install operations. (Bug#27789)
The anonymous accounts were not being created during MySQL installation. (Bug#27692)
Host names sometimes were treated as case sensitive in account-management statements (
CREATE USER,GRANT,REVOKE, and so forth). (Bug#19828)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
Aborted_clientsstatus variable was incremented twice if a client exited without callingmysql_close(). (Bug#16918)Clients were ignoring the TCP/IP port number specified as the default port via the --with-tcp-port configuration option. (Bug#15327)
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 (except Windows, for which large values are truncated to 4GB with a warning).For
join_buffer_size,sort_buffer_size, andmyisam_sort_buffer_size, values are limited to 4GB on all platforms. Larger 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)
This is a bugfix release for the current MySQL Community Server production release family. It replaces MySQL 5.0.51.
Bugs fixed:
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)
The MySQL preferences pane did not work to start or stop MySQL on Mac OS X 10.5 (Leopard). (Bug#28854)
On Mac OS X, the StartupItem for MySQL did not work. (Bug#25008)
This is a bugfix release for the current MySQL Community Server production release family. It replaces MySQL 5.0.51.
Bugs fixed:
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.
Note
The proof-of-concept exploit is freely available on the Internet. Everyone with a vulnerable MySQL configuration is advised to upgrade immediately.
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)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)
For Windows Vista, MySQLInstanceConfig.exe did not include a proper manifest enabling it to run with administrative privileges. (Bug#22563)
See also Bug#24732.
MySQLInstanceConfig.exe failed to grant certain privileges to the
'root'@'%'account. (Bug#17303)
This is a bugfix release for the current MySQL Community Server production release family. It replaces MySQL 5.0.45.
Functionality added or changed:
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. If a stored object definition contains only a single statement (does not use aBEGIN ... ENDblock) and contains a comment within the statement, the comment should be moved to follow the statement or the object should be rewritten to use aBEGIN ... ENDblock. For example, this statement:CREATE PROCEDURE p() SELECT 1 /* my comment */ ;
Can be rewritten in either of these ways:
CREATE PROCEDURE p() SELECT 1; /* my comment */ CREATE PROCEDURE p() BEGIN SELECT 1 /* my comment */ ; END;
MySQL Cluster: Mapping of
NDBerror codes to MySQL storage engine error codes has been improved. (Bug#28423)MySQL Cluster:
auto_increment_incrementandauto_increment_offsetare now supported forNDBtables. (Bug#26342)MySQL Cluster: The output from the cluster management client showing the progress of data node starts has been improved. (Bug#23354)
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.3, “The Binary Log”.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 boolean expressions. (Bug#30237)
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)MySQL source distributions are now available in Zip format. (Bug#27742)
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)The
EXAMPLEstorage engine is now enabled by default.
Bugs fixed:
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)
Incompatible Change: The file
mysqld.exewas mistakenly included in binary distributions between MySQL 5.0.42 and 5.0.48. You should usemysqld-nt.exe. (Bug#32197)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;
This bug fix enables alias declarations to be declared only in the
table_referencespart. Elsewhere in the statement, alias references are allowed but not alias declarations. (Bug#30234)See also Bug#27525.
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.18.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#29461)MySQL Cluster: Packaging: Some commercial MySQL Cluster RPM packages included support for the
InnoDBstorage engine. (InnoDBis not part of the standard commercial MySQL Cluster offering.) (Bug#31989)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: 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: 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: The description of the
--printoption provided in the output from ndb_restore--helpwas incorrect. (Bug#27683)MySQL Cluster: The management client's response to
START BACKUP WAIT COMPLETEDdid not include the backup ID. (Bug#27640)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: Warnings and errors generated by ndb_config
--config-file=were sent tofilestdout, rather than tostderr. (Bug#25941)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: 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)
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:
DROP USERstatements that named multiple users, only some of which could be dropped, were replicated incorrectly. (Bug#29030)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)
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)A server crash could occur when a non-
DETERMINISTICstored function was used in aGROUP BYclause. (Bug#31035)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)A failed
HANDLER ... READoperation could leave the table in a locked state. (Bug#30632)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)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)Issuing a
DELETEstatement having both anORDER BYclause and aLIMITclause could cause mysqld to crash. (Bug#30385)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)Queries that had a
GROUP BYclause and selectedCOUNT(DISTINCTreturned incorrect results. (Bug#30324)bit_column)The server created temporary tables for filesort operations in the working directory, not in the directory specified by the
tmpdirsystem variable. (Bug#30287)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)Using
KILL QUERYorKILL CONNECTIONto kill aSELECTstatement caused a server crash if the query cache was enabled. (Bug#30201)Prepared statements containing
CONNECTION_ID()could be written improperly to the binary log. (Bug#30200)When a thread executing a
DROP TABLEstatement was killed, the table name locks that had been acquired were not released. (Bug#30193)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)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)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)The
IS_UPDATABLEcolumn in theINFORMATION_SCHEMA.VIEWStable was not always set correctly. (Bug#30020)Statements within stored procedures ignored the value of the
low_priority_updatessystem variable. (Bug#29963)See also Bug#26162.
For
MyISAMtables on Windows,INSERT,DELETE, orUPDATEfollowed byALTER TABLEwithinLOCK TABLEScould cause table corruption. (Bug#29957)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)
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)Using the
DATE()function in aWHEREclause did not return any records after encounteringNULL. However, usingTRIMorCASTproduced the correct results. (Bug#29898)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)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)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)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.
On Windows, the mysql client died if the user entered a statement and Return after entering Control-C. (Bug#29469)
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)If a view used a function in its
SELECTstatement, the columns from the view were not inserted into theINFORMATION_SCHEMA.COLUMNStable. (Bug#29408)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)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)The
mysql_list_fields()C API function incorrectly setMYSQL_FIELD::decimalsfor some view columns. (Bug#29306)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)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)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)
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;
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)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)Queries using UDFs or stored functions were cached. (Bug#28921)
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)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.7, “String Repertoire”). (Bug#28875)
Non-
utf8characters could get mangled when stored inCSVtables. (Bug#28862)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)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)Runtime changes to the
log_queries_not_using_indexessystem variable were ignored. (Bug#28808)Tables using the
InnoDBstorage engine incrementedAUTO_INCREMENTvalues incorrectly withON DUPLICATE KEY UPDATE. (Bug#28781)Selecting a column not present in the selected-from table caused an extra error to be produced by
SHOW ERRORS. (Bug#28677)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)For
InnoDBtables, MySQL unnecessarily sorted records in certain cases when the records were retrieved byInnoDBin the proper order already. (Bug#28591)A
SELECTin one connection could be blocked byINSERT ... ON DUPLICATE KEY UPDATEin another connection even whenlow_priority_updatesis set. (Bug#28587)mysql_install_db could fail to find script files that it needs. (Bug#28585)
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)mysql_upgrade could run binaries dynamically linked against incorrect versions of shared libraries. (Bug#28560)
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)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)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)
The
LOCATE()function returnedNULLif any of its arguments evaluated toNULL. Likewise, the predicate,LOCATE(, erroneously evaluated tostr,NULL) IS NULLFALSE. (Bug#27932)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)SHOW COLUMNSreturnedNULLinstead of the empty string for theDefaultvalue of columns that had no default specified. (Bug#27747)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)
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)A stack overrun could occur when storing
DATETIMEvalues using repeated prepared statements. (Bug#27592)Dropping a user-defined function could cause a server crash if the function was still in use by another thread. (Bug#27564)
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.18.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#27562)The parser rules for the
SHOW PROFILEstatement were revised to work with older versions of bison. (Bug#27433)Unsafe aliasing in the source caused a client library crash when compiled with gcc 4 at high optimization levels. (Bug#27383)
A
SELECTwith more than 31 nested dependent subqueries returned an incorrect result. (Bug#27352)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)
INSERT INTO ... SELECTcaused a crash ifinnodb_locks_unsafe_for_binlogwas enabled. (Bug#27294)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)ALTER TABLE ... ENABLE KEYScould cause mysqld to crash when executed on a table containing on aMyISAMtable containing billions of rows. (Bug#27029)FEDERATEDtables had an artificially low maximum of key length. (Bug#26909)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)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)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)ALTER DATABASEdid not require at least one option. (Bug#25859)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)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)For
InnoDBtables,CREATE TABLE a AS SELECT * FROM Awould fail. (Bug#25164)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)A too-long
shared-memory-base-namevalue could cause a buffer overflow and crash the server or clients. (Bug#24924)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)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)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)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)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)
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)
mysql-stress-test.pl and mysqld_multi.server.sh were missing from some binary distributions. (Bug#21023, Bug#25486)
On Windows, the server used 10MB of memory for each connection thread, resulting in memory exhaustion. Now each thread uses 1MB. (Bug#20815)
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)
InnoDBproduced an unnecessary (and harmless) warning:. (Bug#20090)InnoDB: Error: trying to declare trx to enterInnoDB, butInnoDB: it already is declaredUnder 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)
Parameters of type
DATETIMEorDATEin stored procedures were silently converted toVARBINARY. (Bug#13675)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 server returned data from
SHOW CREATE TABLEstatement or aSELECTstatement on an INFORMATION_SCHEMA table 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 Service Pack release of the MySQL Enterprise Server 5.0.
This is a bugfix release that replaces MySQL 5.0.50sp1.
Bugs fixed:
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.
Note
The proof-of-concept exploit is freely available on the Internet. Everyone with a vulnerable MySQL configuration is advised to upgrade immediately.
This is a Service Pack release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.50). 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:
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)A build problem introduced in MySQL 5.0.52 was resolved: The x86 32-bit Intel icc-compiled server binary had unwanted dependences on Intel icc runtime libraries. (Bug#32514)
InnoDBdoes not supportSPATIALindexes, but could crash when asked to handle one. Now an error is returned. (Bug#32125)mysql-test-run.pl could not run mysqld with
rootprivileges. (Bug#30630)InnoDBhad a race condition for an adaptive hash rw-lock waiting for an X-lock. This fix may also provide significant speed improvements on systems experiencing problems with contention for the adaptive hash index. (Bug#29560)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.48). 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:
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. If a stored object definition contains only a single statement (does not use aBEGIN ... ENDblock) and contains a comment within the statement, the comment should be moved to follow the statement or the object should be rewritten to use aBEGIN ... ENDblock. For example, this statement:CREATE PROCEDURE p() SELECT 1 /* my comment */ ;
Can be rewritten in either of these ways:
CREATE PROCEDURE p() SELECT 1; /* my comment */ CREATE PROCEDURE p() BEGIN SELECT 1 /* my comment */ ; END;
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)
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 boolean expressions. (Bug#30237)
Bugs fixed:
Incompatible Change: The file
mysqld.exewas mistakenly included in binary distributions between MySQL 5.0.42 and 5.0.48. You should usemysqld-nt.exe. (Bug#32197)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;
This fix enables alias declarations to be made only in the
table_referencespart. Elsewhere in the statement, alias references are allowed but not alias declarations. However, this patch was reverted in MySQL 5.0.54 because it changed the behavior of a General Availability MySQL release. (Bug#30234)See also Bug#27525.
MySQL Cluster: Packaging: Some commercial MySQL Cluster RPM packages included support for the
InnoDBstorage engine. (InnoDBis not part of the standard commercial MySQL Cluster offering.) (Bug#31989)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: 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: The description of the
--printoption provided in the output from ndb_restore--helpwas incorrect. (Bug#27683)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)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)A server crash could occur when a non-
DETERMINISTICstored function was used in aGROUP BYclause. (Bug#31035)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)A failed
HANDLER ... READoperation could leave the table in a locked state. (Bug#30632)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)Issuing a
DELETEstatement having both anORDER BYclause and aLIMITclause could cause mysqld to crash. (Bug#30385)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)Queries that had a
GROUP BYclause and selectedCOUNT(DISTINCTreturned incorrect results. (Bug#30324)bit_column)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)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)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)If a view used a function in its
SELECTstatement, the columns from the view were not inserted into theINFORMATION_SCHEMA.COLUMNStable. (Bug#29408)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)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)
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)
For
InnoDBtables,CREATE TABLE a AS SELECT * FROM Awould fail. (Bug#25164)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)
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)
Parameters of type
DATETIMEorDATEin stored procedures were silently converted toVARBINARY. (Bug#13675)
This is a Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
Important
This release was withdrawn from production and is no longer available.
This section documents all changes and bugfixes that have been applied since the last last MySQL Enterprise Server release (5.0.46). 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:
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)MySQL source distributions are now available in Zip format. (Bug#27742)
The
EXAMPLEstorage engine is now enabled by default.
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.18.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#29461)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:
SHOW SLAVE STATUSfailed when slave I/O was about to terminate. (Bug#34305)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: 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)
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)
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)The server created temporary tables for filesort operations in the working directory, not in the directory specified by the
tmpdirsystem variable. (Bug#30287)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)
GROUP BYonBITcolumns produced incorrect results. (Bug#30219)Using
KILL QUERYorKILL CONNECTIONto kill aSELECTstatement caused a server crash if the query cache was enabled. (Bug#30201)Prepared statements containing
CONNECTION_ID()could be written improperly to the binary log. (Bug#30200)When a thread executing a
DROP TABLEstatement was killed, the table name locks that had been acquired were not released. (Bug#30193)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)The
IS_UPDATABLEcolumn in theINFORMATION_SCHEMA.VIEWStable was not always set correctly. (Bug#30020)Statements within stored procedures ignored the value of the
low_priority_updatessystem variable. (Bug#29963)See also Bug#26162.
For
MyISAMtables on Windows,INSERT,DELETE, orUPDATEfollowed byALTER TABLEwithinLOCK TABLEScould cause table corruption. (Bug#29957)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)
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)Using the
DATE()function in aWHEREclause did not return any records after encounteringNULL. However, usingTRIMorCASTproduced the correct results. (Bug#29898)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)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)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)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)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.
On Windows, the mysql client died if the user entered a statement and Return after entering Control-C. (Bug#29469)
Killing an
INSERT DELAYEDthread caused a server crash. (Bug#29431)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)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)The
mysql_list_fields()C API function incorrectly setMYSQL_FIELD::decimalsfor some view columns. (Bug#29306)InnoDBrefused to start on some versions of FreeBSD with LinuxThreads. This is fixed by enabling file locking on FreeBSD. (Bug#29155)A maximum of 4TB
InnoDBfree space was reported bySHOW TABLE STATUS,which is incorrect on systems with more than 4TB space. (Bug#29097)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)
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.7, “String Repertoire”). (Bug#28875)
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)Tables using the
InnoDBstorage engine incrementedAUTO_INCREMENTvalues incorrectly withON DUPLICATE KEY UPDATE. (Bug#28781)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)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)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)
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)Some
SHOWstatements andINFORMATION_SCHEMAqueries could expose information not allowed by the user's access privileges. (Bug#27629)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.18.3, “Checking Whether Table Indexes Must Be Rebuilt”. (Bug#27562)A
SELECTwith more than 31 nested dependent subqueries returned an incorrect result. (Bug#27352)INSERT INTO ... SELECTcaused a crash ifinnodb_locks_unsafe_for_binlogwas enabled. (Bug#27294)FEDERATEDtables had an artificially low maximum of key length. (Bug#26909)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)ALTER DATABASEdid not require at least one option. (Bug#25859)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)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)Several
InnoDBassertion failures were corrected. (Bug#25645)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)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)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)
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 declaredSQL_BIG_RESULThad no effect forCREATE TABLE ... SELECT SQL_BIG_RESULT ...statements. (Bug#15130)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)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 Monthly Rapid Update release of the MySQL Enterprise Server 5.0.
This section documents all changes and bugfixes that have been applied since the last MySQL Enterprise Server release (5.0.44). 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:
MySQL Cluster:
auto_increment_incrementandauto_increment_offsetare now supported forNDBtables. (Bug#26342)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.3, “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)
Bugs fixed:
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: The management client's response to
START BACKUP WAIT COMPLETEDdid not include the backup ID. (Bug#27640)Replication:
DROP USERstatements that named multiple users, only some of which could be dropped, were replicated incorrectly. (Bug#29030)On the IBM i5 platform, the installation script in the
.savfbinaries unconditionally executed the mysql_install_db script. (Bug#30084)gcov coverage-testing information was not written if the server crashed. (Bug#29543)
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'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)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)
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)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)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)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)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;
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)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)Queries using UDFs or stored functions were cached. (Bug#28921)
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)Non-
utf8characters could get mangled when stored inCSVtables. (Bug#28862)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)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)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)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)mysqlbinlog --hexdump generated incorrect output due to omission of the “
#” comment character for some comment lines. (Bug#28293)The
LOCATE()function returnedNULLif any of its arguments evaluated toNULL. Likewise, the predicate,LOCATE(, erroneously evaluated tostr,NULL) IS NULLFALSE. (Bug#27932)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)
A stack overrun could occur when storing
DATETIMEvalues using repeated prepared statements. (Bug#27592)Dropping a user-defined function could cause a server crash if the function was still in use by another thread. (Bug#27564)
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)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)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 index merge union access algorithm could produce incorrect results with
InnoDBtables. The problem could also occur for queries that usedDISTINCT. (Bug#25798)Under ActiveState Perl,
mysql-test-run.plcould kill itself when attempting to kill other processes. (Bug#25657)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)A too-long
shared-memory-base-namevalue could cause a buffer overflow and crash the server or clients. (Bug#24924)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)SHOW BINLOG EVENTSdisplayed incorrect values ofEnd_log_posfor events associated with transactional storage engines. (Bug#22540)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)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)The server returned data from
SHOW CREATE TABLEstatement or aSELECTstatement on an INFORMATION_SCHEMA table using thebinarycharacter set. (Bug#10491)
This is a bugfix release for the current MySQL Community Server production release family. It replaces MySQL 5.0.41.
Functionality added or changed:
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:
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: 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 Section 17.9.1, “Configuring MySQL Cluster to use SCI Sockets”. (Bug#25470)
Binaries for the Linux x86 statically linked
tar.gzCommunity package were linked dynamically, not statically. Static linking has been re-enabled. (Bug#29617)INSERT DELAYEDstatements onBLACKHOLEtables are now rejected, due to the fact that theBLACKHOLEstorage engine does not support them. (Bug#27998)A new status variable,
Com_call_procedure, indicates the number of calls to stored procedures. (Bug#27994)Potential memory leaks in
SHOW PROFILEwere eliminated. (Bug#24795)
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: Use of a view could allow a user to gain update privileges for tables in other databases. (Bug#27878, CVE-2007-3782)
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:
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: 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: A corrupt schema file could cause a File already open error. (Bug#28770)
MySQL Cluster: Setting
InitialNoOpenFilesequal toMaxNoOfOpenFilescaused an error. This was due to the fact that the actual value ofMaxNoOfOpenFilesas used by the cl