mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Collection of typo fixes.
Use "a" and "an" correctly, mostly in comments. Two error messages were also fixed (they were just elogs, so no translation work required). Two function comments in pg_proc.h were also fixed. Etsuro Fujita reported one of these, but I found a lot more with grep. Also fix a few other typos spotted while grepping for the a/an typos. For example, "consists out of ..." -> "consists of ...". Plus a "though"/ "through" mixup reported by Euler Taveira. Many of these typos were in old code, which would be nice to backpatch to make future backpatching easier. But much of the code was new, and I didn't feel like crafting separate patches for each branch. So no backpatching.
This commit is contained in:
@@ -1963,7 +1963,7 @@ tm2timestamp(struct pg_tm * tm, fsec_t fsec, int *tzp, Timestamp *result)
|
||||
|
||||
|
||||
/* interval2tm()
|
||||
* Convert a interval data type to a tm structure.
|
||||
* Convert an interval data type to a tm structure.
|
||||
*/
|
||||
int
|
||||
interval2tm(Interval span, struct pg_tm * tm, fsec_t *fsec)
|
||||
@@ -2907,7 +2907,7 @@ interval_justify_days(PG_FUNCTION_ARGS)
|
||||
}
|
||||
|
||||
/* timestamp_pl_interval()
|
||||
* Add a interval to a timestamp data type.
|
||||
* Add an interval to a timestamp data type.
|
||||
* Note that interval has provisions for qualitative year/month and day
|
||||
* units, so try to do the right thing with them.
|
||||
* To add a month, increment the month, and use the same day of month.
|
||||
@@ -3007,7 +3007,7 @@ timestamp_mi_interval(PG_FUNCTION_ARGS)
|
||||
|
||||
|
||||
/* timestamptz_pl_interval()
|
||||
* Add a interval to a timestamp with time zone data type.
|
||||
* Add an interval to a timestamp with time zone data type.
|
||||
* Note that interval has provisions for qualitative year/month
|
||||
* units, so try to do the right thing with them.
|
||||
* To add a month, increment the month, and use the same day of month.
|
||||
|
Reference in New Issue
Block a user