Ticket #983 (closed defect: fixed)
postgresql export createSequenceSql is wrong
| Reported by: | wizhippo | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.11.0 |
| Component: | Attributes | Version: | 0.11.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | ||
| Status: | Has Patch: |
Description
in Export/Pgsql.php line 297 createSequenceSql actual performs the query instead of returning the sql.
the funciton should be
public function createSequenceSql($sequenceName, $start = 1, array $options = array())
{
$sequenceName = $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($sequenceName), true); return 'CREATE SEQUENCE ' . $sequenceName . ' INCREMENT 1' .
($start < 1 ? ' MINVALUE ' . $start : ) . ' START ' . $start;
}
Change History
Note: See
TracTickets for help on using
tickets.