diff --git a/src/Sql/SqlPgsql.php b/src/Sql/SqlPgsql.php index 89d7c6059f..396e0869c9 100644 --- a/src/Sql/SqlPgsql.php +++ b/src/Sql/SqlPgsql.php @@ -101,7 +101,9 @@ public function dbExists(): bool $process = Drush::shell($sql_no_db->connect() . ' -t -c ' . $query, null, $this->getEnv()); $process->setSimulated(false); $process->run(); - return $process->isSuccessful(); + + return $process->isSuccessful() + && trim($process->getOutput()) === '1'; } public function queryFormat($query)