Ticket #983 (closed defect: fixed)

Opened 15 months ago

Last modified 14 months ago

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

Changed 14 months ago by jwage

  • milestone changed from 0.11.2 to 0.11.0

Changed 14 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

(In [4321]) fixes #983

Note: See TracTickets for help on using tickets.