aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-07-15 02:15:04 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-07-15 02:15:04 +0000
commit816ff27f60385d362898d8ac6523f043f888b1f5 (patch)
tree6805c1226f3c0673e7e59341c19e4409077b42c7 /src/backend/parser/parse_expr.c
parenta69f9028b573e18f1e8b525dbe0f9fbaac28414c (diff)
downloadpostgresql-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