зеркало из https://github.com/github/vitess-gh.git
bug fix: pk column validation for row cache was incorrect.
This commit is contained in:
Родитель
c09ae2edb1
Коммит
f7bb1261bb
|
@ -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)
|
relog.Info("Table %s has no primary key. Will not be cached.", self.Name)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for col := range self.PKColumns {
|
for _, col := range self.PKColumns {
|
||||||
if self.Columns[col].Category == schema.CAT_OTHER {
|
if self.Columns[col].Category == schema.CAT_OTHER {
|
||||||
relog.Info("Table %s pk has unsupported column types. Will not be cached.", self.Name)
|
relog.Info("Table %s pk has unsupported column types. Will not be cached.", self.Name)
|
||||||
return
|
return
|
||||||
|
|
Загрузка…
Ссылка в новой задаче