diff options
author | Neil Conway <neilc@samurai.com> | 2006-02-21 23:01:54 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-02-21 23:01:54 +0000 |
commit | 737651f6bebe0cefded367590bd78671af381670 (patch) | |
tree | 61a6ce9dfdb991b65457ad41ac45e3d2e0028a71 /src/backend/executor/execMain.c | |
parent | 3666260ffd455ac1847ef04cc39b5b00ef760961 (diff) | |
download | postgresql-737651f6bebe0cefded367590bd78671af381670.tar.gz postgresql-737651f6bebe0cefded367590bd78671af381670.zip |
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.
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r-- | src/backend/executor/execMain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 99c3bca0a9a..57570a5cc0c 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.266 2006/02/19 00:04:26 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.267 2006/02/21 23:01:54 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -218,7 +218,7 @@ ExecutorRun(QueryDesc *queryDesc, /* * run plan */ - if (direction == NoMovementScanDirection) + if (ScanDirectionIsNoMovement(direction)) result = NULL; else result = ExecutePlan(estate, |