typos....

This commit is contained in:
Robin Appelman 2012-01-16 02:22:23 +01:00
parent 011732a083
commit 757e6cd0aa

View File

@ -397,7 +397,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common
$db->loadModule('Datatype', null, true);
$type = $db->datatype->getTypeDeclaration($field['definition']);
if($type=='SERIAL PRIMARY KEY'){//not correct when altering a table, since serials arent a real type
$type='INTERGER';//use integer instead
$type='INTEGER';//use integer instead
}
$query = "ALTER $field_name TYPE $type USING CAST($field_name AS $type)";
$result = $db->exec("ALTER TABLE $name $query");