Skip to content

Commit f6b9cb5

Browse files
committed
Skip test with MySQL
1 parent 0265761 commit f6b9cb5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/Manipulation/Traits/Explain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ trait Explain
3939
/**
4040
* EXPLAIN provides information about statements.
4141
*
42-
* @param string|null $option
42+
* @param string|null $option WARNING: This feature is MariaDB only. It is not compatible with MySQL.
4343
*
4444
* @see https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/analyze-and-explain-statements/explain
4545
*

tests/Manipulation/SelectTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ public function testExplain() : void
311311

312312
public function testExplainWithOption() : void
313313
{
314+
if (\getenv('DB_IMAGE') === 'mysql') {
315+
$this->markTestSkipped();
316+
}
314317
$results = $this->select->from('t1')->where('c1', '=', 1)->explain(Select::EXP_EXTENDED);
315318
foreach ($results as $result) {
316319
self::assertInstanceOf(Explain::class, $result);

0 commit comments

Comments
 (0)