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
unknown df0a089647 Bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table.
When inserting into a join-based view the update fields from the ON DUPLICATE
KEY UPDATE wasn't checked to be from the table being inserted into and were
silently ignored.

The new check_view_single_update() function is added to check that
insert/update fields are being from the same single table of the view.


sql/sql_insert.cc:
  Bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table.
  The new check_view_single_update() function is added to check that
  insert/update fields are being from the same single table of the view.
mysql-test/r/insert.result:
  Added a test case for bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table.
mysql-test/t/insert.test:
  Added a test case for bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table.
2007-01-22 15:14:38 +03:00
bdb my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
BitKeeper Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0 2006-11-28 20:59:57 +01:00
BUILD Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-01 05:35:10 +01:00
client Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-01 05:35:10 +01:00
cmd-line-utils Many files: 2006-12-23 20:17:15 +01:00
config/ac-macros ha_innodb.m4, Makefile.am, ha_ndbcluster.m4, Makefile.shared, ha_berkeley.m4: 2006-11-27 21:15:25 +01:00
dbug my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
Docs my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
extra my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
heap my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
include my_global.h: 2007-01-04 23:18:04 +01:00
innobase Merge mysql.com:/home/kent/bk/tmp/mysql-4.1-build 2007-01-01 10:51:44 +01:00
libmysql my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysql_r my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysqld Merge mysql.com:/d2/hf/common/my41-common 2007-01-03 02:43:27 +04:00
man my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
myisam Merge mysql.com:/d2/hf/common/my50-common 2007-01-03 11:13:01 +04:00
myisammrg my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql-test Bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table. 2007-01-22 15:14:38 +03:00
mysys my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
ndb Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0 2006-12-31 01:04:07 +01:00
netware Many files: 2006-12-23 20:17:15 +01:00
os2 my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
pstack my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
regex my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
scripts Merge mysql.com:/home/kent/bk/tmp/mysql-4.1-build 2007-01-05 16:57:23 +01:00
server-tools my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql Bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table. 2007-01-22 15:14:38 +03:00
sql-bench my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql-common my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
SSL my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
strings my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
support-files support-files/MySQL-shared-compat.spec.sh : Dummy, irrelevant change - just trigger a new build. 2007-01-10 00:36:41 +01:00
tests my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
tools my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
VC++Files Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-01 05:35:10 +01:00
vio my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
win my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
zlib my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
.bzrignore Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0 2006-12-04 19:28:38 +01:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
configure.in configure.in: 2007-01-10 14:50:09 +01:00
COPYING - manual.texi will be replaced with a manual written in DocBook/XML. This ChangeSet removes all 2005-04-13 11:51:38 +02:00
Makefile.am my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
README make_binary_distribution.sh: 2006-11-07 22:26:37 +01:00

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


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 manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- 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 Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.