Yii Framework Forum: yum 0.8rc5 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

yum 0.8rc5 bug in yum 0.8rc5

#1 User is offline   kurrata 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 28-December 11

Posted 23 February 2012 - 08:24 AM

http://www.yiiframew...user-management
yum rc5 has this script for mysql
CREATE TABLE IF NOT EXISTS `translation` (
`message` varbinary(255) NOT NULL,
`translation` varchar(255) NOT NULL,
`language` varchar(5) NOT NULL,
`category` varchar(255) NOT NULL,
PRIMARY KEY (`message`,`language`,`category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; 


on older mysql versions like debian lenny has, max primary key size is 1000 bytes.
if the encoding in latin1 it is okey since they use 1 byte per char but utf8 uses 3 bytes to calculate maximal posible primery key size.
As result this query needs (255 +255 + 255)*3 = 2295 bytes size for primery key and yum can't be installed with installer.
You need to manually edit install script
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users