1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/mysql-test/t
Alexander Barkov e5dfe04da0 MDEV-11146 SP variables of the SET data type erroneously allow values with comma
There was a duplicate code to create TYPELIB from List<String>:
- In typelib() and mysql_prepare_create_table(), which was used to initialize
  table fields.
- create_typelib() and sp_prepare_create_field(), which was used to initialize
  SP variables.
create_typelib() was incomplete and didn't check for wrong SET values.

Fix:
- Moving the code from create_typelib() and mysql_prepare_create_field()
  to news methods Column_definition::create_interval_from_interval_list()
  and Column_definition::prepare_interval_field().
- Moving the code from calculate_interval_lengths() in sql_table.cc
  to a new method Column_definition::calculate_interval_lengths(), as it's now
  needed only in Column_definition::create_interval_from_interval_list()
- Reusing the new method Column_definition::prepare_interval_field() in both
  mysql_prepare_create_table() and sp_prepare_create_field(), instead of the
  old duplicate code pieces
- Removing global functions typelib() and create_typelib()

This patch also fixes:
MDEV-11155 Bad error message when creating a SET column with comma and non-ASCII characters
The problem was that ErrCongString() was called with a wrong "charset" parameter.
2016-12-16 17:31:40 +04:00
..
2015-06-02 22:07:47 +02:00
2016-09-09 08:33:08 +02:00
2015-05-04 22:00:24 +02:00
2016-06-28 22:01:55 +02:00
2016-05-04 15:23:26 +02:00
2016-09-30 17:40:42 -07:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-06-30 16:38:05 +02:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-02-23 21:35:05 +01:00
2016-06-28 22:01:55 +02:00
2016-05-04 15:23:26 +02:00
2016-06-30 11:43:02 +02:00
2016-06-30 11:43:02 +02:00
2016-06-30 11:43:02 +02:00
2015-10-12 00:37:58 +02:00
2016-06-28 22:01:55 +02:00
2016-09-09 08:33:08 +02:00
2016-09-09 08:33:08 +02:00
2016-06-30 11:43:02 +02:00
2016-09-09 08:33:08 +02:00
2015-05-04 22:00:24 +02:00
2016-06-28 22:01:55 +02:00
2014-10-15 22:42:08 +02:00
2014-10-29 15:20:46 +03:00
2016-09-15 15:31:28 +02:00
2016-09-09 08:33:08 +02:00
2016-06-21 14:11:02 +02:00
2015-05-04 22:00:24 +02:00
2016-09-10 16:04:44 +02:00
2016-08-10 19:19:05 +02:00
2016-06-30 16:38:05 +02:00
2016-07-13 12:09:59 +02:00
2015-06-16 23:55:56 +02:00
2016-08-25 12:40:09 +02:00
2015-05-08 11:20:43 +02:00
2015-11-19 15:52:14 +01:00
2016-11-21 10:33:39 -08:00
2016-06-30 11:43:02 +02:00
2016-09-09 08:33:08 +02:00
2016-08-25 12:40:09 +02:00
2016-06-30 11:43:02 +02:00
2015-11-18 22:03:02 +01:00
2016-09-24 15:12:34 +02:00
2016-02-23 21:35:05 +01:00