diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-03-17 17:34:35 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-03-17 17:34:35 +0100 |
commit | d44f457d2d08ed72354a39e0cb8c34c829e83ecb (patch) | |
tree | 0323034e35965a0d33569f42d7dd6ae9854826a2 /lib | |
parent | 82f0bcce30329df723001b0d08c62d4f0af3afc1 (diff) | |
download | nextcloud-server-d44f457d2d08ed72354a39e0cb8c34c829e83ecb.tar.gz nextcloud-server-d44f457d2d08ed72354a39e0cb8c34c829e83ecb.zip |
integer length 1 is not only used for boolean values
Diffstat (limited to 'lib')
-rw-r--r-- | lib/db/mdb2schemareader.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/db/mdb2schemareader.php b/lib/db/mdb2schemareader.php index 827323a5512..53eb849d86a 100644 --- a/lib/db/mdb2schemareader.php +++ b/lib/db/mdb2schemareader.php @@ -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) { |