Table of Contents
This appendix lists the changes from version to version in the MySQL source code through the latest version of MySQL 5.0, which is currently MySQL 5.0.19. Starting with MySQL 5.0, we began offering a new version of the Manual for each new series of MySQL releases (5.0, 5.1, and so on). For information about changes in previous release series of the MySQL database software, see the corresponding version of this Manual. For information about legacy versions of the MySQL software through the 4.1 series, see MySQL 3.23, 4.0, 4.1 Reference Manual.
We update this section as we add new features in the 5.0 series, so that everybody can follow the development process.
Note that we tend to update the manual at the same time we make changes to MySQL. If you find a recent version of MySQL listed here that you can't find on our download page (http://dev.mysql.com/downloads/), it means that the version has not yet been released.
The date mentioned with a release version is the date of the last BitKeeper ChangeSet on which the release was based, not the date when the packages were made available. The binaries are usually made available a few days after the date of the tagged ChangeSet, because building and testing all packages takes some time.
The manual included in the source and binary distributions may not be fully accurate when it comes to the release changelog entries, because the integration of the manual happens at build time. For the most up-to-date release changelog, please refer to the online version instead.
The following changelog shows what has been done in the 5.0 tree:
Basic support for read-only server side cursors. For information
about using cursors within stored routines, see
Section 17.2.9, “Cursors”. For information about using cursors
from within the C API, see
Section 22.2.7.3, “mysql_stmt_attr_set()”.
Basic support for (updatable) views. See, for example,
Section 19.2, “CREATE VIEW Syntax”.
Basic support for stored procedures and functions (SQL:2003 style). See Chapter 17, Stored Procedures and Functions.
Initial support for rudimentary triggers.
Added SELECT INTO
, which can be
of mixed (that is, global and local) types. See
Section 17.2.7.3, “list_of_varsSELECT ... INTO Statement”.
Removed the update log. It is fully replaced by the binary log.
If the MySQL server is started with
--log-update, it is translated to
--log-bin (or ignored if the server is
explicitly started with --log-bin), and a
warning message is written to the error log. Setting
SQL_LOG_UPDATE silently sets
SQL_LOG_BIN instead (or do nothing if the
server is explicitly started with --log-bin).
Support for the ISAM storage engine has been
removed. If you have ISAM tables, you should
convert them before upgrading. See
Section 2.10.2, “Upgrading from MySQL 4.1 to 5.0”.
Support for RAID options in
MyISAM tables has been removed. If you have
tables that use these options, you should convert them before
upgrading. See Section 2.10.2, “Upgrading from MySQL 4.1 to 5.0”.
User variable names are now case insensitive: If you do
SET @a=10; then SELECT @A;
now returns 10. Case sensitivity of a
variable's value depends on the collation of the value.
Strict mode, which in essence means that you get an error instead of a warning when inserting an incorrect value into a column. See Section 5.2.5, “The Server SQL Mode”.
VARCHAR and VARBINARY
columns remember end space. A VARCHAR() or
VARBINARY column can contain up to 65,535
characters or bytes, respectively.
MEMORY (HEAP) tables can
have VARCHAR() columns.
When using a constant string or a function that generates a
string result in CREATE ... SELECT, MySQL
creates the result field based on the maximum length of the
string or expression:
| Maximum Length | Data type |
| = 0 | CHAR(0) |
| < 512 | VARCHAR( |
| >= 512 | TEXT |
For a full list of changes, please refer to the changelog sections for each individual 5.0.x release.
Functionality added or changed:
Windows builds now have SSL support enabled. (Bug#18195)
The syntax for CREATE PROCEDURE and
CREATE FUNCTION statements now includes a
DEFINER clause. The
DEFINER value specifies the security
context to be used when checking access privileges at routine
invocation time if the routine has the SQL SECURITY
DEFINER characteristic. See
Section 17.2.1, “CREATE PROCEDURE and CREATE FUNCTION Syntax”, for more information.
When mysqldump is invoked with the
--routines option, it now dumps the
DEFINER value for stored routines.
Security Improvement: Checks for permissions on database
operations were performed in a case-insensitive manner,
meaning that a user with permissions on database
MYDATABASE also had permissions on database
myDataBase. (Bug #17279)
Bugs fixed:
If a row was inserted inside a stored procedure using the parameters passed to the procedure in the INSERT statement, the resulting binlog entry was not escaped properly. (Bug #18293)
If InnoDB encountered a
HA_ERR_LOCK_TABLE_FULL error and
rolled-back a transaction, the transaction was still written
to the binary log. (Bug #18283)
Stored procedures that call UDFs and pass local string variables caused server crashes. (Bug #17261)
Connecting to a server with a UCS2 default character set with a client using a non-UCS2 character set crashed the server. (Bug #18004)
Loading of UDFs in a statically linked MySQL caused a server crash. UDF loading is now blocked if the MySQL server is statically linked. (Bug #11835)
Views that incorporate tables from the INFORMATION_SCHEMA resulted in a server crash when queried. (Bug #18224)
A SELECT * query on an INFORMATION_SCHEMA
table by a user with limited privileges resulted in a server
crash. (Bug #18113)
Attempting to access an InnoDB table after
starting the server with --skip-innodb caused
a server crash. (Bug #14575)
InnoDB used table locks (not row locks)
within stored functions. (Bug #18077)
Replication slaves could not replicate triggers from older
servers that included no DEFINER clause in
the trigger definition. Now the trigger executes with the
privileges of the invoker (which on the slave is the slave SQL
thread). (Bug #16266)
Character set conversion of string constants for
UNION of constant and table column was not
done when it was safe to do so. (Bug #15949)
The DEFINER value for stored routines was
not replicated. (Bug #15963)
Use of stored functions with DISTINCT or
GROUP BY can produce incorrect results when
ORDER BY is also used. (Bug #13575)
Use of TRUNCATE TABLE for a
TEMPORARY table on a master server was
propagated to slaves properly, but slaves did not decrement
the Slave_open_temp_tables counter
properly. (Bug #17137)
SELECT COUNT(*) for a
MyISAM table could return different results
depending on whether an index was used. (Bug #14980)
A LEFT JOIN with a UNION
that selects literal values could crash the server. (Bug
#17366)
Large file support did not work in AIX server binaries. (Bug #10776)
Updating a view that filters certain rows to set a filtered
out row to be included in the table caused infinite loop. For
example, if the view has a WHERE clause of salary >
100 then issuing an UPDATE statement of SET
salary = 200 WHERE id = 10, caused an infinite loop.
(Bug #17726)
Certain combinations of joins with mixed ON
and USING clauses caused unknown column
errors. (Bug #15229)
NDB Cluster: Inserting and deleting
BLOB column values while a backup was in
process could cause the loss of an ndbd
node. (Bug #14028)
If the server was started with the
--skip-grant-tables option, it was impossible
to create a trigger or a view without explicitly specifying a
DEFINER clause. (Bug #16777)
COUNT(DISTINCT and
col1,
col2)COUNT(DISTINCT
CONCAT( operations
produced different results if one of the columns was an
indexed col1,
col2))DECIMAL column. (Bug #15745)
The server displayed garbage in the error message warning
about bad assignments to DECIMAL columns or
routine variables. (Bug #15480)
The server would execute stored routines that had a non-existent definer. (Bug #13198)
For FEDERATED tables, a
SELECT statement with an ORDER
BY clause did not return rows in the proper order.
(Bug #17377)
The FORMAT() function returned an incorrect
result when the client's
character_set_connection value was
utf8. (Bug #16678)
NDB Cluster: Some query cache statistics
were not always correctly reported for Cluster tables. (Bug
#16795)
Updating the value of a Unicode VARCHAR
column with the result returned by a stored function would
cause the insertion of ASCII characters into the column
instead of Unicode, even where the function's return type was
also declared as Unicode. (Bug #17615)
Functionality added or changed:
Incompatible change: The
InnoDB storage engine no longer ignores
trailing spaces when comparing BINARY or
VARBINARY column values. This means that
(for example) the binary values 'a' and
'a ' are now regarded as
unequal any time they are compared, as
they are in MyISAM tables. (Bug #14189)
See Section 11.4.2, “The BINARY and VARBINARY Types” for more information
about the BINARY and
VARBINARY types.
The result type of the GROUP_CONCAT()
function is now VARCHAR only if the the
value of the group_concat_max_len system
variable is less than or equal to 512. Otherwise, this
funciton returns a BLOB. (Bug #14169)
Added the mysql_upgrade program that checks all tables for incompatibilities with the current version of MySQL Server and repairs them if necessary. This program should be run for each MySQL upgrade (rather than mysql_fix_privilege_tables). See Section 5.6.2, “mysql_upgrade — Check Tables for MySQL Upgrade”.
Added the FOR UPGRADE option for the
CHECK TABLE statement. This option checks
whether tables are incompatible with the current version of
MySQL Server. Also added the --check-upgrade
to mysqlcheck that invokes CHECK
TABLE with the FOR UPGRADE
option.
mysql no longer terminates data value display when it encounters a NUL byte. Instead, it displays NUL bytes as spaces. (Bug #16859)
Added the --wait-timeout option to
mysqlmanager to allow configuration of the
timeout for dropping an inactive connection, and increased the
default timeout from 30 seconds to 28,800 seconds (8 hours).
(Bug #12674)
A number of performance issues were resolved that had
previously been encountered when using statements that
repeatedly invoked stored functions. For example, calling
BENCHMARK() using a stored function
executed much more slowly than when invoking it with inline
code that accomplished the same task. In most cases the two
should now execute with approximately the same speed. (Bug
#15014, Bug #14946)
libmysqlclient now uses versioned symbols
with GNU ld. (Bug #3074)
NDB Cluster: More descriptive warnings are
now issued when inappropriate logging parameters are set in
config.ini. (Formerly, the warning issued
was simply Could not add logfile
destination.) (Bug #11331)
Added the --port-open-timeout option to
mysqld to control how many seconds the
server should wait for the TCP/IP port to become free if it
cannot be opened. (Bug #15591)
Repeated invocation of my_init() and
my_end() caused corruption of character set
data and connection failure. (Bug #6536)
Two new Hungarian collations are included:
utf8_hungarian_ci and
ucs2_hungarian_ci. These support the
correct sort order for Hungarian vowels. However, they do not
support the correct order for sorting Hungarian consonant
contractions; this issue will be fixed in a future release.
Wording of error 1329 changed to No data - zero rows fetched, selected, or processed. (Bug #15206)
The INFORMATION_SCHEMA now skips data
contained in unlistable/unreadable directories rather than
returning an error. (Bug #15851)
InnoDB now caches a list of unflushed files instead of
scanning for unflushed files during a table flush operation.
This improves performance when
--innodb-file-per-table is set on a system
with a large number of InnoDB tables. (Bug #15653)
The message for error 1109 changed from Unknown table ... in order clause to Unknown table ... in field list. (Bug #15091)
The mysqltest utility now converts all
CR/LF combinations to LF
to allow test cases intended for Windows to work properly on
UNIX-like systems. (Bug #13809)
The mysql_ping function will now retry if
the reconnect flag is set and error
CR_SERVER_LOST is encountered during the
first attempt to ping the server. (Bug #14057)
mysqldump now surrounds the
DEFINER, SQL SECURITY
DEFINER and WITH CHECK OPTION
clauses of a CREATE VIEW statement with
"not in version" comments to prevent errors in earlier
versions of MySQL. (Bug #14871)
New charset command added to
mysql command-line client. By typing
charset or
name\C (such as
name\C UTF8), the client character set can be
changed without reconnecting. (Bug #16217)
Client API will now attempt reconnect on TCP/IP if the
reconnect flag is set, as is the case with
sockets. (Bug #2845)
Bugs fixed:
Cursors in stored routines could cause a server crash. (Bug #16887)
Setting the myisam_repair_threads system
variable to a value larger than 1 could cause corruption of
large MyISAM tables. (Bug #11527)
When using the GROUP_CONCAT() function
where the group_concat_max_len system
variable was greater than 512, the type of the result was
BLOB only if the query included an
ORDER BY clause; otherwise the result was a
VARCHAR. (Bug #14169)
The length of a VARCHAR() column that used
the utf8 character set would increase each
time the table was re-created in a stored procedure or
prepared statement, eventually causing the CREATE
TABLE statement to fail. (Bug #13134)
type_decimal failed with the prepared
statement protocol. (Bug #17826)
The MySQL server could crash with out of memory errors when
performing aggregate functions on a DECIMAL
column. (Bug #17602)
A stored procedure failed to return data the first time it was called per connection. (Bug #17476)
Using DROP FUNCTION IF EXISTS
to drop a
user-defined function caused a server crash if the server was
running with the func_name--skip-grant-tables option.
(Bug #17595)
Using ALTER TABLE to increase the length of
a BINARY(
column caused column values to be padded with spaces rather
than M)0x00 bytes. (Bug #16857)
A large BIGINT value specified in a
WHERE clause could be treated differently
depending on whether it is specified as a quoted string. (For
example, WHERE bigint_col =
17666000000000000000 versus WHERE
bigint_col = '17666000000000000000'). (Bug #9088)
A natural join between INFORMATION_SCHEMA
tables failed. (Bug #17523)
A memory leak caused warnings on slaves for certain statements that executed without warning on the master. (Bug #16175)
The embedded server did not allow binding of columns to the
MYSQL_TYPE_VAR_STRING data type in prepared
statements. (Bug #12070)
The embedded server failed various tests in the automated test suite. (Bug #9630, Bug #9631, Bug #9633, Bug #10801, Bug #10911, Bug #10924, Bug #10925, Bug #10926, Bug #10930, Bug #15433)
Instance Manager erroneously accepted a list of instance
identifiers for the START INSTANCE and
STOP INSTANCE commands (should accept only
a single identifier). (Bug #12813)
For a transaction that used MyISAM and
InnoDB tables, interruption of the
transaction due to a dropped connection on a master server
caused slaves to lose synchrony. (Bug #16559)
SELECT with GROUP BY on
a view can cause a server crash. (Bug #16382)
If the query optimizer transformed a GROUP
BY clause in a subquery, it did not also transform
the HAVING clause if there was one,
producing incorrect results. (Bug #16603)
SUBSTRING_INDEX() could yield inconsistent
results when applied with the same arguments to consecutive
rows in a query. (Bug #14676)
The parser allowed CREATE AGGREGATE
FUNCTION for creating stored functions, even though
AGGREGATE does not apply. (It is used only
for CREATE FUNCTION only when creating
user-defined functions.) (Bug #16896)
Data truncations on non-UNIQUE indexes could crash InnoDB when using multi-byte character sets. (Bug #17530)
Triggers created without BEGIN and
END clauses could not be properly restored
from a mysqldump file. (Bug #16878)
The RENAME TABLE statement did not move
triggers to the new table. (Bug #13525)
Clients compiled from source with the
--without-readline did not save command
history from session to session. (Bug #16557)
Stored routines that contained only a single statement were
not written properly to the dumpfile when using
mysqldump. (Bug #14857)
For certain MERGE tables, the optimizer
wrongly assumed that using
index_merge/intersection was too expensive.
(Bug #17314)
Executing a SHOW CREATE VIEW query of an
invalid view caused the mysql_next_result
function of libMySQL.dll to hang. (Bug
#15943)
BIT fields were not properly handled when
using row-based replication. (Bug #13418)
Issuing GRANT EXECUTE on a procedure would
display any warnings related to the creation of the procedure.
(Bug #7787)
NDB Cluster:
ndb_delete_all would run out of memory on
tables containing BLOB columns. (Bug
#16693)
NDB Cluster: UNIQUE keys
in Cluster tables were limited to 225 bytes in length. (Bug
#15918)
In a highly concurrent environment, a server crash or deadlock could result from execution of a statement that used stored functions or activated triggers coincident with alteration of the tables used by these functions or triggers. (Bug #16593)
Previously, a stored function invocation was written to the
binary log as DO
if the
invocation changes data and occurs within a non-logged
statement, or if the function invokes a stored procedure that
produces an error. These invocations now are logged as
func_name()SELECT
instead for
better control over error code checking (slave servers could
stop due to detecting a different error than occurred on the
master). (Bug #14769)
func_name()
CHECKSUM TABLE returned different values on
MyISAM table depending on whether the QUICK
or EXTENDED options were used. (Bug #8841)
MySQL server dropped client connection for certain SELECT
statements against views defined that used
MERGE algorithm. (Bug #16260)
A call to the IF() function using decimal
arguments could return incorrect results. (Bug #16272)
A statement containing GROUP BY and
HAVING clauses could return incorrect
results when the HAVING clause contained
logic that returned FALSE for every row.
(Bug #14927)
Using GROUP BY on column used in
WHERE clause could cause empty set to be
returned. (Bug #16203)
For a MySQL 5.0 server, using MySQL 4.1 tables in queries with
a GROUP BY clause could result in buffer
overrun or a server crash. (Bug #16752)
SET sql_mode =
, where
NN > 31, did not work properly.
(Bug #13897)
NDB Cluster: Cluster log file paths were
truncated to 128 characters. They may now be as long as
MAX_PATH (the maximum path length permitted
by the operating system). (Bug #17411)
The mysql_stmt_store_result() C API
function could not be used for a prepared statement if a
cursor had been opened for the statement. (Bug #14013)
The mysql_stmt_sqlstate() C API function
incorrectly returned an empty string rather than
'00000' when no error occurred. (Bug
#16143)
Using the TRUNCATE() function with a
negative number for the second argument on a
BIGINT column returned incorrect results.
(Bug #8461)
Instance Manager searched wrong location for password file on some platforms. (Bug #16499)
NDB Cluster: Following multiple forced
shutdowns and restarts of data nodes, DROP
DATABASE could fail. (Bug #17325)
NDB Cluster: An UPDATE
with an inner join failed to match any records if both tables
in the join did not have a primary key. (Bug #17257)
NDB Cluster: A DELETE
with a join in the WHERE clause failed to
retrieve any records if both tables in the join did not have a
primary key. (Bug #17249)
The error message returned by perror
was prefixed with
OS error code: instead of
NDB error code:. (Bug #17235)
--ndb
NDB Cluster: In some cases, LOAD
DATA INFILE did not load all data into
NDB tables. (Bug #17081)
NDB Cluster: The REDO
log would become corrupted (and thus unreadable) in some
circumstances, due to a failure in the query handler. (Bug
#17295)
NDB Cluster: No error message was generated
for setting NoOfFragmentLogFiles too low.
(Bug #13966)
NDB Cluster: No error message was generated
for setting MaxNoOfAttributes too low. (Bug
#13965)
Binary distributions for Solaris contained files with group
ownership set to the non-existing wheel
group. Now the bin group is used. (Bug
#15562)
The DECIMAL data type was not being handled
correctly with prepared statements. (Bug #16511)
The SELECT privilege was required for
triggers that performed no selects. (Bug #15196)
The UPDATE privilege was required for
triggers that performed no updates. (Bug #15166)
CAST(... AS TIME) operations returned
different results when using versus not using
prepared-statement protocol. (Bug #15805)
Improper memory handling for stored routine variables could cause memory overruns and binary log corruption. (Bug #15588)
Killing a long-running query containing a subquery could cause a server crash. (Bug #14851)
A FULLTEXT query in a prepared statement
could result in unexpected behavior. (Bug #14496)
A RETURN statement within a trigger caused
a server crash. RETURN now is disallowed
within triggers. To exit immediately, use
LEAVE. (Bug #16829)
STR_TO_DATE(1,NULL) caused a server crash.
(Bug #15828)
An invalid stored routine could not be dropped. (Bug #16303)
When evaluation of the test in a CASE
failed in a stored procedure that contained a
CONTINUE handler, execution resumed at the
beginning of the CASE statement instead of at the end. (Bug
#16568)
An INSERT statement in a stored procedure
corrupted the binary log. (Bug #16621)
When MyODBC or any other client called
my_init()/my_end()
several times, it caused corruption of charset data stored in
once_mem_pool. (Bug #11892)
When multiple handlers are created for the same MySQL error number within nested blocks, the outermost handler took precedence. (Bug #15011)
Certain LEAVE statements in stored
procedures were not properly optimized. (Bug #15737)
Setting InnoDB path settings to an empty string caused InnoDB storage engine to crash upon server startup. (Bug #16157)
InnoDB used full explicit table locks in trigger processing. (Bug #16229)
Server crash when dropping InnoDB constraints named
.
(Bug #16387)
TABLENAME_ibfk_0
Corrected race condition when dropping the adaptive hash index for a B-tree page in InnoDB. (Bug #16582)
MYSQL_OPT_RECONNECT option was modified by
calls to the mysql_real_connect()
function. (Bug #15719)
InnoDB: After upgrading an
InnoDB table having a VARCHAR
BINARY column created in MySQL 4.0 to MySQL 5.0,
update operations on the table would cause the server to
crash. (Bug #16298)
Trying to compile the server on Windows generated a stack
overflow warning due to a recursive definition of the internal
Field_date::store() method. (Bug #15634)
The use of LOAD INDEX within a stored
routine was permitted and caused the server to crash.
Note: LOAD
INDEX statements within stored routines
are not supported, and now yield an error
if attempted. This behavior is intended. (Bug #14270)
The mysqlbinlog utility did not output
DELIMITER statements, causing syntax errors
for stored routine creation statements. (Bug #11312)
NDB Cluster returned incorrect Can't find
file error for OS error 24, changed to Too
many open files. (Bug #15020)
Performing a RENAME TABLE on an InnoDB
table when the server is started with the
--innodb-file-per-table and the data
directory is a symlink caused a server crash. (Bug #15991)
The mysql_stmt_attr_get function returned
an unsigned int instead of a boolean for
STMT_ATTR_UPDATE_MAX_LENGTH. (Bug #16144)
Multi-byte path names for LOAD DATA and
SELECT ... INTO OUTFILE caused errors.
Added the character_set_filesystem system
variable, which controls the interpretation of string literals
that refer to filenames. (Bug #12448)
Certain subqueries where the inner query is the result of a aggregate function would return different results on MySQL 5.0 than on MySQL 4.1. (Bug #15347)
Attempts to create FULLTEXT indexes on VARCHAR columns larger than 1000 bytes resulted in error. (Bug #13835)
Characters in the gb2312 and
euckr character sets which did not have
Unicode mappings were truncated. (Bug #15377)
Certain nested LEFT JOIN operations were not properly optimized. (Bug #16393)
GRANT statements specifying schema names
that included underscore characters (i.e.
my_schema) did not match if the underscore
was escaped in the GRANT statement (i.e.
GRANT ALL ON `my\_schema` ...). (Bug
#14834)
Running out of diskspace in the location specified by the
tmpdir option resulted in incorrect error
message. (Bug #14634)
Test suite sp test left behind tables when
the test failed that could cause future tests to fail. (Bug
#15866)
UPDATE statement crashed multi-byte
character set FULLTEXT index if update
value was almost identical to initial value only differing in
some spaces being changed to . (Bug #16489)
A SELECT query which contained a
GROUP_CONCAT() and an ORDER
BY clause against the
INFORMATION_SCHEMA resulted in an empty
result set. (Bug #15307)
The --replicate-do and
--replicate-ignore options were not being
enforced on multiple-table statements. (Bug #15699, Bug
#16487)
A prepared statement created from a SELECT ...
LIKE query (such as PREPARE stmt1 FROM
'SELECT col_1 FROM tedd_test WHERE col_1 LIKE ?';)
would begin to produce erratic results after being executed
repeatedly numerous (thousands) of times. (Bug #12734)
The server would crash when the size of an
ARCHIVE table grew beyond 2GB. (Bug #15787)
Created a user function with an empty string (that is,
CREATE FUNCTION ''()), was accepted by the
server. Following this, calling SHOW FUNCTION
STATUS would cause the server to crash. (Bug #15658)
In some cases the query optimizer did not properly perform multiple joins where inner joins followed left joins, resulting in corrupted result sets. (Bug #15633)
The absence of a table in the left part of a left or right join was not checked prior to name resolution, which resulted in a server crash. (Bug #15538)
NDBCluster: A bitfield whose offset and
length totaled 32 would crash the cluster. (Bug #16125)
NDBCluster: Upon the completion of a scan
where a key request remained outstanding on the primary
replica and a starting node died, the scan did not terminate.
This caused incompleted error handling of the failed node.
(Bug #15908)
NDBCluster: The
ndb_autodiscover test failed sporadically
due to a node not being permitted to connect to the cluster.
(Bug #15619)
NDBCluster: When running more than one
management process in a cluster:
ndb_mgm -c
host:port
-e "node_id stop"
would stop a management process running only on the same
system on which the command was issued.
ndb_mgm -e "shutdown" failed to shut down any management processes at all.
The contents of fill_help_tables.sql
could not be loaded in strict SQL mode. (Bug #15760)
fill_help_tables.sql was not included in
binary distributions for several platforms. (Bug #15759)
An INSERT ... SELECT statement between
tables in a MERGE set can return errors
when statement involves insert into child table from merge
table or vice-versa. (Bug #5390)
Certain permission management statements could create a
NULL hostname for a user, resulting in a
server crash. (Bug #15598)
A COMMIT statement followed by a
ALTER TABLE statement on a BDB table caused
server crash. (Bug #14212)
A DELETE statement involving a
LEFT JOIN and an IS NULL
test on the right-hand table of the join crashed the server
when the innodb_locks_unsafe_for_binlog
option was enabled. (Bug #15650)
Performing an ORDER BY on an indexed
ENUM column returned error. (Bug #15308)
The NOT FOUND condition handler for stored
procedures did not distinguish between a NOT
FOUND condition and an exception or warning. (Bug
#15231)
A stored procedure with an undefined variable and an exception handler would hang the client when called. (Bug #14498)
Subselect could return wrong results when records cache and grouping was involved. (Bug #15347)
Temporary table aliasing did not work inside stored functions. (Bug #12198)
MIN() and MAX()
operations were not optimized for views. (Bug #16016)
Using an aggregate function as the argument for a HAVING
clause would result in the aggregate function always returning
FALSE. (Bug #14274)
Parallel builds occasionally failed on Solaris. (Bug #16282)
The FORCE INDEX keyword in a query would
prevent an index merge from being used where an index merge
would normally be chosen by the optimizer. (Bug #16166)
The COALESCE() function truncated data in a
TINYTEXT column. (Bug #15581)
InnoDB: Comparison of indexed
VARCHAR CHARACTER SET ucs2 COLLATE ucs2_bin
columns using LIKE could fail. (Bug #14583)
An attempt to open a table that requires a disabled storage engine could cause a server crash. (Bug #15185)
Issuing a DROP USER command could cause
some users to encounter a
error. (Bug #15775)
hostname is not allowed to
connect to this MySQL server
Setting innodb_log_file_size to a value
greater than 4G crashed the server. (Bug #15108)
A SELECT of a stored function that
references the INFORMATION_SCHEMA could
crash the server. (Bug #15533)
Tarball install package was missing a proper
fill_help_tables.sql file. (Bug #15151)
Functionality added or changed:
It is now possible to build the server such that
MyISAM tables can support up to 128 keys
rather than the standard 64. This can be done by configuring
the build using the option
--with-max-indexes=,
where NN≤128 is the maximum
number of indexes to permit per table. (Bug #10932)
The server treats stored routine parameters and local
variables (and stored function return values) according to
standard SQL. Previously, parameters, variables, and return
values were treated as items in expressions and were subject
to automatic (silent) conversion and truncation. Now the data
type is observed. Data type conversion and overflow problems
that occur in assignments result in warnings, or errors in
strict mode. The CHARACTER SET clause for
character data type declarations is used. Parameters,
variables, and return values must be scalars; it is no longer
possible to assign a row value. Also, stored functions execute
using the sql_mode value in force at
function creation time rather than ignoring it. For more
information, see Section 17.2.1, “CREATE PROCEDURE and CREATE FUNCTION Syntax”. (Bug
#8702, Bug #8768, Bug #8769, Bug #9078, Bug #9572, Bug #12903,
Bug #13705, Bug #13808, Bug #13909, Bug #14161, Bug #15148)
Bugs fixed:
API function
mysql_stmt_prepare returned wrong field
length for TEXT columns. (Bug #15613)
The output of mysqldump --triggers did not
contain the DEFINER clause in dumped
trigger definitions. (Bug #15110)
The output of SHOW TRIGGERS contained
extraneous whitespace. (Bug #15103)
Creating a trigger caused a server crash if the table or trigger database was not known because no default database had been selected. (Bug #14863)
SHOW [FULL] COLUMNS and SHOW INDEX
FROM did not function with temporary tables. (Bug
#14271, Bug #14387, Bug #15224)
The INFORMATION_SCHEMA.COLUMNS table did not report the size of BINARY or VARBINARY columns. (Bug #14271)
The server would not compile under Cygwin. (Bug #13640)
DESCRIBE did not function with temporary
tables. (Bug #12770)
Reversing the order of operands in a WHERE
clause testing a simple equality (such as WHERE
t1.col1 = t2.col2) would produce different output
from EXPLAIN. (Bug #15106)
Column aliases were displayed incorrectly in a
SELECT from a view following an update to a
base table of the view. (Bug #14861)
Set functions could not be aggregated in outer subqueries. (Bug #12762)
When a connection using yaSSL was aborted, the server would
continue to try to read the closed socket, and the thread
continued to appear in the output of SHOW
PROCESSLIST. Note that this issue did not affect
secure connection attempts using OpenSSL. (Bug #15772)
InnoDB: Having two tables in a parent-child
relationship enforced by a foreign key where one table used
ROW_FORMAT=COMPACT and the other used
ROW_FORMAT=REDUNDANT could result in a
MySQL server crash. Note that this problem did not exist prior
to MySQL 5.0.3, when the compact row format for
InnoDB was introduced. (Bug #15550)
BDB: A DELETE,
INSERT, or UPDATE of a
BDB table could cause the server to crash
where the query contained a subquery using an index read. (Bug
#15536)
A left join on a column that having a NULL
value could cause the server to crash. (Bug #15268)
A replication slave server could sometimes crash on a
BEFORE UPDATE trigger if the
UPDATE query was not executed in the same
database as the table with the trigger. (Bug #14614)
A race condition when creating temporary files caused a
deadlock on Windows with threads in Opening
tables or Waiting for table
states. (Bug #12071)
InnoDB: If
FOREIGN_KEY_CHECKS was 0,
InnoDB allowed inconsistent foreign keys to
be created. (Bug #13778)
NDB Cluster: Under some circumstances, it
was possible for a restarting node to undergo a forced
shutdown. (Bug #15632)
NDB Cluster: If an abort by the Transaction
Coordinator timed out, the abort condition was incorrectly
handled, causing the transaction record to be released
prematurely. (Bug #15685)
NDB Cluster: The
ndb_read_multi_range.test script failed to
drop a table, causing the test to fail. (Bug #15675) (See also
Bug #15401.)
NDB Cluster: A node which failed during
cluster startup was sometimes not removed from the internal
list of active nodes. (Bug #15587)
Resolution of the argument to the VALUES()
function to a variable inside a stored routine caused a server
crash. The argument must be a table column. (Bug #15441)
Functionality added or changed:
The original Linux RPM packages (5.0.17-0) had an issue with a
zlib dependency that would result in an
error during an install or upgrade. They were replaced by new
binaries, 5.0.17-1. (Bug #15223) Here is a list of the new RPM
binaries:
MySQL-{Max,client,devel,server,shared,ndb*}-5.0.17-1.i386.rpm
MySQL-*-standard-5.0.17-1.rhel3.i386.rpm, MySQL-*-standard-5.0.17-1.rhel3.ia64.rpm, MySQL-*-standard-5.0.17-1.rhel3.x86_64.rpm
MySQL-*-pro-5.0.17-1.rhel3.i386.rpm, MySQL-*-pro-5.0.17-1.rhel3.ia64.rpm, MySQL-*-pro-5.0.17-1.rhel3.x86_64.rpm
MySQL-*-pro-gpl-5.0.17-1.rhel3.i386.rpm, MySQL-*-pro-gpl-5.0.17-1.rhel3.ia64.rpm, MySQL-*-pro-gpl-5.0.17-1.rhel3.x86_64.rpm
The syntax for CREATE TRIGGER now includes
a DEFINER clause for specifying which
access privileges to check at trigger invocation time. See
Section 18.1, “CREATE TRIGGER Syntax”, for more information.
Known issue: If you attempt
to replicate from a master server older than MySQL 5.0.17 to a
slave running MySQL 5.0.17 through 5.0.19, replication of
CREATE TRIGGER statements fails on the
slave with a Definer not fully qualified
error. A workaround is to create triggers on the master using
a version-specific comment embedded in each CREATE
TRIGGER statement:
CREATE /*!50017 DEFINER = 'root'@'localhost' */ TRIGGER ... ;
CREATE TRIGGER statements written this way
will replicate to newer slaves, which pick up the
DEFINER clause from the comment and execute
successfully. (Bug #16266)
Added a DEFINER column to the
INFORMATION_SCHEMA.TRIGGERS table.
Invoking a stored function or trigger creates a new savepoint level. When the function or trigger finishes, the previous savepoint level is restored. (See Bug #13825 for more information.)
Recursion is allowed in stored procedures. Recursive stored functions and triggers still are disallowed. (Bug #10100)
In the latin5_turkish_ci collation, the
order of the characters A WITH CIRCUMFLEX,
I WITH CIRCUMLEX, and U WITH
CIRCUMFLEX was changed. If you have used these
characters in any indexed columns, you should rebuild those
indexes. (Bug #13421)
Support files for compiling with Visual Studio 6 have been removed. (Bug #15094)
Bugs fixed:
RPM packages had an incorrect zlib
dependency. (Bug #15223)
NDB Cluster: REPLACE
failed when attempting to update a primary key value in a
Cluster table. (Bug #14007)
make failed when attempting to build MySQL in different directory than source. (Bug #11827)
Corrected an error-handling problem within stored routines on 64-bit platforms. (Bug #15630)
Slave SQL thread cleanup was not handled properly on Mac OS X when a statement was killed, resulting in a slave crash. (Bug #15623, Bug #15668)
Symbolic links did not function properly on Windows platforms. (Bug #14960, Bug #14310)
mysqld would not start on Windows 9X operating systems including Windows Me. (Bug #15209)
InnoDB: During replication, There was a
failure to record events in the binary log that still occurred
even in the event of a ROLLBACK. For
example, this sequence of commands:
BEGIN; CREATE TEMPORARY TABLE t1 (a INT) ENGINE=INNODB; ROLLBACK; INSERT INTO t1 VALUES (1);
would succeed on the replication master as expected. However,
the INSERT would fail on the slave because
the ROLLBACK would (erroneously) cause the
CREATE TEMPORARY TABLE statement not to be
written to the binlog. (Bug #7947)
A bug in mysql-test/t/mysqltest.test
caused that test to fail. (Bug #15605)
The CREATE test case in
mysql-test-run.pl failed on AIX and SCO.
(Bug #15607)
NDB Cluster: Creating a table with packed
keys failed silently. NDB now supports the
PACK_KEYS option to CREATE
TABLE correctly. (Bug #14514)
NDB Cluster: Using ORDER BY
when
selecting from a table having the primary key on a
primary_key_columnVARCHAR column caused a forced shutdown of
the cluster. (Bug #14828, Bug #15240, Bug #15682, Bug #15517)
NDB Cluster: Under certain circumstances,
when mysqld connects to a cluster
management server, the connection would fail before a node ID
could be allocated. (Bug #15215)
NDB Cluster: There was a small window for a
node failure to occur during a backup without an error being
reported. (Bug #15425)
mysql --help was missing a newline after
the version string when the bundled
readline library was not used. (Bug #15097)
Implicit versus explicit conversion of float to integer (such
as inserting a float value into an integer column versus using
CAST(... AS UNSIGNED before inserting the
value) could produce different results. Implicit and explicit
typecasts now are done the same way, with a value equal to the
nearest integer according to the prevailing rounding mode.
(Bug #12956)
GROUP BY on a view column did not correctly
account for the possibility that the column could contain
NULL values. (Bug #14850)
ANALYZE TABLE did not properly update table
statistics for a MyISAM table with a
FULLTEXT index containing stopwords, so a
subsequent ANALYZE TABLE would not
recognize the table as having already been analyzed. (Bug
#14902)
The maximum value of MAX_ROWS was handled
incorrectly on 64-bit systems. (Bug #14155)
NDB Cluster: A forced cluster shutdown
occurred when the management daemon was restarted with a
changed config.ini file that added an
API/SQL node. (Bug #15512)
Multiple-table update operations were counting updates and not updated rows. As a result, if a row had several updates it was counted several times for the “rows matched” value but updated only once. (Bug #15028)
A statement that produced a warning, when fetched via
mysql_stmt_fetch(), did not produce a
warning count according to
mysql_warning_count(). (Bug #15510)
Manual manipulation of the mysql.proc table
could cause a server crash. This should not happen, but it is
also not supported that the server will notice such changes.
(Bug #14233)
Revised table locking to allow proper assessment of view security. (Bug #11555)
Within a stored procedure, inserting with INSERT ...
SELECT into a table with an
AUTO_INCREMENT column did not generate the
correct sequence number. (Bug #14304)
SELECT queries that began with an opening
parenthesis were not being placed in the query cache. (Bug
#14652)
Space truncation was being ignored when inserting into
BINARY or VARBINARY
columns. Now space truncation results in a warning, or an
error in strict mode. (Bug #14299)
The database-changing code for stored routine handling caused an error-handling problem resulting in a server crash. (Bug #15392)
Selecting from a view processed with the temptable algorithm caused a server crash if the query cache was enabled. (Bug #15119)
REPAIR TABLES, BACKUP
TABLES, RESTORE TABLES within a
stored procedure caused a server crash. (Bug #13012)
Creating a view that referenced a stored function that selected from a view caused a crash upon selection from the view. (Bug #15096)
ALTER TABLE ... SET DEFAULT had no effect.
(Bug #14693)
Creating a view within a stored procedure could result in an out of memory error or a server crash. (Bug #14885)
InnoDB: A race condition allowed two
threads to drop a hash index simultaneously. (Bug #14747)
mysqlhotcopy tried to copy
INFORMATION_SCHEMA tables. (Bug #14610)
CHAR(... USING ...) and
CONVERT(CHAR(...) USING ...), though
logically equivalent, could produce different results. (Bug
#14146)
The value of
INFORMATION_SCHEMA.TABLES.TABLE_TYPE
sometimes was reported as empty. (Bug #14476)
InnoDB: Activity on an
InnoDB table caused execution time for
SHOW CREATE TABLE for the table to
increase. (Bug #13762)
DELETE from CSV tables
reported an incorrect rows-affected value. (Bug #13406)
The server crashed if compiled without any transactional storage engines. (Bug #15047)
Declaring a stored routine variable to have a
DEFAULT value that referred to a variable
of the same name caused a server crash. (For example:
DECLARE x INT DEFAULT x) Now the
DEFAULT variable is interpreted as
referring to a variable in an outer scope, if there is one.
(Bug #14376)
Perform character set conversion of constant values whenever possible without data loss. (Bug #10446)
mysql ignored the
MYSQL_TCP_PORT environment variable. (Bug
#5792)
ROW_COUNT() returned an incorrect result
after EXECUTE of a prepared statement. (Bug
#14956)
A UNION of DECIMAL
columns could produce incorrect results. (Bug #14216)
Queries that select records based on comparisons to a set of column could crash the server if there was one index covering the columns, and a set of other non-covering indexes that taken together cover the columns. (Bug #15204)
When using an aggregate function to select from a table that
has a multiple-column primary key, adding ORDER
BY to the query could produce an incorrect result.
(Bug #14920)
SHOW CREATE TABLE for a view could fail if
the client had locked the view. (Bug #14726)
For binary string data types, mysqldump
--hex-blob produced an illegal output value of
0x rather than ''. (Bug
#13318)
Some comparisons for the IN() operator were
inconsistent with equivalent comparisons for the
= operator. (Bug #12612)
In a stored procedure, continuing (via a condition handler) after a failed variable initialization caused a server crash. (Bug #14643)
Within a stored procedure, exception handling for
UPDATE statements that caused a
duplicate-key error caused a Packets out of
order error for the following statement. (Bug
#13729)
Creating a table containing an ENUM or
SET column from within a stored procedure
or prepared statement caused a server crash later when
executing the procedure or statement. (Bug #14410)
Selecting from a view used filesort
retrieval when faster retrieval was possible. (Bug #14816)
Warnings from a previous command were not being reset when fetching from a cursor. (Bug #13524)
RESET MASTER failed to delete log files on
Windows. (Bug #13377)
Using ORDER BY on a column from a view,
when also selecting the column normally, and via an alias,
caused a mistaken Column 'x' in order clause is
ambiguous error. (Bug #14662)
Invoking a stored procedure within another stored procedure caused the server to crash. (Bug #13549)
Stored functions making use of cursors were not replicated. (Bug #)
CAST() did not pad
with 0x00 to a length of expr AS
BINARY(N)N bytes.
(Bug #14255)
Casting a FLOAT or
DOUBLE whose value was less than
1.0E-06 to DECIMAL would
yield an inappropriate value. (Bug #14268)
In some cases, a left outer join could yield an invalid result
or cause the server to crash, due to a
MYSQL_DATA_TRUNCATED error. (Bug #13488)
For a invalid view definition, selecting from the
INFORMATION_SCHEMA.VIEWS table or using
SHOW CREATE VIEW failed, making it
difficult to determine what part of the definition was
invalid. Now the server returns the definition and issues a
warning. (Bug #13818)
The server could misinterpret old trigger definition files created before MySQL 5.0.17. Now they are interpreted correctly, but this takes more time and the server issues a warning that the trigger should be re-created. (Bug #14090)
mysqldump --triggers did not account for
the SQL mode and could dump trigger definitions with missing
whitespace if the IGNORE_SPACE mode was
enabled. (Bug #14554)
Within a trigger definition the
CURRENT_USER() function evaluated to the
user whose actions caused the trigger to be activated. Now
that triggers have a DEFINER value,
CURRENT_USER() evaluates to the trigger
definer. (Bug #5861)
CREATE TABLE could crash the server and write
invalid data into the tbl_name
(...) SELECT ....frm file if the
CREATE TABLE and SELECT
both contained a column with the same name. Also, if a default
value is specified in the column definition, it is now
actually used. (Bug #14480)
A newline character in a column alias in a view definition caused an error when selecting from the view later. (Bug #13622)
mysql_fix_privilege_tables.sql contained
an erroneous comment that resulted in an error when the file
contents were processed. (Bug #14469)
On Windows, the server could crash during shutdown if both replication threads and normal client connection threads were active. (Re-fix of Bug #11796)
The grammar for supporting the DEFINER =
CURRENT_USER clause in CREATE
VIEW and ALTER VIEW was
incorrect. (Bug #14719)
Queries on ARCHIVE tables that used the
filesort sorting method could result in a
server crash. (Bug #14433)
The mysql_stmt_fetch() C APP function could
return MYSQL_NO_DATA for a SELECT
COUNT(*) FROM statement, which should return 1 row. (Bug #14845)
tbl_name WHERE 1 =
0
A LIMIT-related optimization failed to take
into account that MyISAM table indexes can
be disabled, causing Error 124 when it tried to use such an
index. (Bug #14616)
A server crash resulted from the following sequence of events:
1) With no default database selected, create a stored
procedure with the procedure name explicitly qualified with a
database name (CREATE PROCEDURE
). 2) Create another stored procedure with no
database name qualifier. 3) Execute db_name.proc_name
...SHOW PROCEDURE
STATUS. (Bug #14569)
Complex subqueries could cause improper internal query execution environment initialization and crash the server. (Bug #14342)
For a table that had been opened with HANDLER
OPEN, issuing OPTIMIZE TABLE,
ALTER TABLE, or REPAIR
TABLE caused a server crash. (Bug #14397)
A server crash could occur if a prepared statement invoked a stored procedure that existed when the statement was prepared but had been dropped and re-created prior to statement execution. (Bug #12329)
A server crash could occur if a prepared statement updated a table for which a trigger existed when the statement was prepared but had been dropped prior to statement execution. (Bug #13399)
Statements that implicitly commit a transaction are prohibited in stored functions and triggers. An attempt to create a function or trigger containing such a statement produces an error. (Bug #13627) (The originally reported symptom was that a trigger that dropped another trigger could cause a server crash. That problem was fixed by the patch for Bug #13343.)
Functionality added or changed:
When trying to run the server with yaSSL enabled, MySQL now
tries to open /dev/random automatically
if /dev/urandom is not available. (Bug
#13164)
The read_only system variable no longer
applies to TEMPORARY tables. (Bug #4544)
Due to changes in binary logging, the restrictions on which
stored routine creators can be trusted not to create unsafe
routines have been lifted for stored procedures (but not
stored functions). Consequently, the
log_bin_trust_routine_creators system
variable and the corresponding
--log-bin-trust-routine-creators server
option were renamed to
log_bin_trust_function_creators and
--log-bin-trust-function-creators. For
backward compatibility, the old names are recognized but
result in a warning. See
Section 17.4, “Binary Logging of Stored Routines and Triggers”.
Added the Compression status variable,
which indicates whether the client connection uses compression
in the client/server protocol.
In MySQL 5.0.13, syntax for DEFINER and
SQL SECURITY clauses was added to the
CREATE VIEW and ALTER
VIEW statements, but the clauses had no effect. They
now are enabled. They specify the security context to be used
when checking access privileges at view invocation time. See
Section 19.2, “CREATE VIEW Syntax”, for more information.
The InnoDB, NDB,
BDB, and ARCHIVE storage
engines now support spatial columns. See
Chapter 16, Spatial Extensions.
The CHECK TABLE statement now works for
ARCHIVE tables.
You must now declare a prefix for an index on any column of
any Geometry class, the only exception
being when the column is a POINT. (Bug
#12267)
Added a --hexdump option to
mysqlbinlog that displays a hex dump of the
log in comments. This output can be helpful for replication
debugging.
MySQL 5.0 now supports character set conversion for seven
additional cp950 characters into the
big5 character set:
0xF9D6, 0xF9D7,
0xF9D8, 0xF9D9,
0xF9DA, 0xF9DB, and
0xF9DC.
Note: If you move data
containing these additional characters to an older MySQL
installation which does not support them, you may encounter
errors. (Bug #12476)
When a date column is set NOT NULL and
contains 0000-00-00, it will be updated for
UPDATE statements that contains
in the WHERE clause. (Bug #14186)
columnname IS
NULL
Bugs fixed:
When the DATE_FORMAT() function appeared
in both the SELECT and ORDER
BY clauses of a query but with arguments that differ
by case (i.e. %m and %M), incorrect sorting may have occurred.
(Bug #14016)
For InnoDB tables, using a column prefix
for a utf8 column in a primary key caused
Cannot find record errors when attempting
to locate records. (Bug #14056)
NDB Cluster: A memory leak occurred when
performing ordered index scans using indexes a columns larger
than 32 bytes, which would eventually lead to the forced
shutdown of all mysqld server processes
used with the cluster. (Bug #13078)
InnoDB: Large
innobase_buffer_pool_size and
innobase_log_file_size values were
displayed incorrectly on 64-bit systems. (Bug #12701)
InnoDB: When dropping and adding a
PRIMARY KEY, if a loose index scan using
only the second part of multiple-part index was chosen,
incorrect keys were created and an endless loop resulted. (Bug
#13293)
NDB Cluster: Repeated transactions using
unique index lookups could cause a memory leak leading to
error 288, Out of index operations in transaction
coordinator. (Bug #14199)
Selecting from a table in both an outer query and a subquery could cause a server crash. (Bug #14482)
SHOW CREATE TABLE did not display the
CONNECTION string for
FEDERATED tables. (Bug #13724)
For some stored functions dumped by mysqldump --routines, the function definition could not be reloaded later due to a parsing error. (Bug #14723)
For a MyISAM table originally created in
MySQL 4.1, INSERT DELAYED could cause a
server crash. (Bug #13707)
The --exit-info=65536 option conflicted with
--temp-pool and caused problems with the
server's use of temporary files. Now
--temp-pool is ignored if
--exit-info=65536 is specified. (Bug #9551)
ORDER BY DESC within the
GROUP_CONCAT() function was not honored
when used in a view. (Bug #14466)
A comparison with an invalid date (such as WHERE
) caused any index on
col_name >
'2005-09-31'col_name not to be used and a
string comparison for each row, resulting in slow performance.
(Bug #14093)
Within stored routines, REPLACE() could
return an empty string (rather than the original string) when
no replacement was done, and IFNULL() could
return garbage results. (Bug #13941)
Inserts of too-large DECIMAL values were
handled inconsistently (sometimes set to the maximum
DECIMAL value, sometimes set to 0). (Bug
#13573)
Executing REPAIR TABLE, ANALYZE
TABLE, or OPTIMIZE TABLE on a
view for which an underlying table had been dropped caused a
server crash. (Bug #14540)
A prepared statement that selected from a view processed using the merge algorithm could crash on the second execution. (Bug #14026)
Deletes from a CSV table could cause table
corruption. (Bug #14672)
An update of a CSV table could cause a
server crash. (Bug #13894)
For queries with nested outer joins, the optimizer could choose join orders that query execution could not handle. The fix is that now the optimizer avoids choosing such join orders. (Bug #13126)
Starting mysqld with the
--skip-innodb and
--default-storage-engine=innodb (or
--default-table-type=innodb caused a server
crash. (Bug #9815, re-fix of bug from 5.0.5)
mysqlmanager did not start up correctly on Windows 2003. (Bug #14537)
The parser did not correctly recognize wildcards in the host
part of the DEFINER user in CREATE
VIEW statements. (Bug #14256)
Memory corruption and a server crash could be caused by
statements that used a cursor and generated a result set
larger than max_heap_table_size. (Bug
#14210)
mysqld_safe did not correctly start the
-max version of the server (if it was
present) if the --ledir option was given.
(Bug #13774)
The mysql parser did not properly strip the
delimiter from input lines less than nine characters long. For
example, this could cause USE abc; to
result in an Unknown database: abc; error.
(Bug #14358)
Statements of the form CREATE TABLE ... SELECT
... that created a column with a multi-byte
character set could incorrectly calculate the maximum length
of the column, resulting in a Specified key was too
long error. (Bug #14139)
Some updatable views could not be updated. (Bug #14027)
Running OPTIMIZE TABLE and other
data-updating statements concurrently on an
InnoDB table could cause a crash or the
following warnings in the error log: Warning: Found
locks from different threads in write: enter
write_lock, Warning: Found locks from
different threads in write: start of release lock.
(Bug #11704)
Indexes for BDB tables were being limited
incorrectly to 255 bytes. (Bug #14381)
Use of in the
col_name =
VALUES(col_name)ON DUPLICATE KEY UPDATE clause of an
INSERT statement failed with an
Column ' error. (Bug #13392)
col_name' in field
list is ambiguous
On Windows, the server was not ignoring hidden or system directories that Windows may have created in the data directory, and would treat them as available databases. (Bug #4375)
mysqldump could not dump views if the
-x option was given. (Bug #12838)
mysqlimport now issues a SET
@@character_set_database = binary statement before
loading data so that a file containing mixed character sets
(columns with different character sets) can be loaded
properly. (Bug #12123)
Use of the deprecated --sql-bin-update-same
option caused a server crash. (Bug #12974)
Maximum values were handled incorrectly for command-line
options of type GET_LL. (Bug #12925)
For a user that has the SELECT privilege on
a view, the server erroneously was also requiring the user to
have the EXECUTE privilege at view
execution time for stored functions used in the view
definition. (Bug #9505)
Use of WITH ROLLUP PROCEDURE ANALYSE()
could hang the server. (Bug #14138)
TIMEDIFF(), ADDTIME(),
and STR_TO_DATE() were not reporting that
they could return NULL, so functions that
invoked them might misinterpret their results. (Bug #14009)
The example configuration files supplied with MySQL
distributions listed the thread_cache_size
variable as thread_cache. (Bug #13811)
Using ALTER TABLE to add an index could
fail if the operation ran out of temporary file space. Now it
automatically makes a second attempt that uses a slower method
but no temporary file. In this case, problems that occurred
during the first attempt can be displayed with SHOW
WARNINGS. (Bug #12166)
The input polling loop for Instance Manager did not sleep properly. Instance Manager used up too much CPU as a result. (Bug #14388)
Trying to take the logarithm of a negative value is now
handled in the same fashion as division by zero. That is, it
produces a warning when
ERROR_FOR_DIVISION_BY_ZERO is set, and an
error in strict mode. (Bug #13820)
LOAD DATA INFILE would not accept the same
character for both the ESCAPED BY and the
ENCLOSED BY clauses. (Bug #11203)
The value of Last_query_cost was not
updated for queries served from the query cache. (Bug #10303)
TIMESTAMPDIFF() returned an incorrect
result if one argument but not the other was a leap year and a
date was from March or later. (Bug #13534)
The server incorrectly accepted column definitions of the form
DECIMAL(0, for
D)D less than 11. (Bug #13667)
The displayed value for the
CHARACTER_MAXIMUM_LENGTH column in the
INFORMATION_SCHEMA.COLUMNS table was not
adjusted for multi-byte character sets. (Bug #14290)
A bugfix in MySQL 5.0.15 caused the displayed values for the
CHARACTER_MAXIMUM_LENGTH and
CHARACTER_OCTET_LENGTH columns in the
INFORMATION_SCHEMA.COLUMNS table to be
reversed. (Bug #14207)
On Windows, the value of character_sets_dir
in SHOW VARIABLES output was displayed
inconsistently (using both ‘/’
and ‘\’ as pathname component
separators). (Bug #14137)
Subqueries in the FROM clause failed if the
current database was INFORMATION_SCHEMA.
(Bug #14089)
Corrected a parser precedence problem that resulted in an
Unknown column ... in 'on clause' error for
some joins. (Bug #13832)
For LIKE ... ESCAPE, an escape sequence
longer than one character was accepted as valid. Now the
sequence must be empty or one character long. If the
NO_BACKSLASH_ESCAPES SQL mode is enabled,
the sequence must be one character long. (Bug #12595)
SELECT DISTINCT
CHAR( returned
incorrect results after col_name)SET NAMES utf8.
(Bug #13233)
A prepared statement failed with Illegal mix of
collations if the client character set was
utf8 and the statement used a table that
had a character set of latin1. (Bug #12371)
Inserting a new row into an InnoDB table
could cause DATETIME values already stored
in the table to change. (Bug #13900)
The default value of query_prealloc_size
was set to 8192, lower than its minimum of 16384. The minimum
has been lowered to 8192. (Bug #13334)
The server did not take character set into account in checking
the width of the mysql.user.Password
column. As a result, it could incorrectly generate long
password hashes even if the column was not long enough to hold
them. (Bug #13064)
Inserting cp932 strings into a
VARCHAR column caused a server crash rather
than string truncation if the string was longer than the
column definition. (Bug #12547)
Two threads that were creating triggers on an
InnoDB table at the same time could
deadlock. (Bug #12739)
mysqladmin and mysqldump would hang on SCO OpenServer. (Bug #13238)
Where one stored procedure called another stored procedure: If
the second stored procedure generated an exception, the
exception was not caught by the calling stored procedure. For
example, if stored procedure A used an
EXIT statement to handle an exception,
subsequent statements in A would be
executed regardless when A was called by
another stored procedure B, even if an
exception that should have been handled by the
EXIT was generated in A.
(Bug #7049)
Trying to create a stored routine with no database selected would crash the server. (Bug #13514, Bug #13587)
Specifying --default-character-set=cp-932 for
mysqld would cause SQL scripts containing
comments written using that character set to fail with a
syntax error. (Bug #13487)
Trying to compile the server using the
--without-geometry option caused the build to
fail. (Bug #12991)
Functionality added or changed:
Warning: Incompatible change.
For BINARY columns, the pad value and how
it is handled has changed. The pad value for inserts now is
0x00 rather than space, and there is no
stripping of the pad value for selects. For details, see
Section 11.4.2, “The BINARY and VARBINARY Types”.
Warning: Incompatible change.
The CHAR() function now returns a binary
string rather than a string in the connection character set.
An optional USING
clause may be
used to produce a result in a specific character set instead.
Also, arguments larger than 256 produce multiple characters.
They are no longer interpreted modulo 256 to produce a single
character each. These changes may cause some
incompatibilities, as noted in
Section 2.10.2, “Upgrading from MySQL 4.1 to 5.0”.
charset
NDB Cluster: The perror
utility included with the MySQL-Server RPM
now provides support for the --ndb option,
and so can be used to obtain error message text for MySQL
Cluster error codes. (Bug #13740)
NDB Cluster: The ndb_mgm
client now reports node startup phases automatically. (Bug
#16197)
When executing single-table UPDATE or
DELETE queries containing an ORDER
BY ... LIMIT clause,
but not having any NWHERE clause, MySQL can
now take advantage of an index to read the first
N rows in the ordering specified in
the query. If an index is used, only the first
N records will be read, as opposed
to scanning the entire table. (Bug #12915)
The MySQL-server RPM now explicitly assigns
the mysql system user to the
mysql user group during the
postinstallation process. This corrects an issue with
upgrading the server on some Linux distributions whereby a
previously existing mysql user was not
changed to the mysql group, resulting in
wrong groups for files created following the installation.
(Bug #12823)
Added the --tz-utc option to
mysqldump. This option adds SET
TIME_ZONE='+00:00' to the dump file so that
TIMESTAMP columns can be dumped and
reloaded between servers in different time zones and protected
from changes due to daylight saving time. (Bug #13052)
When declaring a local variable (or parameter) named
password or name, and
setting it with SET (for example,
SET password = ''), the new error message
ERROR 42000: Variable 'nnn' must be quoted with
`...`, or renamed is returned (where 'nnn' is
'password' or 'names'). This means there is a syntax conflict
with special sentences like SET PASSWORD =
PASSWORD(...) (for setting a user's password) and
set names default (for setting charset and
collation).
This must be resolved either by quoting the variable name:
SET `password` = ..., which will set the
local variable `password`, or by renaming
the variable to something else (if setting the user's password
is the desired effect).
The following statements now cause an implicit
COMMIT:
CREATE VIEW
ALTER VIEW
DROP VIEW
CREATE TRIGGER
DROP TRIGGER
CREATE USER
RENAME USER
DROP USER
NDBCluster: A number of new or improved
error messages have been implemented in this release in order
to provide better and more accurate diagnostic information
regarding cluster configuration issues and problems. (Bug
#11739, Bug #11749, Bug #12044, Bug #12786, Bug #13197)
NDBCluster: A new “smart” node
allocation algorithm means that it is no longer necessary to
use sequential IDs for cluster nodes, and that nodes not
explicitly assigned IDs should now have IDs allocated
automatically in most cases. In practical terms, this means
that it is now possible to assign a set of node IDs such as
1, 2,
4, 5 without an error
being generated due to the missing 3. (Bug
#13009)
Bugs fixed:
Issuing STOP SLAVE after having acquired a
global read lock with FLUSH TABLES WITH READ
LOCK caused a deadlock. Now STOP
SLAVE is generates an error in such circumstances.
(Bug #10942)
An expression in an ORDER BY clause failed
with Unknown column
' if the expression referred to a column
alias. (Bug #11694)
col_name' in 'order
clause'
mysqldump could not dump views. (Bug #14061)
Using an undefined variable in an IF or
SET clause inside a stored routine produced
an incorrect unknown column ... in 'order
clause' error message. (Bug #13037)
Trying to create a view dynamically using a prepared statement within a stored procedure failed with error 1295. (Bug #13095)
mysqldump --triggers did not quote
identifiers properly if the --compatible
option was given, so the dump output could not be reloaded.
(Bug #13146)
Character set conversion was not being done for
FIND_IN_SET(). (Bug #13751)
CAST(1E+300 TO SIGNED INT) produced an
incorrect result on little-endian machines. (Bug #13344)
Corrected a memory-copying problem for big5
values when using icc compiler on Linux
IA-64 systems. (Bug #10836)
On BSD systems, the system crypt() call
could return an error for some salt values. The error was not
handled, resulting in a server crash. (Bug #13619)
Character set file parsing during
mysql_real_connect() read past the end of a
memory buffer. (Bug #6413)
InnoDB: Queries that were executed using an
index_merge union or intersection could
produce incorrect results if the underlying table used the
InnoDB storage engine and had a primary key
containing VARCHAR members. (Bug #13484)
CREATE DEFINER=... VIEW ... caused the
server to crash when run with
--skip-grant-tables. (Bug #13504)
The --interactive-timeout and
--slave-net-timeout options for
mysqld were not being obeyed on Mac OS X
and other BSD-based platforms. (Bug #8731)
Queries of the form (SELECT ...) ORDER BY
... were being treated as a
UNION. This improperly resulted in only
distinct values being returned (because
UNION by default eliminates duplicate
results). Also, references to column aliases in ORDER
BY clauses following parenthesized
SELECT statements were not resolved
properly. (Bug #7672)
If special characters such as '_' ,
'%', or the escape character were included
within the prefix of a column index, LIKE
pattern matching on the indexed column did not return the
correct result. (Bug #13046, Bug #13919)
An UPDATE query using a join would be
executed incorrectly on a replication slave. (Bug #12618)
Server crashed during a SELECT statement,
writing a message like this to the error log:
InnoDB: Error: MySQL is trying to perform a SELECT InnoDB: but it has not locked any tables in ::external_lock()!
NDBCluster: ndb_mgmd
would allow a node to be stopped or restarted while another
node was still starting up, which could crash the cluster. It
should now not be possible to issue a node stop or restart
while a different node is still restarting, and the cluster
management client issues an error if an attempt is made to do
so. (Bug #13461)
NDBCluster: Placing multiple [TCP
DEFAULT] sections in the cluster
config.ini file crashed
ndb_mgmd. (The ndb_mgmd
process now exits gracefully with an appropriate error message
instead.) (Bug #13611)
NDBCluster: Trying to run
ndbd as system root when
connecting to a mysqld process running as
the mysql system user via SHM caused the
ndbd process to crash.
(ndbd should now exit gracefully with an
appropriate error message instead.) (Bug #9249)
Server may over-allocate memory when performing a
FULLTEXT search for stopwords only. (Bug
#13582)
Queries that use indexes in normal SELECT
statements may cause range scans in VIEWs.
(Bug #13327)
When calling a stored procedure with the syntax CALL
and no default schema selected, schema.procedurenameERROR 1046
was displayed after the procedure returned. (Bug #13616)
With --log-slave-updates
Exec_master_log_pos of SQL thread lagged IO
(Bug #13023)
SHOW CREATE TABLE did not display any
FOREIGN KEY clauses if a temporary file
could not be created. Now SHOW CREATE TABLE
displays an error message in an SQL comment if this occurs.
(Bug #13002)
A column in the ON condition of a join that
referenced a table in a nested join could not be resolved if
the nested join was a right join. (Bug #13597)
A qualified reference to a view column in the
HAVING clause could not be resolved. (Bug
#13410)
comp_err did not detect when multiple error messages for a language were given for an error symbol. (Bug #13071)
For XA transaction IDs
(),
uniqueness is supposed to be assessed based on
gtrid.bqual.formatIDgtrid and
bqual. MySQL was also including
formatID in the uniqueness check.
(Bug #13143)
Local (non-XA) and XA transactions are supposed to be mutually exclusive within a given client connection, but this prohibition was not always enforced. (Bug #12935)
mysqlcheck --all-databases
--analyze
--optimize failed because it also
tried to analyze and optimize the
INFORMATION_SCHEMA tables which it can't.
(Bug #13783)
SELECT * INTO OUTFILE ... FROM
INFORMATION_SCHEMA.schemata failed with an
Access denied error. (Bug #13202)
A table or view named Ç (C-cedilla) couldn't be dropped. (Bug #13145)
Tests containing SHOW TABLE STATUS or
INFORMATION_SCHEMA failed on opnsrv6c.
(Bug, #14064, Bug #14065)
Functionality added or changed:
The limit of 255 characters on the input buffer for mysql on Windows has been lifted. The exact limit depends on what the system allows, but can be up to 64K characters. A typical limit is 16K characters. (Bug #12929)
Re-enabled the --delayed-inserts option for
mysqldump, which now checks for each table
dumped whether its storage engine supports
DELAYED inserts. (Bug #7815)
Added the myisam_stats_method, which controls
whether NULL values in indexes are considered
the same or different when collecting statistics for
MyISAM tables. This influences the query
optimizer as described in
Section 7.4.7, “MyISAM Index Statistics Collection”. (Bug #12232)
When an InnoDB foreign key constraint is
violated, the error message now indicates which table, column,
and constraint names are involved. (Bug #3443)
Configure-time checking for the availability of multi-byte
macros and functions in the bundled
readline library. This improves handling of
multi-byte character sets in the mysql
client. (Bug #3982)
The CHAR() function now takes into account
the character set and collation given by the
character_set_connection and
collation_connection system variables. For
an argument n to
CHAR(), the result is
n mod 256 for single-byte character
sets. For multi-byte character sets,
n must be a valid code point in the
character set. Also, the result string from
CHAR() is checked for well-formedness. For
invalid arguments, or a result that is not well-formed, MySQL
generates a warning (or, in strict SQL mode, an error). (Bug
#10504)
RENAME TABLE now works for views as well,
as long as you do not try to rename a view into a different
database. (Bug #5508)
Multiple-table UPDATE and
DELETE statements that do not affect any
rows are now written to the binary log and will replicate.
(Bug #13348, Bug #12844)
Range scans can now be performed for queries on VIEWs such as
column IN (<constants>) and
column BETWEEN ConstantA AND ConstantB.
(Bug #13317)
Bugs fixed:
NDBCluster: A trigger updating the value of
an AUTO_INCREMENT column in a Cluster table
would insert an error code rather than the expected value into
the column. (Bug #13961)
NDBCluster: When performing a delete of a
great many (tens of thousands of) rows at once from a Cluster
table, an improperly dereferenced pointer could cause the
mysqld process to crash. (Bug #9282)
CHECKSUM TABLE locked
InnoDB tables and did not use a consistent
read. (Bug #12669)
The --skip-innodb-doublewrite option disables
use of the InnoDB doublewrite buffer.
However, having this option in effect when creating a new
MySQL installation prevented the buffer from even being
created, resulting in a server crash later. (Bug #13367)
MySQL programs in binary distributions for Solaris 8/9/10 x86 systems would not run on Pentium III machines. (Bug #6772)
When SELECT ... FOR UPDATE or
SELECT ... LOCK IN SHARE MODE for an
InnoDB table were executed from within a
stored function or a trigger, they were converted to a
non-locking consistent read. (Bug #11238)
NDB Cluster: If
ndb_restore could not find a free
mysqld process, it crashed. (Bug #13512)
NDB Cluster: Receipt of several
enter single user mode commands by multiple
ndb_mgmd processes within a short period of
time resulted in cluster shutdown. (Bug #13053)
NDB Cluster: Multiple
ndb_mgmd processes in a cluster would not
know each other's IP addresses. (Bug #12037)
NDB Cluster: With two
mgmd processes in a cluster,
ndb_mgmd output for SHOW
would display the same IP address for both processes, even
when they were on different hosts. (Bug #11595)
NDB Cluster: Queries on
NDB tables that are executed using
index_merge/union or
index_merge/intersection could produce
incorrect results. (Bug #13081)
The --replicate-rewrite-db and
--replicate-do-table options did not work for
statements in which tables were aliased to names other than
those listed by the options. (Bug #11139)
After running configure with the
--with-embedded-privilege-control option, the
embedded server failed to build. (Bug #13501)
Nested handlers within stored procedures didn't work. (Bug #6127)
The optimizer chose a less efficient execution plan for
than for
col_name BETWEEN
const AND
const, even though the
two expressions are logically equivalent. Now the optimizer
can use the col_name =
constref access method for both
expressions. (Bug #13455)
Incorrect creation of DECIMAL local
variables in a stored procedure could cause a server crash.
(Bug #12589)
Queries against a MERGE table that has a
composite index could produce incorrect results. (Bug #9112)
The server was not rejecting
FLOAT(
or
M,D)DOUBLE(
columns specifications when M,D)M was
less than D. (Bug #12694)
After running configure with the
--without-server option, the distribution
failed to build. (Bug #11680, Bug #13550)
Joins nested under NATURAL or
USING joins were sometimes not initialized
properly, causing a server crash. (Bug #13545)
Locking a view with the query cache enabled and
query_cache_wlock_invalidate enabled could
cause a server crash. (Bug #13424)
A HAVING clause that references an
unqualified view column name could crash the server. (Bug
#13411)
Comparisons involving row constructors containing constants could cause a server crash. (Bug #13356)
NDB Cluster: LOAD DATA
INFILE with a large data file failed. (Bug #10694)
NDB Cluster: Adding an index to a table
with a large number of columns (more then 100) crashed the
storage node. (Bug #13316)
Calling the FORMAT() function with a
DECIMAL column value caused a server crash
when the value was NULL. (Bug #13361)
Aggregate functions sometimes incorrectly were allowed in the
WHERE clause of UPDATE
and DELETE statements. (Bug #13180)
It was possible to create a view that executed a stored
function for which you did not have the
EXECUTE privilege. (Bug #12812)
BIT columns and following columns in
NDB tables were corrupt when dumped by
mysqldump. (Bug #13152)
NATURAL joins and joins with
USING against a view could return
NULL rather than the correct value. (Bug
#13127)
Use of a user-defined function within the
HAVING clause of a query resulted in an
Unknown column error. (Bug #11553)
For queries for which the optimizer determined a join type of
“Range checked for each record” (as shown by
EXPLAIN, the query sometimes could cause a
server crash, depending on the data distribution. (Bug #12291)
For queries with DISTINCT and WITH
ROLLUP, the DISTINCT should be
applied after the rollup operation, but was not always. (Bug
#12887)
The server crashed when processing a view that invoked the
CONVERT_TZ() function. (Bug #11416)
Shared-memory connections were not working on Windows. (Bug #12723)
Functionality added or changed:
The syntax for CREATE VIEW and
ALTER VIEW statements now includes
DEFINER and SQL SECURITY
clauses for specifying the security context to be used when
checking access privileges at view invocation time. (The
syntax is present in 5.0.13, but these clauses have no effect
until 5.0.16.) See Section 19.2, “CREATE VIEW Syntax”, for more
information.
The --hex-dump option for
mysqldump now also applies to
BIT columns.
Added a --routines option for
mysqldump that enables dumping of stored
routines. (Bug #9056)
The connection string for FEDERATED tables
now is specified using a CONNECTION table
option rather than a COMMENT table option.
Better detection of connection timeout for replication servers
on Windows allows elimination of extraneous Lost
connection errors in the error log. (Bug #5588)
The counters for the Key_read_requests,
Key_reads,
Key_write_requests, and
Key_writes status variables were changed
from unsigned long to unsigned
longlong to accommodate larger variables without
rollover. (Bug #12920)
The restriction on the use of PREPARE,
EXECUTE, and DEALLOCATE
PREPARE within stored procedures was lifted. The
restriction still applies to stored functions and triggers.
(Bug #10975, Bug #7115, Bug #10605)
A new command line argument was added to mysqld to ignore client character set information sent during handshake, and use server side settings instead, to reproduce 4.0 behavior (Bug #9948):
mysqld --skip-character-set-client-handshake
OPTIMIZE TABLE and
HANDLER now are prohibited in stored
procedures and functions and in triggers. (Bug #12953, Bug
#12995)
InnoDB: The TRUNCATE
TABLE statement for InnoDB tables
always resets the counter for an
AUTO_INCREMENT column now, regardless of
whether there is a foreign key constraint on the table.
(Beginning with 5.0.3, TRUNCATE TABLE reset
the counter, but only if there was no such constraint.) (Bug
#11946)
The LEAST() and
GREATEST() functions used to return
NULL only if all arguments were
NULL. Now they return
NULL if any argument is
NULL, the same as Oracle. (Bug #12791)
Two new collations have been added for Esperanto:
utf8_esperanto_ci and
ucs2_esperanto_ci.
Reorder network startup to come after all other initialization, particularly storage engine startup which can take a long time. This also prevents MySQL from being run on a privileged port (any port under 1024) unless run as the root user. (Bug #11707)
The Windows binary packages are now compiled with the Microsoft Visual Studio 2003 compiler instead of Microsoft Visual C++ 6.0.
The binaries compiled with the Intel icc compiler are now built using icc 9.0 instead of icc 8.1. You will have to install new versions of the Intel icc runtime libraries, which are available from here: ( http://dev.mysql.com/downloads/os-linux.html)
Bugs fixed:
Incompatible change: A lock
wait timeout caused InnoDB to roll back the
entire current transaction. Now it rolls back only the most
recent SQL statement. (Bug #12308)
The FEDERATED storage engine does not
support ALTER TABLE, but no appropriate
error message was issued. (Bug #13108)
mysqldump did not dump triggers properly. (Bug #12597)
NDBCluster: The average row size for
Cluster tables was being calculated incorrectly. This affected
the values shown for the Data_length and
Avg_row_length columns in the output
generated by SHOW TABLE STATUS as well as
the values for the data_length and
data_length/table_rows columns shown in the
TABLES table of the
INFORMATION_SCHEMA database with respect to
Cluster tables (tables using other storage engines were not
affected by this bug). (Bug #9896)
Within a stored procedure, fetching a large number of rows in
a loop using a cursor could result in a server crash or an out
of memory error. Also, values inserted within a stored
procedure using a cursor were interpreted as
latin1 even if character set variables had
been set to a different character set. (Bug #6513, Bug #9819)
For a server compiled with yaSSL, clients that used MySQL Connector/J were not able to establish SSH connections. (Bug #13029)
When used in view definitions,
DAYNAME(,
expr)DAYOFWEEK(,
expr)WEEKDAY(
were incorrectly treated as though the expression was
expr)TO_DAYS( or
expr)TO_DAYS(TO_DAYS(.
(Bug #13000)
expr))
Incorrect implicit nesting of joins caused the parser to fail
on queries of the form SELECT ... FROM t1 JOIN t2
JOIN t3 ON t1.t1col = t3.t3col with an
Unknown column 't1.t1col' in 'on clause'
error. (Bug #12943)
NDB: A cluster shutdown following the crash
of a data node would fail to terminate the remaining node
processes, even though ndb_mgm showed the
shutdown request as having been completed. (Bug #10938, Bug
#9996, Bug #11623)
A column that can be NULL was not handled
properly for WITH ROLLUP in a subquery or
view. (Bug #12885)
Within a transaction, the following statements now cause an
implicit commit: CREATE FUNCTION,
DROP FUNCTION, DROP
PROCEDURE, ALTER FUNCTION,
ALTER PROCEDURE, CREATE
PROCEDURE. This corrects a problem where these
statements followed by ROLLBACK might not
be replicated properly. (Bug #12870)
Simultaneous execution of DML statements and CREATE
TRIGGER or DROP TRIGGER
statements on the same table could cause server crashes or
errors. (Bug #12704)
If a stored function invoked from a SELECT
failed with an error, it could cause the client connection to
be dropped. Now such errors generate warnings instead so as
not to interrupt the SELECT. (Bug #12379)
A concurrency problem for CREATE ... SELECT
could cause a server crash. (Bug #12845)
The server incorrectly generated an Unknown
table error message when for attempts to drop tables
in the INFORMATION_SCHEMA database. Now it
issues an Access denied message. (Bug
#9846)
The server allowed privileges to be granted explicitly for the
INFORMATION_SCHEMA database. Such
privileges are always implicit and should not be grantable.
(Bug #10734)
The server allowed TEMPORARY tables and
stored procedures to be created in the
INFORMATION_SCHEMA database. (Bug #9683,
Bug #10708)
The server failed to disallow SET
AUTOCOMMIT in stored functions and triggers. It is
allowed to change the value of AUTOCOMMIT
in stored procedures, but a runtime error might occur if the
procedure is invoked from a stored function or trigger. (Bug
#12712)
Using an INOUT parameter with a
DECIMAL data type in a stored procedure
caused a server crash. (Bug #12979)
Performing an IS NULL check on the
MIN() or MAX() of an
indexed column in a complex query could produce incorrect
results. (Bug #12695)
The mysql.server script contained
incorrect path for the libexec directory.
(Bug #12550)
The NDB START BACKUP command could be
interrupted by a SHOW command. (Bug #13054)
The LIKE ... ESCAPE syntax produced invalid
results when escape character was larger than one byte. (Bug
#12611)
A client connection thread cleanup problem caused the server to crash when closing the connection if the binary log was enabled. (Bug #12517)
Using AS to rename a column selected from a
view in a subquery made it not possible to refer to that
column in the outer query. (Bug #12993)
The character_set_system system variable
could not be selected with SELECT
@@character_set_system. (Bug #11775)
A view-creation statement of the form CREATE VIEW
failed with a
name AS SELECT ... FROM
tbl_name AS
nameNot unique table/alias:
' error. (Bug #6808)
name'
UNION [DISTINCT] was not removing all
duplicates for multi-byte character values. (Bug #12891)
Multiplying a DECIMAL value within a loop
in a stored routine could incorrectly result in a value of
NULL. (Bug #12938)
mysql and mysqldump were
ignoring the --defaults-extra-file option.
(Bug #12917)
Columns named in the USING() clause of
JOIN ... USING() were incorrectly resolved
in case-sensitive fashion. (Bug #13067)
Local variables in stored routines were not always initialized correctly. (Bug #13133)
SHOW FIELDS FROM
caused error 1046 when no default schema was set. (Bug #12905)
schemaname.viewname
The value of character_set_results could be
set to NULL, but returned the string
"NULL" when retrieved. (Bug #12363)
InnoDB: Limit recursion depth to 200 in
deadlock detection to avoid running out of stack space. (Bug
#12588)
GROUP_CONCAT() ignored an empty string if
it was the first value to occur in the result. (Bug #12863)
Outer join elimination was erroneously applied for some
queries that used a NOT BETWEEN condition,
an
IN(
condition, or an value_list)IF() condition. (Bug
#12101, Bug #12102)
SHOW FIELDS truncated the
TYPE column to 40 characters. (Bug #7142)
Use of PREPARE and
EXECUTE with a statement that selected from
a view in a subquery could cause a server crash. (Bug #12651)
On HP-UX 11.x (PA-RISC), the -L option caused
mysqlimport to crash. (Bug #12958)
If the binary log is enabled, execution of a stored procedure that modifies table data and uses user variables could cause a server crash or incorrect information to be written to the binary log. (Bug #12637)
Queries with subqueries, where the inner subquery uses the
range or index_merge
access method, could return incorrect results. (Bug #12720)
After changing the character set with SET CHARACTER
SET, the result of the
GROUP_CONCAT() function was not converted
to the proper character set. (Bug #12829)
A bug introduced in MySQL 5.0.12 caused SHOW TABLE
STATUS to display an
Auto_increment value of 0 for
InnoDB tables. (Bug #12973)
Foreign keys were not properly enforced in
TEMPORARY tables. Foreign keys now are
disallowed in TEMPORARY tables. (Bug
#12084)
Replication of LOAD DATA INFILE failed
between systems that use different pathname syntax (such as
delimiter characters). (Bug #11815)
Within a stored procedure, a server crash was caused by
assigning to a VARCHAR INOUT parameter the
value of an expression that included the variable itself. (For
example, SET c = c.) (Bug #12849)
SELECT ... JOIN ... ON ... JOIN ... USING
caused a server crash. (Bug #12977)
Using GROUP BY when selecting from a view
in some cases could cause incorrect results to be returned.
(Bug #12922)
myisampack did not properly pack
BLOB values larger than
224 bytes. (Bug #4214)
Incorrect results could be returned from a view processed using a temporary table. (Bug #12941)
The server crashed when one thread resized the query cache while another thread was using it. (Bug #12848)
mysqld_multi now quotes arguments on command lines that it constructs to avoid problems with arguments that contain shell metacharacters. (Bug #11280)
InnoDB: A consistent read could return
inconsistent results due to a bug introduced in MySQL 5.0.5.
(Bug #12947)
Deadlock occurred when several account management statements
were run (particularly between FLUSH
PRIVILEGES/SET PASSWORD and
GRANT/REVOKE
statements). (Bug #12423)
The Windows installer made a change to one of the
mysql.proc table files, causing stored
routine functionality to be compromised. The Windows installer
now never overwrites files in the MySQL data directory. During
an upgrade from one version to another, a file in the data
directory will not be overwritten even if it has not been
modified since it was put there by an older installer.
If you have already lost access to stored routines because of this problem, you can get them back using the following procedure:
Stop the server.
In the mysql\data directory under
your MySQL installation directory, and replace the
proc.frm file with corresponding file
from the version of MySQL that you were using before you
upgraded.
Start the server
Start the mysql command-line client
(use the root account or another
account that has full database privileges) and execute the
mysql_fix_privilege_tables.sql script
that upgrades the grant tables to the current structure.
Instructions for doing this are given in
Section 5.6.1, “mysql_fix_privilege_tables — Upgrade MySQL System Tables”.
After this, all stored routine functionality should work. (Bug #12820)
On Windows, the server was preventing tables from being
created if the table name was a prefix of a forbidden name.
For example, nul is a forbidden name
because it's the same as a Windows device name, but a table
with the name of n or nu
was being forbidden as well. (Bug #12325)
InnoDB was too permissive with
LOCK TABLE ... READ LOCAL and allowed new
inserts into the table. Now READ LOCAL is
equivalent to READ for
InnoDB. This will cause slightly more
locking in mysqldump, but makes
InnoDB table dumps consistent with
MyISAM table dumps. (Bug #12410)
Use of the mysql client
HELP command from within a stored routine
caused a “packets out of order” error and a lost
connection. Now HELP is detected and
disallowed within stored routines. (Bug #12490)
Use of yaSSL for a secure client connection caused
LOAD DATA LOCAL INFILE to fail. (Bug
#11286)
SHOW CREATE PROCEDURE and SHOW
CREATE FUNCTION no longer qualify the routine name
with the database name, for consistency with the behavior of
SHOW CREATE TABLE. (Bug #10362)
A UNION of long utf8
VARCHAR columns was sometimes returned as a
column with a LONGTEXT data type rather
than VARCHAR. This could prevent such
queries from working at all if selected into a
MEMORY table because the
MEMORY storage engine does not support the
TEXT data types. (Bug #12537)
If a client has opened an InnoDB table for
which the .ibd file is missing,
InnoDB would not honor a DROP
TABLE statement for the table. (Bug #12852)
ALTER TABLE ... DISCARD TABLESPACE for
non-InnoDB table caused the client to lose
the connection. (The server was not returning the error
properly.) (Bug #12207)
DO IFNULL(NULL, NULL) and SELECT
CAST(IFNULL(NULL, NULL) AS DECIMAL) caused a server
crash. (Bug #12841)
When using a cursor, a SELECT statement
that uses a GROUP BY clause could return
incorrect results. (Bug #11904)
The SYSDATE() function now returns the time
at which it was invoked. In particular, within a stored
routine or trigger, SYSDATE() returns the
time at which it executes, not the time at which the stored
routine or triggering statement began to execute. (Bug #12480)
CREATE VIEW inside a stored procedure
caused a server crash if the table underlying the view had
been deleted. (Bug #12468)
A memory leak resulting from repeated SELECT ...
INTO statements inside a stored procedure could
cause the server to crash. (Bug #11333)
Functionality added or changed:
Incompatible change:
Beginning with MySQL 5.0.12, natural joins and joins with
USING, including outer join variants, are
processed according to the SQL:2003 standard. The changes
include elimination of redundant output columns for
NATURAL joins and joins specified with a
USING clause and proper ordering of output
columns. (Bug #6136, Bug #6276, Bug #6489, Bug #6495, Bug
#6558, Bug #9067, Bug #9978, Bug #10428, Bug #10646, Bug
#10972.) The precedence of the comma operator also now is
lower compared to JOIN. (Bug #4789, Bug
#12065, Bug #13551.)
These changes make MySQL more compliant with standard SQL.
However, they can result in different output columns for some
joins. Also, some queries that appeared to work correctly
prior to 5.0.12 must be rewritten to comply with the standard.
For details about the scope of the changes and examples that
show what query rewrites are necessary, see
Section 13.2.7.1, “JOIN Syntax”.
Recursive triggers are detected and disallowed. Also, within a stored function or trigger, it is not allowable to modify a table that is already being used (for reading or writing) by the statement that invoked the function or trigger. (Bug #11896, Bug #12644)
SHOW TABLE STATUS for a view now shows
VIEW in uppercase, consistent with
SHOW TABLES and
INFORMATION_SCHEMA. (Bug #5501)
An optimizer estimate of zero rows for a non-empty
InnoDB table used in a left or right join
could cause incomplete rollback for the table. (Bug #12779)
Calls to stored procedures were written to the binary log even within transactions that were rolled back, causing them to be executed on replication slaves. (Bug #12334)
Interleaved execution of stored procedures and functions could be written to the binary log incorrectly, causing replication slaves to get out of sync. (Bug #12335)
A query of the form SHOW TABLE STATUS FROM
would
crash the server. (Bug #12636)
db_name WHERE name IN
(select_query)
Users created using an IP address or other alias rather than a
hostname listed in /etc/hosts could not
set their own passwords. (Bug #12302)
Using DESCRIBE on a view after renaming a
column in one of the view's base tables caused the server to
crash. (Bug #12533)
SHOW OPEN TABLES now supports
FROM and LIKE clauses.
(Bug #12183)
SHOW TABLE STATUS FROM INFORMATION_SCHEMA
now sorts output by table name the same as it does for other
databases. (Bug #12315)
SHOW ENGINE INNODB STATUS now can display
longer query strings. (Bug #7819)
Added the SLEEP() function, which pauses
for the number of seconds given by its argument. (Bug #6760)
Trying to drop the default keycache by setting
@@global.key_buffer_size to zero now
returns a warning that the default keycache cannot be dropped.
(Bug #10473)
The stability of cursors when used with
InnoDB tables was greatly improved. (Bug
#11832, Bug #12243, Bug #11309)
It is no longer possible to issue FLUSH
commands from within stored functions or triggers. See
Section I.1, “Restrictions on Stored Routines and Triggers”, for details. (Bug
#12280, Bug #12307)
INFORMATION_SCHEMA objects are now reported
as a SYSTEM VIEW table type. (Bug #11711)
Bugs fixed:
CHECKSUM TABLE command returned incorrect
results for tables with deleted rows. After upgrading, users
who used stored checksum information to detect table changes
should rebuild their checksum data. (Bug #12296)
A data type of CHAR BINARY was not
recognized as valid for stored routine parameters. (Bug #9048)
SET GLOBAL TRANSACTION ISOLATION LEVEL was
not working. (Bug #11207)
NDB Cluster: Corrected the parsing of the
CLUSTERLOG command by
ndb_mgm to allow multiple items. (Bug
#12833)
NDB Cluster: Improved error messages
related to filesystem issues. (Bug #11218)
NDB Cluster: When a schema was detected to
be corrupt, ndb neglected to close it,
resulting in a “file already open” error if the
schema was opened again later. written. (Bug #12027)
NDB Cluster: When it could not copy a
fragment, ndbd exited without printing a
message about the condition to the error log. Now the message
is written. (Bug #12900)
NDB Cluster: When a disk full condition
occurred, ndbd exited without printing a
message about the condition to the error log. Now the message
is written. (Bug #12716)
mysql_fix_privilege_tables.sql was
missing a comma, causing a syntax error when executed. (Bug
#12705)
STRCMP() was not handled correctly in
views. (Bug #12489)
NDB Cluster: Bad values in
config.ini caused
ndb_mdmd to crash. (Bug #12043)
TRUNCATE TABLE did not work with
TEMPORARY InnoDB tables.
(Bug #11816)
Built-in commands for the mysql client,
such as delimiter and \d
are now always parsed within files that are read using the
\. and source commands.
(Bug #11523)
ALTER TABLE did not move the
table to default database unless the new name was qualified
with the database name. (Bug #11493)
db_name.t
RENAME t
It was not possible to create a stored function with a spatial return value data type. (Bug #10499)
The only valid values for the PACK_KEYS
table option are 0 and 1, but other values were being
accepted. (Bug #10056)
If a DROP DATABASE fails on a master server
due to the presence of a non-database file in the database
directory, the master have the database tables deleted, but
not the slaves. To deal with failed database drops, we now
write DROP TABLE statements to the binary
log for the tables so that they are dropped on slaves. (Bug
#4680)
Improper use of loose index scan in InnoDB
sometimes caused incorrect query results. (Bug #12672)
DELETE or UPDATE for an
indexed MyISAM table could fail. This was
due to a change in end-space comparison behavior from 4.0 to
4.1. (Bug #12565)
Joins on VARCHAR columns of different
lengths could produce incorrect results. (Bug #11398)
A “Duplicate column name” error no longer occurs
when selecting from a view defined as SELECT
* from a join that uses a USING
clause on tables that have a common column name. (Bug #6558)
Invocations of the SLEEP() function
incorrectly could get optimized away for statements in which
it occurs. Statements containing SLEEP()
incorrectly could be stored in the query cache. (Bug #12689)
NDB Cluster: An ALTER
TABLE command caused loss of data stored prior to
the issuing of the command. (Bug #12118)
Query cache is switched off if a thread (connection) has tables locked. This prevents invalid results where the locking thread inserts values between a second thread connecting and selecting from the table. (Bug #12385)
NOW(), CURRENT_TIME and
values generated by timestamp columns are now constant for the
duration of a stored function or trigger. This prevents the
breaking of statements-based replication. (Bug #12480, Bug
#12481)
Some statements executed on a master server caused the SQL thread on a slave to run out of memory. (Bug #12532)
A SELECT DISTINCT query with a constant
value for one of the columns would return only a single row.
(Bug #12625)
NDB Cluster: Cluster failed to take
character set data into account when recomputing hashes (and
thus could not locate records for updating or deletion)
following a configuration change and node restart. (Bug
#12220)
NDB Cluster: Wrong error message displayed
when cluster management server closed port while
mysqld was connecting. (Bug #10950)
A view was allowed to depend on a function that referred to a temporary table. (Bug #10970)
Prepared statement parameters could cause errors in the binary
log if the character set was cp932. (Bug
#11338)
The CREATE_OPTIONS column of
INFORMATION_SCHEMA.TABLES showed incorrect
options for tables in INFORMATION_SCHEMA.
(Bug #12397)
MEMORY tables using
B-Tree index on 64-bit platforms could
produce false table is full errors. (Bug #12460)
Issuing FLUSH INSTANCES followed by
STOP INSTANCE caused instance manager to
crash. (Bug #10957)
Duplicate instructions in stored procedures resulted in incorrect execution when the optimizer optimized the duplicate code away. (Bug #12168)
SHOW TABLES FROM returned wrong error
message if the schema specified did not exist. (Bug #12591)
The ROW() function returned an incorrect
result when comparison involved NULL
values. (Bug #12509)
Views with multiple UNION and
UNION ALL produced incorrect results. (Bug
#10624)
Stored procedures with particularly long loops could crash server due to memory leak. (Bug #12297, Bug #11247)
Trigger and stored procedure execution could break replication. (Bug #12482)
A server crash could result from an update of a view defined as a join, even though the update updated only a single table. (Bug #12569)
On Windows when the
--innodb_buffer_pool_awe_mem_mb option has
been given, the server detects whether AWE support is
available and has been compiled into the server, and displays
an appropriate error message if not. (Bug #6581)
The NUMERIC_SCALE column of the
INFORMATION_SCHEMA.COLUMNS table should be
returned as 0 for integer columns. It was
being returned as NULL. (Bug #12301)
The COLUMN_DEFAULT column of the
INFORMATION_SCHEMA.COLUMNS table should be
returned as NULL if a column has no default
value. An empty string was being returned if the column was
defined as NOT NULL. (Bug #12518)
Slave I/O threads were considered to be in the running state
when launched (rather than after successfully connecting to
the master server), resulting in incorrect SHOW SLAVE
STATUS output. (Bug #10780)
Column names in subqueries must be unique, but were not being checked for uniqueness. (Bug #11864)
On Windows, the server could crash during shutdown if both replication threads and normal client connection threads were active. (Bug #11796)
Some subqueries of the form SELECT ... WHERE ROW(...)
IN ( were being
handled incorrectly. (Bug #11867)
subquery)
Selecting from a view after INSERT
statements for the view's underlying table yielded different
results than subsequent selects. (Bug #12382)
The mysql_info() C API function could
return incorrect data when executed as part of a
multi-statement that included a mix of statements that do and
do not return information. (Bug #11688)
When restoring INFORMATION_SCHEMA as the
default database after failing to execute a stored procedure
in an inaccessible database, the server returned a spurious
ERROR 42000: Unknown database
'information_schema' message. (Bug #12318)
Renamed the rest() macro in
my_list.h to
list_rest() to avoid name clashes with user
code. (Bug #12327)
DATE_ADD() and
DATE_SUB() were converting invalid dates to
NULL in TRADITIONAL SQL
mode rather than rejecting them with an error. (Bug #10627)
A trigger that included a SELECT statement
could cause a server crash. (Bug #11587)
An incorrect conversion from double to
ulonglong caused indexes not to be used for
BDB tables on HP-UX. (Bug #10802)
myisampack failed to delete
.TMD temporary files when run with
-T option. (Bug #12235)
Added portability check for Intel compiler to address a
problem compiling InnoDB code. (Bug #11510)
XA allowed two active transactions to be
started with the same XID. (Bug #12162)
Concatenating USER() or
DATEBASE() with a column produced invalid
results. (Bug #12351)
Creating a view that included the
TIMESTAMPDIFF() function resulted in a
invalid view. (Bug #12298)
Comparison of InnoDB multi-part primary
keys that include VARCHAR columns can
result in incorrect results. (Bug #12340)
For PKG installs on Mac OS X, the preinstallation and postinstallation scripts were being run only for new installations and not for upgrade installations, resulting in an incomplete installation process. (Bug #11380)
Using cursors and nested queries for the same table, corrupted results were returned for the outer query. (Bug #11909)
User variables were not automatically cast for comparisons, causing queries to fail if the column and connection character sets differed. Now when mixing strings with different character sets but the same coercibility, allow conversion if one character set is a superset of the other. (Bug #10892)
Selecting from a view defined as a join over many tables could
result in a server crash due to miscalculation of the number
of conditions in the WHERE clause. (Bug
#12470)
Pathame values for options such as ---basedir
or --datadir didn't work on Japanese Windows
machines for directory names containing multi-byte characters
having a second byte of 0x5C
(‘\’). (Bug #5439)
A race condition between server threads could cause a crash if one thread deleted a stored routine while another thread was executing a stored routine. (Bug #12228)
Mishandling of comparison for rows containing
NULL values against rows produced by an
IN subquery could cause a server crash.
(Bug #12392)
Inserting NULL into a
GEOMETRY column for a table that has a
trigger could result in a server crash if the table was
subsequently dropped. (Bug #12281)
A failure to obtain a lock for an IN SHARE
MODE query could result in a server crash. (Bug
#12082)
SELECT ... INTO
within a trigger
could cause a server crash. (Bug #11973)
var_name
INSERT ... SELECT ... ON DUPLICATE KEY
UPDATE could fail with an erroneous “Column
'col_name' specified twice”
error. (Bug #10109)
SHOW TABLE STATUS sometimes reported a
Row_format value of
Dynamic for MEMORY
tables, though such tables always have a format of
Fixed. (Bug #3094)
A query using a LEFT JOIN, an
IN subquery on the outer table, and an
ORDER BY clause, caused the server to crash
when cursors were enabled. (Bug #11901)
Using a stored procedure that referenced tables in the
INFORMATION_SCHEMA database would return an
empty result set. (Bug #10055, Bug #12278)
Columns defined as TINYINT(1) were
redefined as TINYINT(4) when incorporated
into a VIEW. (Bug #11335)
ISO-8601 formatted dates were not being
parsed correctly. (Bug #7308)
FLUSH TABLES WITH READ LOCK combined with
LOCK TABLE .. WRITE caused deadlock. (Bug
#9459)
NULL column definitions read incorrectly
for inner tables of nested outer joins. (Bug #12154)
GROUP_CONCAT ignores the
DISTINCT modifier when used in a query
joining multiple tables where one of the tables has a single
row. (Bug #12095)
UNION query with
FULLTEXT could cause server crash. (Bug
#11869)
Functionality added or changed:
Security improvement: Applied a patch that addresses a
potential zlib data vulnerability that
could result in an application crash.
(CAN-2005-1849)
This only affects the binaries for platforms that are linked
statically against the bundled zlib (most notably Microsoft
Windows and HP-UX).
SHOW CHARACTER SET and
INFORMATION_SCHEMA now properly report the
Latin1 character set as
cp1252. (Bug #11216)
mysqldump now dumps triggers for each
dumped table. This can be suppressed with the
--skip-triggers option. (Bug #10431)
Added new ER_STACK_OVERRUN_NEED_MORE error
message to indicate that, while the stack is not completely
full, more stack space is required. (Bug #11213)
NDB: Improved handling of the configuration
variables NoOfPagesToDiskDuringRestartACC,
NoOfPagesToDiskAfterRestartACC,
NoOfPagesToDiskDuringRestartTUP, and
NoOfPagesToDiskAfterRestartTUP should
result in noticeably faster startup times for MySQL Cluster.
(Bug #12149)
Added support of where clause for queries with FROM
DUAL. (Bug #11745)
Added an optimization that avoids key access with
NULL keys for the ref
method when used in outer joins. (Bug #12144)
Maximum size of stored procedures increased from 64k to 4Gb. (Bug #11602)
Added error message for users who attempt CREATE
TABLE ... LIKE and specify a non-table in the
LIKE clause. (Bug #6859)
Bugs fixed:
DDL statements now are allowed in stored procedures if the
procedure is not invoked from a stored function or a trigger.
Also fixed problems where a TEMPORARY
statement created by one stored routine was inaccessible to
another routine invoked during the same connection. (Bug
#11126)
Creation of the mysql group account failed
during the RPM installation. (Bug #12348)
big5 strings were not being stored in
FULLTEXT index. (Bug #12075)
When DROP DATABASE was called concurrently
with a DROP TABLE of any table the MySQL
Server crashed. (Bug #12212)
max_connections_per_hour setting was being
capped by unrelated max_user_connections
setting. (Bug #9947)
SELECT @@local... returned
@@session... in the column header. (Bug
#10724)
Multiplying ABS() output by a negative
number would return incorrect results. (Bug #11402)
Updated dependency list for RPM builds to include missing
dependencies such as useradd and
groupadd. (Bug #12233)
mysql_install_db used static
localhost value in GRANT
tables even when server hostname is not
localhost, such as
localhost.localdomain. This change is
applied to version 5.0.10b on Windows. (Bug #11822)
Multiple SELECT SQL_CACHE queries in a
stored procedure causes error and client hang. (Bug #6897)
Added checks to prevent error when allocating memory when there was insufficient memory available. (Bug #7003)
Character data truncated when GBK characters
0xA3A0 and 0xA1 are
present. (Bug #11987)
Comparisons like SELECT "A\\" LIKE "A\\";
fail when using SET NAMES utf8;. (Bug
#11754)
When used in a SELECT query against a view,
the GROUP_CONCAT() function returned only a
single row. (Bug #11412)
Calling the C API function
mysql_stmt_fetch() after all rows of a
result set were exhausted would return an error instead of
MYSQL_NO_DATA. (Bug #11037)
Information about a trigger was not displayed in the output of
SELECT ... FROM INFORMATION_SCHEMA.TRIGGERS
when the selected database was
INFORMATION_SCHEMA, prior to the trigger's
first invocation. (Bug #12127)
Issuing successive FLUSH TABLES WITH READ
LOCK would cause the mysql client
to hang. (Bug #11934)
In stored procedures, a cursor that fetched an empty string
into a variable would set the variable to
NULL instead. (Bug #8692)
A trigger dependent on a feature of one
SQL_MODE setting would cause an error when
invoked after the SQL_MODE was changed.
(Bug #5891)
A delayed insert that would duplicate an existing record crashed the server instead. (Bug #12226)
ALTER TABLE when SQL_MODE =
'TRADITIONAL' gave rise to an invalid error message.
(Bug #11964)
Attempting to repair a table having a fulltext index on a
column containing words whose length exceeded 21 characters
and where myisam_repair_threads was greater
than 1 would crash the server. (Bug #11684)
The MySQL Cluster backup log was invalid where the number of Cluster nodes was not equal to a power of 2. (Bug #11675)
GROUP_CONCAT() sometimes returned a result
with a different collation from that of its arguments. (Bug
#10201)
The LPAD() and RPAD()
functions returned the wrong length to
mysql_fetch_fields(). (Bug #11311)
A UNIQUE VARCHAR column would be
mis-identified as MUL in table
descriptions. (Bug #11227)
Incorrect error message displayed if user attempted to create
a table in a non-existing database using CREATE
syntax. (Bug #10407)
database_name.table_name
InnoDB: Do not flush after each write, not
even before setting up the doublewrite buffer. Flushing can be
extremely slow on some systems. (Bug #12125)
InnoDB: True VARCHAR:
Return NULL columns in the format expected
by MySQL. (Bug #12186)
Two threads could potentially initialize different characters sets and overwrite each other. (Bug #12109)
Unsigned LONG system variables may return
incorrect value when retrieved with a
SELECT for certain values. (Bug #10351)
Prepared statements were not being written to the Slow Query log. (Bug #9968)
Functionality added or changed:
Security improvement: Applied a patch that addresses a
zlib data vulnerability that could result
in a buffer overflow and code execution.
(CAN-2005-2096)
(Bug #11844)
Incompatible change: The
namespace for triggers has changed. Previously, trigger names
had to be unique per table. Now they must be unique within the
schema (database). An implication of this change is that
DROP TRIGGER syntax now uses a schema name
instead of a table name (schema name is optional and, if
omitted, the current schema will be used). (Bug #5892)
Note: When upgrading from a previous
version of MySQL 5 to MySQL 5.0.10 or newer, you must drop all
triggers and re-create them or DROP TRIGGER
will not work after the upgrade. A suggested procedure for
doing this is given in Section 2.10.2, “Upgrading from MySQL 4.1 to 5.0”.
The viewing of triggers and trigger metadata has been enhanced as follows:
An extension to the SHOW command has
been added: SHOW TRIGGERS can be used
to view a listing of triggers. See
Section 13.5.4.23, “SHOW TRIGGERS Syntax”, for details.
The INFORMATION_SCHEMA database now
includes a TRIGGERS table. See
Section 20.16, “The INFORMATION_SCHEMA TRIGGERS Table”, for details. (Bug #9586)
Triggers can now reference tables by name. See
Section 18.1, “CREATE TRIGGER Syntax”, for more information.
The output of perror --help now displays
the --ndb option. (Bug #11999)
On Windows, the search path used by MySQL applications for
my.ini now includes
..\my.ini (that is, the application's
parent directory, and hence, the installation directory). (Bug
#10419)
Added mysql_get_character_set_info() C API
function for obtaining information about the default character
set of the current connection.
The bundled version of the readline library
was upgraded to version 5.0.
It is no longer necessary to issue an explicit LOCK
TABLES for any tables accessed by a trigger prior to
executing any statements that might invoke the trigger. (Bug
#9581, Bug #8406)
MySQL Cluster: A new -P
option is available for use with the
ndb_mgmd client. When called with this
option, ndb_mgmd prints all configuration
data to stdout, then exits.
Add table_lock_wait_timeout global server
system variable.
Bugs fixed:
NDB: Trying to use a greater number of
tables then specified by the value of
MaxNoOfTables caused table corruption such
that data nodes could not be restarted. (Bug #9994)
NDB: Attempting to create or drop tables
during a backup would cause the cluster to shut down. (Bug
#11942)
When attempting to drop a table with a broken unique index,
NDB failed to drop the table and
erroneously report that the table was unknown. (Bug #11355)
SELECT ... NOT IN() gave unexpected results
when only static value present between the
(). (Bug #11885)
Fixed compile error when using GCC4 on AMD64. (Bug #12040)
NDB ignored the Hostname
option in the NDBD DEFAULT section of the
Cluster configuration file. (Bug #12028)
SHOW PROCEDURE/FUNCTION STATUS didn't work
for users with limited access. (Bug #11577)
MySQL server would crash is a fetch was performed after a
ROLLBACK when cursors were involved. (Bug
#10760)
The temporary tables created by an ALTER
TABLE on a cluster table were visible to all MySQL
servers. (Bug #12055)
NDB_MGMD was leaking file descriptors. (Bug
#11898)
IP addresses not shown in ndb_mgm SHOW
command on second ndb_mgmd (or on ndb_mgmd restart). (Bug
#11596)
Functions that evaluate to constants (such as
NOW() and CURRENT_USER()
were being evaluated in the definition of a
VIEW rather than included verbatim. (Bug
#4663)
Execution of SHOW TABLES failed to
increment the Com_show_tables status
variable. (Bug #11685)
For execution of a stored procedure that refers to a view, changes to the view definition were not seen. The procedure continued to see the old contents of the view. (Bug #6120)
For prepared statements, the SQL parser did not disallow
‘?’ parameter markers
immediately adjacent to other tokens, which could result in
malformed statements in the binary log. (For example,
SELECT * FROM t WHERE? = 1 could become
SELECT * FROM t WHERE0 = 1.) (Bug #11299)
When two threads compete for the same table, a deadlock could
occur if one thread has also a lock on another table through
LOCK TABLES and the thread is attempting to
remove the table in some manner and the other thread want
locks on both tables. (Bug #10600)
Aliasing the column names in a VIEW did not
work when executing a SELECT query on the
VIEW. (Bug #11399)
Performing an ORDER BY on a
SELECT from a VIEW
produced unexpected results when VIEW and
underlying table had the same column name on different
columns. Bug #11709)
The C API function mysql_statement_reset()
did not clear error information. (Bug #11183)
When used within a subquery, SUBSTRING()
returned an empty string. (Bug #10269)
Multiple-table UPDATE queries using
CONVERT_TZ() would fail with an error. (Bug
#9979)
mysql_fetch_fields() returned incorrect
length information for MEDIUM and
LONG TEXT and
BLOB columns. (Bug #9735)
mysqlbinlog was failing the test suite on
Windows due to BOOL being incorrectly cast
to INT. (Bug #11567)
NDBCLuster: Server left core files
following shutdown if data nodes had failed. (Bug #11516)
Creating a trigger in one database that references a table in another database was being allowed without generating errors. (Bug #8751)
Duplicate trigger names were allowed within a single schema. (Bug #6182)
Server did not accept some fully-qualified trigger names. (Bug #8758)
The traditional SQL mode accepted invalid
dates if the date value provided was the result of an implicit
type conversion. (Bug #5906)
The MySQL server had issues with certain combinations of basedir and datadir. (Bug #7249)
INFORMATION_SCHEMA.COLUMNS had some
inaccurate values for some data types. (Bug #11057)
LIKE pattern matching using prefix index didn't return correct result. (Bug #11650)
For several character sets, MySQL incorrectly converted the
character code for the division sign to the
eucjpms character set. (Bug #11717)
When invoked within a view, SUBTIME()
returned incorrect values. (Bug #11760)
SHOW BINARY LOGS displayed a file size of 0
for all log files but the current one if the files were not
located in the data directory. (Bug #12004)
Server-side prepared statements failed for columns with a
character set of ucs2. (Bug #9442)
References to system variables in an SQL statement prepared
with PREPARE were evaluated during
EXECUTE to their values at prepare time,
not to their values at execution time. (Bug #9359)
For server shutdown on Windows, error messages of the form
Forcing close of thread were being
written to the error log. Now connections are closed more
gracefully without generating error messages. (Bug #7403)
n
user: 'name'
Increased the version number of the
libmysqlclient shared library from 14 to 15
because it is binary incompatible with the MySQL 4.1 client
library. (Bug #11893)
A recent optimizer change caused DELETE ... WHERE ...
NOT LIKE and DELETE ... WHERE ... NOT
BETWEEN to not properly identify the rows to be
deleted. (Bug #11853)
Within a stored procedure that selects from a table, invoking another procedure that requires a write lock for the table caused that procedure to fail with a message that the table was read-locked. (Bug #9565)
Within a stored procedure, selecting from a table through a view caused subsequent updates to the table to fail with a message that the table was read-locked. (Bug #9597)
For a stored procedure defined with SQL SECURITY
DEFINER characteristic,
CURRENT_USER() incorrectly reported the use
invoking the procedure, not the user who defined it. (Bug
#7291)
Creating a table with a SET or
ENUM column with the DEFAULT
0 clause caused a server crash if the table's
character set was utf8. (Bug #11819)
With strict SQL mode enabled, ALTER TABLE
reported spurious “Invalid default value”
messages for columns that had no DEFAULT
clause. (Bug #9881)
In SQL prepared statements, comparisons could fail for values
not equally space-padded. For example, SELECT 'a' =
'a '; returns 1, but PREPARE s FROM
'SELECT ?=?'; SET @a = 'a', @b = 'a '; PREPARE s FROM
'SELECT ?=?'; EXECUTE s USING @a, @b; incorrectly
returned 0. (Bug #9379)
Labels in stored routines did not work if the character set
was not latin1. (Bug #7088)
Invoking the DES_ENCRYPT() function could
cause a server crash if the server was started without the
--des-key-file option. (Bug #11643)
The server crashed upon execution of a statement that used a
stored function indirectly (via a view) if the function was
not yet in the connection-specific stored routine cache and
the statement would update a
Handler_
status variable. This fix allows the use of stored routines
under xxxLOCK TABLES without explicitly
locking the mysql.lock table. However, you
cannot use mysql.proc in statements that
will combine locking of it with modifications for other
tables. (Bug #11554)
The server crashed when dropping a trigger that invoked a stored procedure, if the procedure was not yet in the connection-specific stored routine cache. (Bug #11889)
Selecting the result of an aggregate function for an
ENUM or SET column
within a subquery could result in a server crash. (Bug #11821)
Incorrect column values could be retrieved from views defined
using statements of the form SELECT * FROM
. (Bug #11771)
tbl_name
The mysql.proc table was not being created
properly with the proper utf8 character set
and collation, causing server crashes for stored procedure
operations if the server was using a multi-byte character set.
To take advantage of the bug fix,
mysql_fix_privilege_tables should be run to
correct the structure of the mysql.proc
table. (Bug #11365)
Note that it is necessary to run
mysql_fix_privileges_tables when upgrading
from a previous installation that contains the
mysql.proc table (that is, from a previous
5.0 installation). Otherwise, creating stored procedures might
not work.
Execution of a prepared statement that invoked a non-existent or dropped stored routine would crash the server. (Bug #11834)
Executing a statement that invoked a trigger would cause
problems unless a LOCK TABLES was first
issued for any tables accessed by the trigger.
Note: The exact nature of the
problem depended upon the MySQL 5.0 release being used: prior
to 5.0.3, this resulted in a crash; from 5.0.3 to 5.0.7, MySQL
would issue a warning; in 5.0.9, the server would issue an
error. (Bug #8406)
The same issue caused LOCK TABLES to fail
following UNLOCK TABLES if triggers were
involved. (Bug #9581)
In a shared Windows environment, MySQL could not find its
configuration file unless the file was in the
C:\ directory. (Bug #5354)
Functionality added or changed:
An attempt to create a TIMESTAMP column
with a display width (for example,
TIMESTAMP(6)) now results in a warning.
Display widths have not been supported for
TIMESTAMP since MySQL 4.1. (Bug #10466)
InnoDB: When creating or extending an
InnoDB data file, at most one megabyte at a time is allocated
for initializing the file. Previously, InnoDB allocated and
initialized 1 or 8 megabytes of memory, even if only a few
16-kilobyte pages were to be written. This improves the
performance of CREATE TABLE in
innodb_file_per_table mode.
InnoDB: Various optimizations. Removed
unreachable debug code from non-debug builds. Added hints for
the branch predictor in gcc. Made
assertions occupy less space.
InnoDB: Make
innodb_thread_concurrency=20 by default.
Bypass the concurrency checking if the setting is greater than
or equal to 20.
InnoDB: Make CHECK TABLE
killable. (Bug #9730)
Recursion in stored routines is now disabled because it was crashing the server. We plan to modify stored routines to allow this to operate safely in a future release. (Bug #11394)
The handling of BIT columns has been
improved, and should now be much more reliable in a number of
cases. (Bug #10617, Bug #11091, Bug #11572)
mysql_real_escape_string() API function now
respects NO_BACKSLASH_ESCAPES SQL mode.
(Bug #10214)
Bugs fixed:
SHOW CREATE VIEW did not take the
ANSI MODE into account when quoting
identifiers. (Bug #6903)
The mysql_config script did not handle
symbolic linking properly. (Bug #10986)
Incorrect results when using GROUP BY ... WITH
ROLLUP on a VIEW. (Bug #11639)
Instances of the VAR_SAMP() function in
view definitions were converted to
VARIANCE(). This is incorrect because
VARIANCE() is the same as
VAR_POP(), not
VAR_SAMP(). (Bug #10651)
mysqldump failed when reloading a view if the view was defined in terms of a different view that had not yet been reloaded. mysqldump now creates a dummy table to handle this case. (Bug #10927)
mysqldump could crash for illegal or non-existent table names. (Bug #9358)
The --no-data option for
mysqldump was being ignored if table names
were given after the database name. (Bug #9558)
The --master-data option for
mysqldump resulted in no error if the
binary log was not enabled. Now an error occurs unless the
--force option is given. (Bug #11678)
DES_ENCRYPT() and
DES_DECRYPT() require SSL support to be
enabled, but were not checking for it. Checking for incorrect
arguments or resource exhaustion was also improved for these
functions. (Bug #10589)
When used in joins, SUBSTRING() failed to
truncate to zero any string values that could not be converted
to numbers. (Bug #10124)
mysqldump --xml did not format
NULL column values correctly. (Bug #9657)
There was a compression algorithm issue with
myisampack for very large datasets (where
the total size of all records in a single column was on the
order of 3 GB or more) on 64-bit platforms. (A fix for other
platforms was made in MySQL 5.0.6.) (Bug #8321)
Temporary tables were created in the data directory instead of
tmpdir. (Bug #11440)
MySQL would not compile correctly on QNX due to missing
rint() function. (Bug #11544)
A SELECT DISTINCT
would work
correctly with a col_nameMyISAM table only when
there was an index on col_name.
(Bug #11484)
The server would lose table-level CREATE
VIEW and SHOW VIEW privileges
following a FLUSH PRIVILEGES or server
restart. (Bug #9795)
In strict mode, an INSERT into a view that
did not include a value for a NOT NULL
column but that did include a WHERE test on
the same column would succeed, This happened even though the
INSERT should have been prevented due to
the failure to supply a value for the NOT
NULL column. (Bug #6443)
Running a CHECK TABLES on multiple views
crashed the server. (Bug #11337)
When a table had a primary key containing a
BLOB column, creation of another index
failed with the error BLOB/TEXT column used in key
specification without keylength, even when the new
index did not contain a BLOB column. (Bug
#11657)
NDB Cluster: When trying to open a table that could not be discovered or unpacked, cluster would return error codes which the MySQL server falsely interpreted as operating system errors. (Bug #103651)
Manually inserting a row with host='' into
mysql.tables_priv and performing a
FLUSH PRIVILEGES would cause the server to
crash. (Bug #11330)
A cursor using a query with a filter on a
DATE or DATETIME column
would cause the server to crash server after the data was
fetched. (Bug #11172)
Closing a cursor that was already closed would cause MySQL to hang. (Bug #9814)
Using CONCAT_WS on a column set
NOT NULL caused incorrect results when used
in a LEFT JOIN. (Bug #11469)
Signed BIGINT would not accept
-9223372036854775808 as a
DEFAULT value. (Bug #11215)
Views did not use indexes on all appropriate queries. (Bug #10031)
For MEMORY tables, it was possible for
updates to be performed using outdated key statistics when the
updates involved only very small changes in a very few rows.
This resulted in the random failures of queries such as
UPDATE t SET col = col + 1 WHERE col_key =
2; where the same query with no
WHERE clause would succeed. (Bug #10178)
Optimizer performed range check when comparing unsigned integers to negative constants, could cause errors. (Bug #11185)
Wrong comparison method used in VIEW when
relaxed date syntax used (for example,
2005.06.10). (Bug #11325)
The ENCRYPT() and
SUBSTRING_INDEX() functions would cause
errors when used with a VIEW. (Bug #7024)
Clients would hang following some errors with stored procedures. (Bug #9503)
Combining cursors and subqueries could cause server crash or memory leaks. (Bug #10736)
If a prepared statement cursor is opened but not completely fetched, attempting to open a cursor for a second prepared statement will fail. (Bug #10794)
Note: Starting with version 5.0.8, changes for MySQL Cluster can be found in the combined Change History.
Functionality added or changed:
Warning: Incompatible change:
Previously, conversion of DATETIME values
to numeric form by adding zero produced a result in
YYYYMMDDHHMMSS format. The result of
DATETIME+0 is now in
YYYYMMDDHHMMSS.000000 format. (Bug#12268)
MEMORY tables now support indexes of up to
500 bytes. See Section 14.4, “The MEMORY (HEAP) Storage Engine”. (Bug
#10566)
New SQL_MODE -
NO_ENGINE_SUBSTITUTION Prevents automatic
substitution of storage engine when the requested storage
engine is disabled or not compiled in. (Bug #6877)
The statements CREATE TABLE,
TRUNCATE TABLE, DROP
DATABASE, and CREATE DATABASE
cause an implicit commit. (Bug #6883)
Expanded on information provided in general log and slow query log for prepared statements. (Bug #8367, Bug #9334)
Where a GROUP BY query uses a grouping
column from the query's SELECT clause,
MySQL now issues a warning. This is done because the SQL
standard states that any grouping column must unambiguously
reference a column of the table resulting from the query's
FROM clause, and allowing columns from the
SELECT clause to be used as grouping
columns is a MySQL extension to the standard.
By way of example, consider the following table:
CREATE TABLE users ( userid INT NOT NULL PRIMARY KEY, username VARCHAR(25), usergroupid INT NOT NULL );
MySQL allows you to use the alias in this query:
SELECT usergroupid AS id, COUNT(userid) AS number_of_users FROM users GROUP BY id;
However, the SQL standard requires that the column name be used, as shown here:
SELECT usergroupid AS id, COUNT(userid) AS number_of_users FROM users GROUP BY usergroupid;
Queries such as the first of the two shown above will continue
to be supported in MySQL; however, beginning with MySQL 5.0.8,
using a column alias in this fashion will generate a warning.
Note that in the event of a collision between column names
and/or aliases used in joins, MySQL attempts to resolve the
conflict by giving preference to columns arising from tables
named in the query's FROM clause. (Bug
#11211)
The granting or revocation of privileges on a stored routine
is no longer performed when running the server with
--skip-grant-tables even after the statement
SET @@global.automatic_sp_privileges=1; has
been executed. (Bug #9993)
Added support for B'10' syntax for bit
literal. (Bug #10650)
Bugs fixed:
Security fix: On Windows systems, a user with any of the following privileges
REFERENCES
CREATE TEMPORARY TABLES
GRANT OPTION
CREATE
SELECT
on *.* could crash
mysqld by issuing a USE
LPT1; or USE PRN; command. In
addition, any of the commands USE NUL;,
USE CON;, USE COM1;, or
USE AUX; would report success even though
the database was not in fact changed.
Note: Although this bug was
thought to be fixed previously, it was later discovered to be
present in the MySQL 5.0.7-beta release for Windows. (Bug
#9148,
CAN-2005-0799
A CREATE TABLE
statement would crash the server when no
database was selected. (Bug #11028)
db_name.tbl_name
LIKE ...
SELECT DISTINCT queries or GROUP
BY queries without MIN() or
MAX() could return inconsistent results for
indexed columns. (Bug #11044)
The SHOW INSTANCE OPTIONS command in MySQL
Instance Manager displayed option values incorrectly for
options for which no value had been given. (Bug #11200)
An outer join with an empty derived table (a result from a subquery) returned no result. (Bug #11284)
An outer join with an ON condition that
evaluated to false could return an incorrect result. (Bug
#11285)
mysqld_safe would sometimes fail to remove
the pid file for the old mysql process
after a crash. As a result, the server would fail to start due
to a false A mysqld process already
exists... error. (Bug #11122)
CAST( ... AS DECIMAL) didn't work for strings. (Bug
#11283)
NULLIF() function could produce incorrect
results if first argument is NULL. (Bug
#11142)
Setting @@SQL_MODE = NULL caused an
erroneous error message. (Bug #10732)
Converting a VARCHAR column having an index
to a different type (such as TINYTEXT) gave
rise to an incorrect error message. (Bug #10543)
Note that this bugfix induces a slight change in the behavior
of indexes: If an index is defined to be the same length as a
field (or is left to default to that field's length), and the
length of the field is later changed, then the index will
adopt the new length of the field. Previously, the size of the
index did not change for some field types (such as
VARCHAR) when the field type was changed.
sql_data_access column of
routines table of
INFORMATION_SCHEMA was empty. (Bug #11055)
A CAST() value could not be included in a
VIEW. (Bug #11387)
Server crashed when using GROUP BY on the
result of a DIV operation on a
DATETIME value. (Bug #11385)
Possible NULL values in
BLOB columns could crash the server when a
BLOB was used in a GROUP
BY query. (Bug #11295)
Fixed 64 bit compiler warning for packet length in replication. (Bug #11064)
Multiple range accesses in a subquery cause server crash. (Bug #11487)
An issue with index merging could cause suboptimal index merge
plans to be chosen when searching by indexes created on
DATE columns. The same issue caused the
InnoDB storage engine to issue the warning using a
partial-field key prefix in search. (Bug #8441)
The mysqlhotcopy script was not parsing the
output of SHOW SLAVE STATUS correctly when
called with the --record_log_pos option. (Bug
#7967)
SELECT * FROM
returned incorrect
results when called from a stored procedure, where
tabletable had a primary key. (Bug
#10136)
When used in defining a view, the
TIME_FORMAT() function failed with
calculated values, for example, when passed the value returned
by SEC_TO_TIME(). (Bug #7521)
SELECT DISTINCT ... GROUP BY
returned
multiple rows (it should return a single row). (Bug #8614)
constant
INSERT INTO SELECT FROM
produced incorrect
result when using viewORDER BY. (Bug #11298)
Fixed hang/crash with Boolean full-text search where a query contained more query terms that one-third of the query length (it could be achieved with truncation operator: 'a*b*c*d*'). (Bug #7858)
Fixed column name generation in VIEW
creation to ensure there are no duplicate column names. (Bug
#7448)
An ORDER BY clause sometimes had no effect
on the ordering of a result when selecting specific columns
(as opposed to using SELECT *) from a view.
(Bug #7422)
Some data definition statements (CREATE
TABLE where the table was not a temporary table,
TRUNCATE TABLE, DROP
DATABASE, and CREATE DATABASE)
were not being written to the binary log after a
ROLLBACK. This also caused problems with
replication. (Bug #6883)
Calling a stored procedure that made use of an INSERT
... SELECT ... UNION SELECT ... query caused a
server crash. (Bug #11060)
Selecting from a view defined using SELECT
SUM(DISTINCT ...) caused an error; attempting to
execute a SELECT * FROM
INFORMATION_SCHEMA.TABLES query after defining such
a view crashed the server. (Bug #7015)
The mysql client would output a prompt twice following input of very long strings, because it incorrectly assumed that a call to the _cgets() function would clear the input buffer. (Bug #10840)
A three byte buffer overflow in the client functions caused improper exiting of the client when reading a command from the user. (Bug #10841)
Fixed a problem where a stored procedure caused a server crash if the query cache was enabled. (Bug #9715)
SHOW CREATE DATABASE INFORMATION_SCHEMA
returned an “unknown database” error. (Bug #9434)
Corrected a problem with IFNULL() returning
an incorrect result on 64-bit systems. (Bug #11235)
Fixed a problem resolving table names with
lower_case_table_names=2 when the table
name lettercase differed in the FROM and
WHERE clauses. (Bug #9500)
Fixed server crash due to some internal functions not taking
into account that for multi-byte character sets,
CHAR columns could exceed 255 bytes and
VARCHAR columns could exceed 65,535 bytes.
(Bug #11167)
Fixed locking problems for multiple-statement
DELETE statements performed within a stored
routine, such as incorrectly locking a to-be-modified table
with a read lock rather than a write lock. (Bug #11158)
Fixed a portability problem testing for
crypt() support that caused compilation
problems when using OpenSSL/yaSSL on HP-UX and Mac OS X. (Bug
#10675, Bug #11150)
The hostname cache was not working. (Bug #10931)
On Windows, mysqlshow did not interpret
wildcard characters properly if they were given in the table
name argument. (Bug #10947)
The default hostname for MySQL server was always
mysql. (Bug #11174)
Using PREPARE to prepare a statement that
invoked a stored routine that deallocated the prepared
statement caused a server crash. This is prevented by
disabling dynamic SQL within stored routines. (Bug #10975)
(Note: This restriction was lifted in 5.0.13 for stored
procedures, but not stored functions or triggers.)
Using PREPARE to prepare a statement that
invoked a stored routine that executed the prepared statement
caused a Packets out of order error the
second time the routine was invoked. This is prevented by
disabling dynamic SQL within stored routines. (Bug #7115)
(Note: This restriction was lifted in 5.0.13 for stored
procedures, but not stored functions or triggers.)
Using prepared statements within a stored routine
(PREPARE, EXECUTE,
DEALLOCATE) could cause the client
connection to be dropped after the routine returned. This is
prevented by disabling dynamic SQL within stored routines.
(Bug #10605) (Note: This restriction was lifted in 5.0.13 for
stored procedures, but not stored functions or triggers.)
When using a cursor with a prepared statement, the first execution returned the correct result but was not cleaned up properly, causing subsequent executions to return incorrect results. (Bug #10729)
MySQL Cluster: Connections between data nodes and management
nodes were not being closed following shutdown of
ndb_mgmd. (Bug #11132)
MySQL Cluster: mysqld processes would not
reconnect to cluster following restart of
ndb_mgmd. (Bug #11221)
MySQL Cluster: Fixed problem whereby data nodes would fail to restart on 64-bit Solaris (Bug #9025)
MySQL Cluster: Calling ndb_select_count()
crashed the cluster when running on Red Hat Enterprise
4/64-bit/Opteron. (Bug #10058)
MySQL Cluster: Insert records were incorrectly applied by
ndb_restore, thus making restoration from
backup inconsistent if the binlog contained inserts. (Bug
#11166)
MySQL Cluster: Cluster would time out and crash after first query on 64-bit Solaris 9. (Bug #8918)
MySQL Cluster: ndb_mgm client
show command displayed incorrect output
after master data node failure. (Bug #11050)
MySQL Cluster: A delete performed as part of a transaction caused an erroneous result. (Bug #11133)
MySQL Cluster: Not allowing sufficient parallelism in cluster
configuration (for example,
NoOfTransactions too small) caused
ndb_restore to fail without providing any
error messages. (Bug #10294)
MySQL Cluster: When using dynamically allocated ports on Linux, cluster would hang on initial startup. (Bug #10893)
MySQL Cluster: Setting TransactionInactiveTimeout= 0 did not result in an infinite timeout. (Bug #11290)
InnoDB: Enforce maximum
CHAR_LENGTH() of UTF-8 data in ON
UPDATE CASCADE. (Bug #10409)
InnoDB: Pad UTF-8
VARCHAR columns with
0x20. Pad UCS2 CHAR
columns with 0x0020. (Bug #10511)
Functionality added or changed:
Security improvement: Applied a patch to fix a UDF library-loading vulnerability that could result in a buffer overflow and code execution. (http://www.appsecinc.com/resources/alerts/mysql/2005-002.html)
Added mysql_set_character_set() C API
function for setting the default character set of the current
connection. This allows clients to affect the character set
used by mysql_real_escape_string(). (Bug
#8317)
The behavior of the Last_query_cost system
variable has been changed. The default value is now 0 (rather
than -1) and it now has session-level scope (rather than being
global). See Section 5.2.4, “Server Status Variables”, for
additional information.
All characters occurring on the same line following the
DELIMITER keyword will be set as delimiter.
For example, DELIMITER :; will set
:; as the delimiter. This behavior is now
consistent between MySQL 5.1 and MySQL 5.0. (Bug #9879)
The table, type, and
rows columns of EXPLAIN
output can now be NULL. This is required
for using EXPLAIN on
SELECT queries that use no tables (for
example, EXPLAIN SELECT 1). (Bug #9899)
Placeholders now can be used for LIMIT in
prepared statements. (Bug #7306)
SHOW BINARY LOGS now displays a
File_size column that indicates the size of
each file.
The --delayed-insert option for
mysqldump has been disabled to avoid
causing problems with storage engines that do not support
INSERT DELAYED. (Bug #7815)
Improved the optimizer to be able to use indexes for
expressions of the form
and
indexed_col NOT IN
(val1,
val2, ...).. (Bug #10561)
indexed_col NOT BETWEEN
val1 AND
val2
Removed mysqlshutdown.exe and
mysqlwatch.exe from the Windows “No
Installer” distribution (they had already been removed
from the “With Installer” distribution before).
Removed those programs from the source distribution.
Removed WinMySQLAdmin from the source
distribution and from the “No Installer” Windows
distribution (it had already been removed from the “With
Installer” distribution before).
InnoDB: In stored procedures and functions,
InnoDB no longer takes full explicit table
locks for every involved table. Only `intention' locks are
taken, similar to those in the execution of an ordinary SQL
statement. This greatly reduces the number of deadlocks.
Bugs fixed:
Security update: A user with
limited privileges could obtain information about the
privileges of other users by querying objects in the
INFORMATION_SCHEMA database for which that
user did not have the requisite privileges. (Bug #10964)
Triggers with dropped functions caused crashes. (Bug #5893)
Failure of a BEFORE trigger did not prevent
the triggering statement from performing its operation on the
row for which the trigger error occurred. Now the triggering
statement fails as described in
Section 18.3, “Using Triggers”. (Bug #10902)
Issuing a write lock for a table from one client prevented
other clients from accessing the table's metadata. For
example, if one client issued a LOCK TABLES
, then a second client attempting to execute a
mydb.mytable
WRITEUSE would
hang. (Bug #9998)
mydb;
The LAST_DAY() failed to return
NULL when supplied with an invalid
argument. See Section 12.5, “Date and Time Functions”. (Bug
#10568)
The functions COALESCE(),
IF(), and IFNULL()
performed incorrect conversions of their arguments. (Bug
#9939)
The TIME_FORMAT() function returned
incorrect results with some format specifiers. See
Section 12.5, “Date and Time Functions”. (Bug #10590)
Dropping stored routines when the MySQL server had been
started with --skip-grant-tables generated
extraneous warnings. (Bug #9993)
A problem with the my_global.h file
caused compilation of MySQL to fail on single-processor Linux
systems running 2.6 kernels. (Bug #10364)
The ucs2_turkish_ci collation failed with upper('i'). UPPER/LOWER now can return a string with different length. (Bug #8610)
OPTIMIZE of InnoDB table does not return 'Table is full' if out of tablespace. (Bug #8135)
GROUP BY queries with ROLLUP returned wrong results for expressions containing group by columns. (Bug #7894)
Fixed bug in FIELD() function where value
list contains NULL. (Bug #10944)
Corrected a problem where an incorrect data type was returned
in the result set metadata when using a prepared
SELECT DISTINCT statement to select from a
view. (