Skip to content

Commit

Permalink
Improve Oracle test, only pdo_oci is affected
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 14, 2022
1 parent 0897e0f commit 2eec89e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Schema/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ private function makePseudoRandomString(bool $isBinary, int $lengthBytes): strin
*/
public function testCharacterTypeFieldLong(string $type, bool $isBinary, int $lengthBytes): void
{
// remove once long multibyte Oracle CLOB stream read support is fixed in php-src/pdo_oci
// https://bugs.php.net/bug.php?id=60994
// https://github.com/php/php-src/pull/5233
if ($this->getDatabasePlatform() instanceof OraclePlatform && $type === 'text') {
// remove once long multibyte Oracle CLOB stream read support is fixed in pdo_oci ext (oci8 is NOT affected)
// https://github.com/php/php-src/pull/8018
if ($this->getDatabasePlatform() instanceof OraclePlatform
&& $this->db->connection->connection()->getNativeConnection() instanceof \PDO && $type === 'text') {
$lengthBytes = min($lengthBytes, 8190);
}

Expand Down

0 comments on commit 2eec89e

Please sign in to comment.