Skip to content

Commit

Permalink
Complete phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 25, 2016
1 parent 4856010 commit 1c1d888
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/phpunit/PgsqlTest.php
Expand Up @@ -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;
}
}

0 comments on commit 1c1d888

Please sign in to comment.