Fix fatal error when using index hint with mysqli, mysqli_innodb, etc.

This commit is contained in:
Kijin Sung 2018-01-04 12:07:45 +09:00
parent ba1942a65d
commit e0d7ae3641

View file

@ -37,7 +37,7 @@ class HintTableTag extends TableTag
$dbType = ucfirst(Context::getDBType());
$result = sprintf('new %sTableWithHint(\'%s\'%s, array('
, $dbType == 'Mysqli' ? 'Mysql' : $dbType
, starts_with('mysql', $dbType, false) ? 'Mysql' : $dbType
, $dbParser->escape($this->name)
, $this->alias ? ', \'' . $dbParser->escape($this->alias) . '\'' : ', null'
//, ', \'' . $dbParser->escape($this->index->name) .'\', \'' . $this->index->type .'\''