bug fix: pk column validation for row cache was incorrect.

This commit is contained in:
Sugu Sougoumarane 2012-05-08 16:14:43 -07:00
Родитель c09ae2edb1
Коммит f7bb1261bb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -151,7 +151,7 @@ func (self *TableInfo) initRowCache(conn *DBConnection, tableType string, create
relog.Info("Table %s has no primary key. Will not be cached.", self.Name)
return
}
for col := range self.PKColumns {
for _, col := range self.PKColumns {
if self.Columns[col].Category == schema.CAT_OTHER {
relog.Info("Table %s pk has unsupported column types. Will not be cached.", self.Name)
return