Skip to content

Commit

Permalink
Merge pull request #10797 from SidRoberts/postgres-createtable-primary
Browse files Browse the repository at this point in the history
When creating tables in Postgres, inline PRIMARY keys are now escaped properly
  • Loading branch information
andresgutierrez committed Aug 14, 2015
2 parents d69a8e2 + ca8f18f commit 7c7acd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phalcon/db/dialect/postgresql.zep
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class Postgresql extends Dialect
let createLines[] = columnLine;
}
if !empty primaryColumns {
let createLines[] = "PRIMARY KEY (" . implode(",",primaryColumns) . ")";
let createLines[] = "PRIMARY KEY (" . this->getColumnList(primaryColumns) . ")";
}

/**
Expand Down

0 comments on commit 7c7acd5

Please sign in to comment.