diff --git a/tests/cases/Database/Base.php b/tests/cases/Database/Base.php
index 46ce64e1..428b80c0 100644
--- a/tests/cases/Database/Base.php
+++ b/tests/cases/Database/Base.php
@@ -134,7 +134,10 @@ abstract class Base extends \JKingWeb\Arsse\Test\AbstractTest{
public function compareExpectations(array $expected): bool {
foreach ($expected as $table => $info) {
- $cols = implode(",", array_keys($info['columns']));
+ $cols = array_map(function($v) {
+ return '"'.str_replace('"', '""', $v).'"';
+ }, array_keys($info['columns']));
+ $cols = implode(",", $cols);
$types = $info['columns'];
$data = static::$drv->prepare("SELECT $cols from $table")->run()->getAll();
$cols = array_keys($info['columns']);
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index d4964100..29fe5e48 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -66,7 +66,7 @@
cases/Db/SQLite3/TestDatabase.php
cases/Db/SQLite3PDO/TestDatabase.php
-
+ cases/Db/PostgreSQL/TestDatabase.php
cases/REST/TestTarget.php