MySQL Forums
Forum List  »  Quality Assurance

Problems about Set Type ?
Posted by: qeoshy qi
Date: July 25, 2013 10:56PM

I come with some problems when using set type.

eg:
create table T (col set('1','2','3','4','5','6','7','8') not null);
insert into T values('1');
update T right join (select 'aaa' as col) a on a.col='aaa' set T.col=8;
The result of T.col is 8 ???!!!

but it performance normal when
create table T (col set('1','2','3','4','5','6','7','8'));
insert into T values('1');
update T right join (select 'aaa' as col) a on a.col='aaa' set T.col=8;
The result of T.col is 4.

I wonder why it is 8 when I use 'right join' and 'not null'?

Options: ReplyQuote


Subject
Views
Written By
Posted
Problems about Set Type ?
3056
July 25, 2013 10:56PM
1383
August 07, 2013 07:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.