]> source.dussan.org Git - nextcloud-server.git/commitdiff
integer length 1 is not only used for boolean values
authorBart Visscher <bartv@thisnet.nl>
Sun, 17 Mar 2013 16:34:35 +0000 (17:34 +0100)
committerBart Visscher <bartv@thisnet.nl>
Sun, 17 Mar 2013 16:34:35 +0000 (17:34 +0100)
lib/db/mdb2schemareader.php

index 827323a5512d0d5564109010013d666d43d35c2c..53eb849d86a3817588e7a0f6f605a17c953ef4ca 100644 (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) {