handle tinyints as integers when using postgresql

This commit is contained in:
paca70 2005-04-27 19:24:48 +00:00
parent 134742c2e2
commit 9c8513599b

View file

@ -259,6 +259,7 @@ function table_column($table, $oldfield, $field, $type='integer', $size='10',
$oldfield = '"'. $oldfield .'"';
switch (strtolower($type)) {
case 'tinyint':
case 'integer':
if ($size <= 4) {
$type = 'INT2';