From 1c1d8887b14811a34db62a2e5869703a2165c07c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Jun 2016 02:45:11 +0200 Subject: [PATCH] Complete phpunit --- test/phpunit/PgsqlTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/phpunit/PgsqlTest.php b/test/phpunit/PgsqlTest.php index 04693c017ede3..f25ea3ea72f8e 100644 --- a/test/phpunit/PgsqlTest.php +++ b/test/phpunit/PgsqlTest.php @@ -162,6 +162,12 @@ public function testConvertSQLFromMysql() print __METHOD__." result=".$result."\n"; $this->assertEquals($result, $sql.' DEFERRABLE INITIALLY IMMEDIATE;'); + // Create a constraint + $sql='SELECT a.b, GROUP_CONCAT(a.c) FROM table GROUP BY a.b'; + $result=DoliDBPgsql::convertSQLFromMysql($sql); + print __METHOD__." result=".$result."\n"; + $this->assertEquals($result, "SELECT a.b, STRING_AGG(a.c, ',') FROM table GROUP BY a.b"); + return $result; } }