mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
More postgres tests passing again
This commit is contained in:
parent
93d6cd4ad6
commit
74ba030e7c
2 changed files with 4 additions and 3 deletions
|
@ -419,8 +419,10 @@ class SchemaShell extends Shell {
|
|||
return false;
|
||||
}
|
||||
$error = null;
|
||||
if (!$db->execute($sql)) {
|
||||
$error = $table . ': ' . $db->lastError();
|
||||
try {
|
||||
$db->execute($sql);
|
||||
} catch (PDOException $e) {
|
||||
$error = $table . ': ' . $e->getMessage();
|
||||
}
|
||||
|
||||
$Schema->after(array($event => $table, 'errors' => $error));
|
||||
|
|
|
@ -678,7 +678,6 @@ class DboPostgresTest extends CakeTestCase {
|
|||
));
|
||||
|
||||
$this->Dbo->rawQuery($this->Dbo->createSchema($schema1));
|
||||
$this->Dbo->rawQuery($this->Dbo->dropSchema($schema1));
|
||||
|
||||
$schema2 = new CakeSchema(array(
|
||||
'name' => 'AlterTest2',
|
||||
|
|
Loading…
Reference in a new issue