fix typo in last commit

This commit is contained in:
Ralf Becker 2015-08-05 08:37:56 +00:00
parent bee933496d
commit 18b9ff23f5

View File

@ -687,7 +687,7 @@ class schema_proc
in_array($data['type'], array('varchar', 'ascii')) &&
$old_table_def['fd'][$name]['precision'] > $data['precision'])
{
$value = "SUBSTRING($value FROM 1 FOR ".(int)$data['size'].')';
$value = "SUBSTRING($value FROM 1 FOR ".(int)$data['precision'].')';
}
// cast everything which is a different type
elseif($old_table_def['fd'][$name]['type'] != $data['type'] && ($type_translated = $this->TranslateType($data['type'])))