Skip to content

Commit

Permalink
Fixed error in newer versions of postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Oct 20, 2013
1 parent 61d2344 commit 6e7462f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cake/Database/Schema/PostgresSchema.php
Expand Up @@ -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,
Expand All @@ -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]];
Expand Down

0 comments on commit 6e7462f

Please sign in to comment.