Skip to content
Permalink
Browse files

Fixed error in newer versions of postgres

  • Loading branch information...
lorenzo committed Oct 20, 2013
1 parent 61d2344 commit 6e7462f9c0fc7115eaeb79814fd06825a726bbe4
Showing with 2 additions and 2 deletions.
  1. +2 −2 Cake/Database/Schema/PostgresSchema.php
@@ -216,7 +216,7 @@ public function convertIndexDescription(Table $table, $row) {
*
*/
public function describeForeignKeySql($table, $config) {
$sql = 'SELECT
$sql = "SELECT
r.conname AS name,
r.confupdtype AS update_type,
r.confdeltype AS delete_type,
@@ -230,7 +230,7 @@ public function describeForeignKeySql($table, $config) {
AND n.nspname = ?
AND n.oid = c.relnamespace
)
AND r.contype = "f"';
AND r.contype = 'f'";
$schema = empty($config['schema']) ? 'public' : $config['schema'];
return [$sql, [$table, $schema]];

0 comments on commit 6e7462f

Please sign in to comment.
You can’t perform that action at this time.