Skip site navigation (1) Skip section navigation (2)

pgsql: Fix LIMIT/OFFSET for null limit values.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix LIMIT/OFFSET for null limit values.
Date: 2006-12-03 21:40:07
Message-ID: 20061203214007.4A5719FA265@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/executor:
        nodeLimit.c (r1.27 -> r1.28)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeLimit.c.diff?r1=1.27&r2=1.28)

pgsql-committers by date

Next:From: Tom LaneDate: 2006-12-03 21:40:13
Subject: pgsql: Fix LIMIT/OFFSET for null limit values.
Previous:From: User AmDate: 2006-12-03 21:10:14
Subject: press - pr: remove the broken link to the local web site (RO presskit)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group