From 3a384d0dedbc5c3948f8e44c213c7dd0e9f3bfe6 Mon Sep 17 00:00:00 2001 From: Sergey Makinen Date: Mon, 15 May 2017 20:53:24 +0300 Subject: [PATCH] Disable column comment test on old CUBRID --- tests/framework/db/cubrid/QueryBuilderTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/framework/db/cubrid/QueryBuilderTest.php b/tests/framework/db/cubrid/QueryBuilderTest.php index 91b1274..1795661 100644 --- a/tests/framework/db/cubrid/QueryBuilderTest.php +++ b/tests/framework/db/cubrid/QueryBuilderTest.php @@ -51,4 +51,15 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest $sql = $qb->resetSequence('item', 4); $this->assertEquals($expected, $sql); } + + public function testCommentColumn() + { + $version = $this->getQueryBuilder(false)->db->getSlavePdo()->getAttribute(\PDO::ATTR_SERVER_VERSION); + if (version_compare($version, '10.0', '<')) { + $this->markTestSkipped('Comments on columns are supported starting with CUBRID 10.0.'); + return; + } + + parent::testCommentColumn(); + } }