summaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-16 02:20:29 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-16 02:20:29 +0100
commit011732a0835d04748514b3676f1b2f324fa2d922 (patch)
treed61f612a32518b3517aae0fdee57a7031f1eab84 /3rdparty
parentebe10870cfe3c59edb4b2924297b6e495977eea0 (diff)
downloadnextcloud-server-011732a0835d04748514b3676f1b2f324fa2d922.tar.gz
nextcloud-server-011732a0835d04748514b3676f1b2f324fa2d922.zip
small documentation improvement
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/MDB2/Driver/Manager/pgsql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/MDB2/Driver/Manager/pgsql.php b/3rdparty/MDB2/Driver/Manager/pgsql.php
index c99dd08e8ef..b2252bce1ca 100644
--- a/3rdparty/MDB2/Driver/Manager/pgsql.php
+++ b/3rdparty/MDB2/Driver/Manager/pgsql.php
@@ -396,8 +396,8 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common
}
$db->loadModule('Datatype', null, true);
$type = $db->datatype->getTypeDeclaration($field['definition']);
- if($type=='SERIAL PRIMARY KEY'){//not correct when altering a table
- $type='integer';//use this instead
+ if($type=='SERIAL PRIMARY KEY'){//not correct when altering a table, since serials arent a real type
+ $type='INTERGER';//use integer instead
}
$query = "ALTER $field_name TYPE $type USING CAST($field_name AS $type)";
$result = $db->exec("ALTER TABLE $name $query");