pgsql: Cleanup the usage of ScanDirection: use the symbolic names for

From: neilc(at)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Cleanup the usage of ScanDirection: use the symbolic names for
Date: 2006-02-21 23:01:54
Message-ID: 20060221230154.67F4C9DCB61@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Cleanup the usage of ScanDirection: use the symbolic names for the
possible ScanDirection alternatives rather than magic numbers
(-1, 0, 1). Also, use the ScanDirection macros in a few places
rather than directly checking whether `dir == ForwardScanDirection'
and the like. Per patch from James William Pye. His patch also
changed ScanDirection to be a "char" rather than an enum, which
I haven't applied.

Modified Files:
--------------
pgsql/src/backend/access/heap:
heapam.c (r1.206 -> r1.207)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/heap/heapam.c.diff?r1=1.206&r2=1.207)
pgsql/src/backend/executor:
execMain.c (r1.266 -> r1.267)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/execMain.c.diff?r1=1.266&r2=1.267)
pgsql/src/backend/tcop:
pquery.c (r1.98 -> r1.99)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tcop/pquery.c.diff?r1=1.98&r2=1.99)

Browse pgsql-committers by date

  From Date Subject
Next Message User H-saito 2006-02-22 11:30:46 psqlodbc - psqlodbc: Standard build patch.(libpq,ssleay32) This is
Previous Message Tom Lane 2006-02-21 18:01:43 pgsql: Fix old pg_dump oversight: default values for domains really need