From ab2037ab5d215220c7edbd0685f4f3b25d523258 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 5 Jul 2013 22:05:16 +0200 Subject: [PATCH] Only change integer type when the length is set --- lib/db/mdb2schemareader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/mdb2schemareader.php b/lib/db/mdb2schemareader.php index c506aa26521..4dc1fd4616d 100644 --- a/lib/db/mdb2schemareader.php +++ b/lib/db/mdb2schemareader.php @@ -156,7 +156,7 @@ class OC_DB_MDB2SchemaReader { unset($options['default']); } } - if ($type == 'integer') { + if ($type == 'integer' && isset($options['length'])) { $length = $options['length']; if ($length < 4) { $type = 'smallint'; -- 2.39.5