Skip to content

Commit

Permalink
Issue doctrine#950: Fixed cardinality issue where subquery could retu…
Browse files Browse the repository at this point in the history
…rn more than than one row in getListTableForeignKeysSQL function
  • Loading branch information
jwilson-cee committed Jan 2, 2019
1 parent f28f3a8 commit 0a55ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function getListTableForeignKeysSQL($table, $database = null)
{
return 'SELECT quote_ident(r.conname) as conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
FROM pg_catalog.pg_constraint r
WHERE r.conrelid =
WHERE r.conrelid IN
(
SELECT c.oid
FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
Expand Down

0 comments on commit 0a55ce6

Please sign in to comment.