Skip to content
Snippets Groups Projects
Commit 1c1d8887 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Complete phpunit

parent 48560104
Branches
No related tags found
No related merge requests found
...@@ -162,6 +162,12 @@ class PgsqlTest extends PHPUnit_Framework_TestCase ...@@ -162,6 +162,12 @@ class PgsqlTest extends PHPUnit_Framework_TestCase
print __METHOD__." result=".$result."\n"; print __METHOD__." result=".$result."\n";
$this->assertEquals($result, $sql.' DEFERRABLE INITIALLY IMMEDIATE;'); $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; return $result;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment