Ticket #984 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

postgresql export createSequenceSql is wrong

Reported by: wizhippo Owned by: jwage
Priority: major Milestone:
Component: Import/Export 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 2 years ago by romanb

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

duplicate of #983

Changed 2 years ago by anonymous

  • milestone 0.11.2 deleted

Milestone 0.11.2 deleted

Note: See TracTickets for help on using tickets.