mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#27069 set with identical elements are created
added the check for unique elements count in SET mysql-test/r/type_set.result: test result mysql-test/t/type_set.test: test case sql/field.cc: removed the check for elements count in SET sql/sql_table.cc: added the check for unique elements count in SET
This commit is contained in:
@ -66,3 +66,22 @@ ss
|
||||
ue
|
||||
ue
|
||||
DROP TABLE t1;
|
||||
create table t1(f1
|
||||
set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17',
|
||||
'18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
|
||||
'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49',
|
||||
'50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','128'));
|
||||
ERROR HY000: Too many strings for column f1 and SET
|
||||
create table t1(f1
|
||||
set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17',
|
||||
'18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
|
||||
'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49',
|
||||
'50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','1'));
|
||||
Warnings:
|
||||
Note 1291 Column 'f1' has duplicated value '1' in SET
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','1') default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
|
@ -39,3 +39,20 @@ SELECT c FROM t1 ORDER BY concat(c);
|
||||
DROP TABLE t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
# Bug#27069 set with identical elements are created
|
||||
#
|
||||
--error 1097
|
||||
create table t1(f1
|
||||
set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17',
|
||||
'18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
|
||||
'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49',
|
||||
'50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','128'));
|
||||
create table t1(f1
|
||||
set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17',
|
||||
'18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
|
||||
'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49',
|
||||
'50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','1'));
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user