Skip to content

Commit

Permalink
handle tinyints as integers when using postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
paca70 committed Apr 27, 2005
1 parent 134742c commit 9c85135
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/datalib.php
Expand Up @@ -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';
Expand Down

0 comments on commit 9c85135

Please sign in to comment.