mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Correctly quote SQL in SQLQueryTest (fixes Postgresql)
This commit is contained in:
parent
ff3b63f2a9
commit
e9d55fcaf9
@ -374,7 +374,7 @@ class SQLQueryTest extends SapphireTest {
|
|||||||
public function testAggregate() {
|
public function testAggregate() {
|
||||||
$query = new SQLQuery();
|
$query = new SQLQuery();
|
||||||
$query->setFrom('"SQLQueryTest_DO"');
|
$query->setFrom('"SQLQueryTest_DO"');
|
||||||
$query->setGroupBy("Common");
|
$query->setGroupBy('"Common"');
|
||||||
|
|
||||||
$queryClone = $query->aggregate('COUNT(*)', 'cnt');
|
$queryClone = $query->aggregate('COUNT(*)', 'cnt');
|
||||||
$result = $queryClone->execute();
|
$result = $queryClone->execute();
|
||||||
|
Loading…
Reference in New Issue
Block a user