1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/sql
unknown e14c9c5d9c Fixed bug #16510: Updating field named like '*name' caused server crash.
When setup_fields() function finds field named '*' it expands it to the list
of all table fields. It does so by checking that the first char of
field_name is '*', but it doesn't checks that the '* is the only char.
Due to this, when updating table with a field named like '*name', such field
is wrongly treated as '*' and expanded. This leads to making list of fields
to update being longer than list of the new values. Later, the fill_record() 
function crashes by dereferencing null when there is left fields to update,
but no more values.

Added check in the setup_fields() function which ensures that the field
expanding will be done only when '*' is the only char in the field name.


mysql-test/t/update.test:
  Added test case for bug#16510: Updating field named like '*name' caused server crash
mysql-test/r/update.result:
  Added test case for bug#16510: Updating field named like '*name' caused server crash
sql/sql_base.cc:
  Fixed bug #16510: Updating field named like '*name' caused server crash.
  Added check in the setup_fields() function which ensures that the field
  expanding will be done only when '*' is the only char in the field name.
2006-01-23 21:51:32 +03:00
..
2005-05-07 15:11:31 +02:00
2003-04-23 21:52:16 +03:00
2003-12-30 13:14:21 +02:00
2003-12-30 13:14:21 +02:00
2003-12-30 13:14:21 +02:00
2005-03-03 21:13:33 +01:00
2003-12-30 13:14:21 +02:00
2003-12-30 13:14:21 +02:00
2003-12-30 13:14:21 +02:00
2004-11-26 02:31:22 +02:00
2003-08-20 16:25:44 +03:00
2005-10-13 17:41:55 +03:00
2004-12-11 19:59:09 +03:00
2003-12-16 13:20:17 +02:00
2005-11-29 19:17:39 +01:00
2004-03-25 22:05:09 +02:00
2004-08-11 23:24:36 +01:00
2005-08-29 12:08:04 -05:00
2005-07-26 17:55:58 +03:00
2003-12-30 13:14:21 +02:00
2005-06-03 11:16:37 +02:00
2003-04-23 21:52:16 +03:00
2004-12-11 15:51:52 +03:00
2003-12-02 21:05:40 +03:00
2005-05-14 17:08:43 +03:00
2003-10-29 14:23:35 +01:00