OSDN Git Service

Fix LIMIT/OFFSET for null limit values. This worked before 8.2 but was broken
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Dec 2006 21:40:07 +0000 (21:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Dec 2006 21:40:07 +0000 (21:40 +0000)
commit406d028a9bb1a531d8e413918709f8d99f5c7783
tree82fe4ff467583c7c22467e8880d670034964e982
parent75330c3205648fc4844cbd658a16a5639f4541ee
Fix LIMIT/OFFSET for null limit values.  This worked before 8.2 but was broken
by the change to make limit values int8 instead of int4.  (Specifically, you
can do DatumGetInt32 safely on a null value, but not DatumGetInt64.)  Per
bug #2803 from Greg Johnson.
src/backend/executor/nodeLimit.c