ALTER SEQUENCE RESTART did the wrong thing if sequence last_value was

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2098ec6e3731326e689fcd5ecfbdd536b2e16ab3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-04-06T16:39:30Z
Releases: 8.0.0
ALTER SEQUENCE RESTART did the wrong thing if sequence last_value was
equal to the desired restart value (must clear is_called, did not).
Per bug report #1127 from Piotr Konieczny.

Files

PathChange+/−
src/backend/commands/sequence.c modified +12 −21