MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Jorgen Loland ebe94178d1 BUG#11882110: UPDATE REPORTS ER_KEY_NOT_FOUND IF TABLE IS
UPDATED TWICE

For multi update it is not allowed to update a column
of a table if that table is accessed through multiple aliases
and either
1) the updated column is used as partitioning key
2) the updated column is part of the primary key 
   and the primary key is clustered

This check is done in unsafe_key_update().

The bug was that for case 2), it was checked whether
updated_column_number == table_share->primary_key 
However, the primary_key variable is the index number of the 
primary key, not a column number.

Prior to this bugfix, the first column was wrongly believed to be
the primary key. The columns covered by an index is found in
table->key_info[idx_number]->key_part. The bugfix is to check if
any of the columns in the keyparts of the primary key are
updated.

The user-visible effect is that for storage engines with
clustered primary key (e.g. InnoDB but not MyISAM) queries
like 
"UPDATE t1 AS A JOIN t2 AS B SET A.primkey=..."
will now error with 
"ERROR HY000: Primary key/partition key update is not allowed 
since the table is updated both as 'A' and 'B'." 
instead of 
"ERROR 1032 (HY000): Can't find record in 't1_tb'"
even if primkey is not the first column in the table. This 
was the intended behavior of bugfix 11764529.
2011-06-16 08:24:00 +02:00
.bzr-mysql merge 2010-12-17 14:47:33 +02:00
BUILD Bug #12586211 ENABLE GCOV BUILDS WITH CMAKE, INCLUDING PLUGINS 2011-05-25 12:39:11 +02:00
client Fixed cast warnings in introducing the pluggable authentication client 2011-06-06 13:27:05 +03:00
cmake RETURN doesn't exactly return from the macro... 2011-06-10 14:57:42 +02:00
cmd-line-utils Merge of fix for bug#11757855 from mysql-5.1 -> mysql-5.5. 2011-04-30 10:54:38 +05:30
dbug Remove configuration preprocessor symbols 'THREAD' 2011-01-11 10:07:37 +01:00
Docs WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
extra BUG#11762616: BUG#55229: 'POSTION' 2011-05-06 00:50:31 +01:00
include BUG#12611785 - AUDIT INTERFACE STRICT-ALIASING WARNINGS 2011-06-03 11:27:11 +04:00
libmysql Bug#12612143 - LIBMYSQL 5.5.13 BREAKS USER APPLICATION BUILD 2011-06-03 13:44:33 +02:00
libmysqld BUG#12561297:LIBMYSQLD/EXAMPLE/MYSQL_EMBEDDED IS ABORTING. 2011-06-14 00:11:24 +05:30
libservices WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
man Merge 2010-12-29 00:47:05 +01:00
mysql-test BUG#11882110: UPDATE REPORTS ER_KEY_NOT_FOUND IF TABLE IS 2011-06-16 08:24:00 +02:00
mysys Fixed bug#12403662 (formerly known as bug#60987): LOAD DATA LOCAL INFILE 2011-06-15 16:18:08 +07:00
packaging/WiX - Changes needed to use newer WiX version (Bug#60029) 2011-05-16 20:26:55 +02:00
plugin BUG#12611785 - AUDIT INTERFACE STRICT-ALIASING WARNINGS 2011-06-03 11:27:11 +04:00
regex Merge from mysql-5.1 for bug#58026. 2011-02-04 10:59:55 +06:00
scripts merge mysql-5.1-security->mysql-5.5-security 2011-04-07 13:57:32 +03:00
sql BUG#11882110: UPDATE REPORTS ER_KEY_NOT_FOUND IF TABLE IS 2011-06-16 08:24:00 +02:00
sql-bench WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
sql-common Bug#11745920/Bug#21287: "SSL connection error" is not helpful! (ssl-verify-server-cert=true vs localhos) 2011-05-19 10:47:43 +01:00
storage Merge mysql-5.1 to mysql-5.5. 2011-06-15 10:30:19 +03:00
strings auto-merge 2011-05-12 05:32:06 +01:00
support-files Merge bug fix 42969 into main 5.5 branch. 2011-02-14 15:53:51 +01:00
tests Bug#12337762 : MYSQL_LIST_FIELDS() RETURNS WRONG CHARSET FOR CHAR/VARCHAR/TEXT 2011-06-10 19:56:35 +05:30
unittest Bug#12552516 LF_HASH REQUIRES MY_THREAD_INIT() 2011-05-13 18:04:49 +02:00
vio build fixes for -Werror (11745920) 2011-05-27 11:02:10 +01:00
win Added support for VS10. 2011-03-28 13:43:30 +03:00
zlib WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
.bzrignore Ignore auto-generated files (source_downloads). 2011-06-07 17:06:26 +04:00
BUILD-CMAKE Fix typos : 2010-01-25 15:14:42 +01:00
CMakeLists.txt BUG#12549572 : CMake file does not include gcov option 2011-05-12 18:22:14 -04:00
config.h.cmake Merge of fix for bug#11757855 from mysql-5.1 -> mysql-5.5. 2011-04-30 10:54:38 +05:30
configure.cmake merge mysql-5.1->mysql-5.5 2011-06-06 13:24:28 +03:00
COPYING Use a new version of "COPYING", the GPL text. 2010-03-04 14:26:27 +01:00
INSTALL-SOURCE ReadMe.txt, INSTALL-WIN-SOURCE, INSTALL-BINARY, INSTALL-SOURCE: 2007-11-23 10:15:55 +01:00
INSTALL-WIN-SOURCE ReadMe.txt, INSTALL-WIN-SOURCE, INSTALL-BINARY, INSTALL-SOURCE: 2007-11-23 10:15:55 +01:00
README Removed the "Third-Party Component Notices" part from README 2011-03-16 23:11:25 +01:00
VERSION increased the version number to .15 2011-06-10 10:38:27 +02:00

MySQL Server 5.5

This is a release of MySQL, a dual-license SQL database server.
For the avoidance of doubt, this particular copy of the software 
is released under the version 2 of the GNU General Public License. 
MySQL is brought to you by Oracle.

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

License information can be found in the COPYING file.

MySQL FOSS License Exception
We want free and open source software applications under certain
licenses to be able to use specified GPL-licensed MySQL client
libraries despite the fact that not all such FOSS licenses are
compatible with version 2 of the GNU General Public License.  
Therefore there are special exceptions to the terms and conditions 
of the GPLv2 as applied to these client libraries, which are 
identified and described in more detail in the FOSS License 
Exception at 
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.

This distribution may include materials developed by third
parties. For license and attribution notices for these
materials, please refer to the documentation that accompanies
this distribution (see the "Licenses for Third-Party Components"
appendix) or view the online documentation at 
<http://dev.mysql.com/doc/>.

GPLv2 Disclaimer
For the avoidance of doubt, except that if any license choice
other than GPL or LGPL is available it will apply instead, 
Oracle elects to use only the General Public License version 2 
(GPLv2) at this time for any software where a choice of GPL 
license versions is made available with the language indicating 
that GPLv2 or any later version may be used, or where a choice 
of which version of the GPL is applied is otherwise unspecified.

For further information about MySQL or additional documentation, 
see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some Reference Manual sections of special interest:
- If you are migrating from an older version of MySQL, please 
  read the "Upgrading from..." section.
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading
  chapter.
- For the new features/bugfix history, see the MySQL Change History 
  appendix.

You can browse the MySQL Reference Manual online or download it 
in any of several formats at the URL given earlier in this file.
Source distributions include a local copy of the manual in the
Docs directory.