Add regression tests exercising more code paths in nodeLimit.c.

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

Commit: 3c8de95979008d67713429d858957c5c78c23d75
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-08-11T21:28:01Z
Releases: 10.0
Add regression tests exercising more code paths in nodeLimit.c.

Perusal of the code coverage report shows that the existing regression
test cases for LIMIT/OFFSET don't exercise the nodeLimit code paths
involving backwards scan, empty results, or null values of LIMIT/OFFSET.
Improve the coverage.

Files

PathChange+/−
src/test/regress/expected/limit.out modified +179 −0
src/test/regress/sql/limit.sql modified +42 −0