Skip to content

Commit

Permalink
Merge pull request #101 from owncloud/pgsql-altertable-keyword-escaping
Browse files Browse the repository at this point in the history
Fix escaping of column name for specific alter table case
  • Loading branch information
Vincent Petry committed Jul 1, 2014
2 parents 797bd8a + 58308ec commit 6ece897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public function getAlterTableSQL(TableDiff $diff)
}

if ($columnDiff->hasChanged('length')) {
$query = 'ALTER ' . $column->getName() . ' TYPE ' . $column->getType()->getSqlDeclaration($column->toArray(), $this);
$query = 'ALTER ' . $oldColumnName . ' TYPE ' . $column->getType()->getSqlDeclaration($column->toArray(), $this);
$sql[] = 'ALTER TABLE ' . $diff->name . ' ' . $query;
}
}
Expand Down
1 change: 1 addition & 0 deletions patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Patches:

- remove dompdf from phpdocx, because we already ship dompdf in the 3rdparty's root folder (see 3ae4904 and e1e3207)
- some external entity patches from https://github.com/owncloud/3rdparty/pull/74 - they should get superseeded by updating the affected libraries.
- Doctrine: fix postgres column escaping when using reserved keyword: https://github.com/doctrine/dbal/pull/627

0 comments on commit 6ece897

Please sign in to comment.