Manually correct remaining casts.

This commit is contained in:
euromark 2014-09-10 16:40:22 +02:00
parent 04ef39217f
commit e3dc51bb68
2 changed files with 3 additions and 3 deletions

View file

@ -493,7 +493,7 @@ class Mysql extends DboSource {
if ($idx->Index_type === 'FULLTEXT') { if ($idx->Index_type === 'FULLTEXT') {
$index[$idx->Key_name]['type'] = strtolower($idx->Index_type); $index[$idx->Key_name]['type'] = strtolower($idx->Index_type);
} else { } else {
$index[$idx->Key_name]['unique'] = intval($idx->Non_unique == 0); $index[$idx->Key_name]['unique'] = (int)($idx->Non_unique == 0);
} }
} else { } else {
if (!empty($index[$idx->Key_name]['column']) && !is_array($index[$idx->Key_name]['column'])) { if (!empty($index[$idx->Key_name]['column']) && !is_array($index[$idx->Key_name]['column'])) {

View file

@ -219,10 +219,10 @@ class Postgres extends DboSource {
} elseif ($c->type === 'uuid') { } elseif ($c->type === 'uuid') {
$length = 36; $length = 36;
} else { } else {
$length = intval($c->oct_length); $length = (int)$c->oct_length;
} }
} elseif (!empty($c->char_length)) { } elseif (!empty($c->char_length)) {
$length = intval($c->char_length); $length = (int)$c->char_length;
} else { } else {
$length = $this->length($c->type); $length = $this->length($c->type);
} }