From d07fd39f7ee2fefa2164348eaa8e15339bcdf3ab Mon Sep 17 00:00:00 2001
From: gevik <gevikb@gmail.com>
Date: Fri, 7 Jun 2013 22:54:04 +0200
Subject: [PATCH] Removed false exception catching.
---
framework/yii/db/pgsql/Schema.php | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/framework/yii/db/pgsql/Schema.php b/framework/yii/db/pgsql/Schema.php
index 80a7e33..50d01aa 100644
--- a/framework/yii/db/pgsql/Schema.php
+++ b/framework/yii/db/pgsql/Schema.php
@@ -97,7 +97,7 @@ class Schema extends \yii\db\Schema
$table->schemaName = $this->defaultSchema;
}
}
-
+
/**
* Quotes a table name for use in a query.
* A simple table name has no schema prefix.
@@ -121,7 +121,7 @@ class Schema extends \yii\db\Schema
return $table;
}
}
-
+
/**
* Collects the foreign key column details for the given table.
* @param TableSchema $table the table metadata
@@ -158,11 +158,7 @@ where
and ns.nspname={$tableSchema}
SQL;
- try {
- $constraints = $this->db->createCommand($sql)->queryAll();
- } catch (\Exception $e) {
- return false;
- }
+ $constraints = $this->db->createCommand($sql)->queryAll();
foreach ($constraints as $constraint) {
$columns = explode(',', $constraint['columns']);
$fcolumns = explode(',', $constraint['foreign_columns']);
@@ -172,7 +168,6 @@ SQL;
}
$table->foreignKeys[] = $citem;
}
- return true;
}
/**
--
libgit2 0.27.1