integer length 1 is not only used for boolean values

This commit is contained in:
Bart Visscher 2013-03-17 17:34:35 +01:00
parent 82f0bcce30
commit d44f457d2d
1 changed files with 1 additions and 4 deletions

View File

@ -138,10 +138,7 @@ class OC_DB_MDB2SchemaReader {
}
if ($type == 'integer') {
$length = $options['length'];
if ($length == 1) {
$type = 'boolean';
}
else if ($length < 4) {
if ($length < 4) {
$type = 'smallint';
}
else if ($length > 4) {