]> granicus.if.org Git - postgresql/commit
Cleanup the usage of ScanDirection: use the symbolic names for the
authorNeil Conway <neilc@samurai.com>
Tue, 21 Feb 2006 23:01:54 +0000 (23:01 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 21 Feb 2006 23:01:54 +0000 (23:01 +0000)
commit737651f6bebe0cefded367590bd78671af381670
tree61a6ce9dfdb991b65457ad41ac45e3d2e0028a71
parent3666260ffd455ac1847ef04cc39b5b00ef760961
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.
src/backend/access/heap/heapam.c
src/backend/executor/execMain.c
src/backend/tcop/pquery.c