mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Change TRUE/FALSE to true/false
The lower case spellings are C and C++ standard and are used in most parts of the PostgreSQL sources. The upper case spellings are only used in some files/modules. So standardize on the standard spellings. The APIs for ICU, Perl, and Windows define their own TRUE and FALSE, so those are left as is when using those APIs. In code comments, we use the lower-case spelling for the C concepts and keep the upper-case spelling for the SQL concepts. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -540,8 +540,8 @@ _bt_start_array_keys(IndexScanDesc scan, ScanDirection dir)
|
||||
/*
|
||||
* _bt_advance_array_keys() -- Advance to next set of array elements
|
||||
*
|
||||
* Returns TRUE if there is another set of values to consider, FALSE if not.
|
||||
* On TRUE result, the scankeys are initialized with the next set of values.
|
||||
* Returns true if there is another set of values to consider, false if not.
|
||||
* On true result, the scankeys are initialized with the next set of values.
|
||||
*/
|
||||
bool
|
||||
_bt_advance_array_keys(IndexScanDesc scan, ScanDirection dir)
|
||||
@ -724,7 +724,7 @@ _bt_restore_array_keys(IndexScanDesc scan)
|
||||
* for a forward scan; or after the last match for a backward scan.)
|
||||
*
|
||||
* As a byproduct of this work, we can detect contradictory quals such
|
||||
* as "x = 1 AND x > 2". If we see that, we return so->qual_ok = FALSE,
|
||||
* as "x = 1 AND x > 2". If we see that, we return so->qual_ok = false,
|
||||
* indicating the scan need not be run at all since no tuples can match.
|
||||
* (In this case we do not bother completing the output key array!)
|
||||
* Again, missing cross-type operators might cause us to fail to prove the
|
||||
@ -1020,7 +1020,7 @@ _bt_preprocess_keys(IndexScanDesc scan)
|
||||
*
|
||||
* If the opfamily doesn't supply a complete set of cross-type operators we
|
||||
* may not be able to make the comparison. If we can make the comparison
|
||||
* we store the operator result in *result and return TRUE. We return FALSE
|
||||
* we store the operator result in *result and return true. We return false
|
||||
* if the comparison could not be made.
|
||||
*
|
||||
* Note: op always points at the same ScanKey as either leftarg or rightarg.
|
||||
@ -1185,8 +1185,8 @@ _bt_compare_scankey_args(IndexScanDesc scan, ScanKey op,
|
||||
*
|
||||
* Lastly, for ordinary scankeys (not IS NULL/NOT NULL), we check for a
|
||||
* NULL comparison value. Since all btree operators are assumed strict,
|
||||
* a NULL means that the qual cannot be satisfied. We return TRUE if the
|
||||
* comparison value isn't NULL, or FALSE if the scan should be abandoned.
|
||||
* a NULL means that the qual cannot be satisfied. We return true if the
|
||||
* comparison value isn't NULL, or false if the scan should be abandoned.
|
||||
*
|
||||
* This function is applied to the *input* scankey structure; therefore
|
||||
* on a rescan we will be looking at already-processed scankeys. Hence
|
||||
|
Reference in New Issue
Block a user