Skip to content

Commit

Permalink
add pgsql driver to test check
Browse files Browse the repository at this point in the history
  • Loading branch information
dwgebler committed Jul 8, 2023
1 parent 87e2c70 commit 4ad68e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Functional/SQL/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ public function testPostgreSQLJSONBQuestionOperator(): void
self::assertTrue($this->connection->fetchOne('SELECT \'{"a":null}\'::jsonb ?? :key', ['key' => 'a']));
}

/** test the REPLACE_PATTERNS change for ARRAY [ to ARRAY[ does not cause the mixed positional and named parameters error found prior to the fix */
public function testParametersInArrayConstructWithWhitespace(): void
{
if (! TestUtil::isDriverOneOf('pdo_pgsql')) {
self::markTestSkipped('This test requires the pdo_pgsql driver.');
if (! TestUtil::isDriverOneOf('pdo_pgsql', 'pgsql')) {
self::markTestSkipped('This test requires the pgsql or pdo_pgsql driver.');
}

$sql = 'SELECT * FROM (SELECT \'xyz\' AS x, \'{"foo":[1,2,3,4,5],"bar":true}\'::jsonb AS json_value) AS ' .
Expand Down

0 comments on commit 4ad68e9

Please sign in to comment.