Skip to content

Commit

Permalink
Merge tag '2.11.3' into oracle122
Browse files Browse the repository at this point in the history
Release [2.11.3](https://github.com/doctrine/dbal/milestone/83)

2.11.3
======

- Total issues resolved: **1**
- Total pull requests resolved: **1**
- Total contributors: **2**

Bug,PostgreSQL,Regression,Schema Managers
-----------------------------------------

 - [4364: Move the logic out of the assertion](doctrine#4364) thanks to @morozov and @andreybolonin

# gpg: Signature made Tue Oct 20 16:53:41 2020
# gpg:                using DSA key 1BEDEE0A820BC30D858F9F0C2C3A645671828132
# gpg: Can't check signature: No public key
  • Loading branch information
rgrellmann committed Mar 7, 2021
2 parents 406efd5 + fb5d5f2 commit 662e367
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,8 @@ protected function _getPortableTableForeignKeyDefinition($tableForeignKey)
$onDelete = $match[1];
}

assert(preg_match(
'/FOREIGN KEY \((.+)\) REFERENCES (.+)\((.+)\)/',
$tableForeignKey['condef'],
$values
) !== 0);
$result = preg_match('/FOREIGN KEY \((.+)\) REFERENCES (.+)\((.+)\)/', $tableForeignKey['condef'], $values);
assert($result === 1);

// PostgreSQL returns identifiers that are keywords with quotes, we need them later, don't get
// the idea to trim them here.
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Version
/**
* Current Doctrine Version.
*/
public const VERSION = '2.11.2';
public const VERSION = '2.11.3';

/**
* Compares a Doctrine version with the current one.
Expand Down

0 comments on commit 662e367

Please sign in to comment.