Oh lord.. -.-
authorKiv4h <jeffrey.reichardt@googlemail.com>
Sun, 30 Dec 2012 16:05:26 +0000 (17:05 +0100)
committerKiv4h <jeffrey.reichardt@googlemail.com>
Sun, 30 Dec 2012 16:05:26 +0000 (17:05 +0100)
wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php
wcfsetup/install/files/lib/system/database/editor/PostgreSQLDatabaseEditor.class.php

index 74d113c1e1a709411bdd38b7c80573f15fec6564..135099dc3058b7aeab89fcb70885cb5659ef55cc 100644 (file)
@@ -39,7 +39,7 @@ class MySQLDatabaseEditor extends DatabaseEditor {
                while ($row = $statement->fetchArray()) {
                        $typeMatches = Regex::compile('([a-z]+)\(([0-9]+)\)', Regex::CASE_INSENSITIVE)->match($row['Type']);
 
-               $columns[] = array('name' => $row['Field'], 'data' => array(
+                       $columns[] = array('name' => $row['Field'], 'data' => array(
                                'type' => $typeMatches[1],
                                'length' => $typeMatches[2],
                                'notNull' => (($row['Null'] == 'YES') ? true : false),
@@ -47,7 +47,7 @@ class MySQLDatabaseEditor extends DatabaseEditor {
                                'default' => $row['Default'],
                                'autoIncrement' => ($row['Extra'] == 'auto_increment' ? true : false)
                        ));
-               }
+               }
                
                return $columns;
        }
index 3fc688a87dff307c17071d6b16cf0db2eba07ec5..51bf2519fb65b173d5e869c8774ba1250620b524 100644 (file)
@@ -49,7 +49,7 @@ class PostgreSQLDatabaseEditor extends DatabaseEditor {
                $statement = $this->dbObj->prepareStatement($sql);
                $statement->execute(array($tableName));
                while ($row = $statement->fetchArray()) {
-               $columns[] = array('name' => $row['attname'], 'data' => array(
+                       $columns[] = array('name' => $row['attname'], 'data' => array(
                                'type' => $row['typname'],
                                'length' => $row['attlen'],
                                'notNull' => $row['attnotnull'],
@@ -57,7 +57,7 @@ class PostgreSQLDatabaseEditor extends DatabaseEditor {
                                'default' => $row['adsrc'],
                                'autoIncrement' => ($row['contype'] == 'p')
                        ));
-               }
+               }
                
                return $columns;
        }