Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9047292

Browse files
committed
Spell 'between' correctly, clean up spacing in error messages.
1 parent 43568d1 commit 9047292

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/backend/parser/gram.y

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.263 2001/10/18 17:30:14 thomas Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.264 2001/10/18 23:16:09 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -4134,7 +4134,7 @@ opt_float: '(' Iconst ')'
41344134
opt_numeric: '(' Iconst ',' Iconst ')'
41354135
{
41364136
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
4137-
elog(ERROR,"NUMERIC precision %d must be beween 1 and %d",
4137+
elog(ERROR,"NUMERIC precision %d must be between 1 and %d",
41384138
$2, NUMERIC_MAX_PRECISION);
41394139
if ($4 < 0 || $4 > $2)
41404140
elog(ERROR,"NUMERIC scale %d must be between 0 and precision %d",
@@ -4145,7 +4145,7 @@ opt_numeric: '(' Iconst ',' Iconst ')'
41454145
| '(' Iconst ')'
41464146
{
41474147
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
4148-
elog(ERROR,"NUMERIC precision %d must be beween 1 and %d",
4148+
elog(ERROR,"NUMERIC precision %d must be between 1 and %d",
41494149
$2, NUMERIC_MAX_PRECISION);
41504150

41514151
$$ = ($2 << 16) + VARHDRSZ;
@@ -4160,7 +4160,7 @@ opt_numeric: '(' Iconst ',' Iconst ')'
41604160
opt_decimal: '(' Iconst ',' Iconst ')'
41614161
{
41624162
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
4163-
elog(ERROR,"DECIMAL precision %d must be beween 1 and %d",
4163+
elog(ERROR,"DECIMAL precision %d must be between 1 and %d",
41644164
$2, NUMERIC_MAX_PRECISION);
41654165
if ($4 < 0 || $4 > $2)
41664166
elog(ERROR,"DECIMAL scale %d must be between 0 and precision %d",
@@ -4171,7 +4171,7 @@ opt_decimal: '(' Iconst ',' Iconst ')'
41714171
| '(' Iconst ')'
41724172
{
41734173
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
4174-
elog(ERROR,"DECIMAL precision %d must be beween 1 and %d",
4174+
elog(ERROR,"DECIMAL precision %d must be between 1 and %d",
41754175
$2, NUMERIC_MAX_PRECISION);
41764176

41774177
$$ = ($2 << 16) + VARHDRSZ;
@@ -4308,8 +4308,8 @@ ConstDatetime: datetime
43084308
*/
43094309
$$->timezone = $5;
43104310
if (($3 < 0) || ($3 > 13))
4311-
elog(ERROR,"TIMESTAMP(%d) %s precision must be beween %d and %d",
4312-
$3, ($5? " WITH TIME ZONE": ""), 0, 13);
4311+
elog(ERROR,"TIMESTAMP(%d)%s precision must be between %d and %d",
4312+
$3, ($5 ? " WITH TIME ZONE": ""), 0, 13);
43134313
$$->typmod = $3;
43144314
}
43154315
| TIMESTAMP opt_timezone_x
@@ -4336,8 +4336,8 @@ ConstDatetime: datetime
43364336
else
43374337
$$->name = xlateSqlType("time");
43384338
if (($3 < 0) || ($3 > 13))
4339-
elog(ERROR,"TIME(%d) %s precision must be beween %d and %d",
4340-
$3, ($5? " WITH TIME ZONE": ""), 0, 13);
4339+
elog(ERROR,"TIME(%d)%s precision must be between %d and %d",
4340+
$3, ($5 ? " WITH TIME ZONE": ""), 0, 13);
43414341
$$->typmod = $3;
43424342
}
43434343
| TIME opt_timezone
@@ -5091,7 +5091,7 @@ c_expr: attr
50915091
d->name = xlateSqlType("timestamptz");
50925092
d->setof = FALSE;
50935093
if (($3 < 0) || ($3 > 13))
5094-
elog(ERROR,"CURRENT_TIMESTAMP(%d) precision must be beween %d and %d",
5094+
elog(ERROR,"CURRENT_TIMESTAMP(%d) precision must be between %d and %d",
50955095
$3, 0, 13);
50965096
d->typmod = $3;
50975097

0 commit comments

Comments
 (0)