diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-15 02:15:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-15 02:15:04 +0000 |
commit | 816ff27f60385d362898d8ac6523f043f888b1f5 (patch) | |
tree | 6805c1226f3c0673e7e59341c19e4409077b42c7 /src/backend/parser/parse_expr.c | |
parent | a69f9028b573e18f1e8b525dbe0f9fbaac28414c (diff) | |
download | postgresql-816ff27f60385d362898d8ac6523f043f888b1f5.tar.gz postgresql-816ff27f60385d362898d8ac6523f043f888b1f5.zip |
Reject zero or negative BY step in plpgsql integer FOR-loops, and behave
sanely if the loop value overflows int32 on the way to the end value.
Avoid useless computation of "SELECT 1" when BY is omitted. Avoid some
type-punning between Datum and int4 that dates from the original coding.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions