mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Clean up references to SQL92
In most cases, these were just references to the SQL standard in general. In a few cases, a contrast was made between SQL92 and later standards -- those have been kept unchanged.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* timestamp.c
|
||||
* Functions for the built-in SQL92 types "timestamp" and "interval".
|
||||
* Functions for the built-in SQL types "timestamp" and "interval".
|
||||
*
|
||||
* Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
@ -2276,9 +2276,9 @@ interval_hash(PG_FUNCTION_ARGS)
|
||||
#endif
|
||||
}
|
||||
|
||||
/* overlaps_timestamp() --- implements the SQL92 OVERLAPS operator.
|
||||
/* overlaps_timestamp() --- implements the SQL OVERLAPS operator.
|
||||
*
|
||||
* Algorithm is per SQL92 spec. This is much harder than you'd think
|
||||
* Algorithm is per SQL spec. This is much harder than you'd think
|
||||
* because the spec requires us to deliver a non-null answer in some cases
|
||||
* where some of the inputs are null.
|
||||
*/
|
||||
@ -3129,7 +3129,7 @@ interval_avg(PG_FUNCTION_ARGS)
|
||||
memcpy((void *) &sumX, DatumGetPointer(transdatums[0]), sizeof(Interval));
|
||||
memcpy((void *) &N, DatumGetPointer(transdatums[1]), sizeof(Interval));
|
||||
|
||||
/* SQL92 defines AVG of no values to be NULL */
|
||||
/* SQL defines AVG of no values to be NULL */
|
||||
if (N.time == 0)
|
||||
PG_RETURN_NULL();
|
||||
|
||||
|
Reference in New Issue
Block a user