summaryrefslogtreecommitdiff
path: root/bdb/db185
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2007-01-22 15:14:38 +0300
committerunknown <evgen@moonbone.local>2007-01-22 15:14:38 +0300
commitdf0a08964718cf9ff8189e16fbee75397784596e (patch)
tree5adfda1a09692651c167ac57baa15ffbcaddd64a /bdb/db185
parentc6d4b94dd452d31f49430321a16690f7bec06d5c (diff)
downloadmariadb-git-df0a08964718cf9ff8189e16fbee75397784596e.tar.gz
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.
Diffstat (limited to 'bdb/db185')
0 files changed, 0 insertions, 0 deletions