summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-03-17 17:34:35 +0100
committerBart Visscher <bartv@thisnet.nl>2013-03-17 17:34:35 +0100
commitd44f457d2d08ed72354a39e0cb8c34c829e83ecb (patch)
tree0323034e35965a0d33569f42d7dd6ae9854826a2 /lib
parent82f0bcce30329df723001b0d08c62d4f0af3afc1 (diff)
downloadnextcloud-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.php5
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) {