Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9047292

Browse files
committed
Spell 'between' correctly, clean up spacing in error messages.
1 parent43568d1 commit9047292

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/1817:30:14 thomas Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.264 2001/10/1823:16:09 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR 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 bebeween 1 and %d",
4137+
elog(ERROR,"NUMERIC precision %d must bebetween 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 bebeween 1 and %d",
4148+
elog(ERROR,"NUMERIC precision %d must bebetween 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 bebeween 1 and %d",
4163+
elog(ERROR,"DECIMAL precision %d must bebetween 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 bebeween 1 and %d",
4174+
elog(ERROR,"DECIMAL precision %d must bebetween 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 bebeween %d and %d",
4312-
$3, ($5?" WITH TIME ZONE":""), 0, 13);
4311+
elog(ERROR,"TIMESTAMP(%d)%s precision must bebetween %d and %d",
4312+
$3, ($5?" WITH TIME ZONE":""), 0, 13);
43134313
$$->typmod =$3;
43144314
}
43154315
|TIMESTAMPopt_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 bebeween %d and %d",
4340-
$3, ($5?" WITH TIME ZONE":""), 0, 13);
4339+
elog(ERROR,"TIME(%d)%s precision must bebetween %d and %d",
4340+
$3, ($5?" WITH TIME ZONE":""), 0, 13);
43414341
$$->typmod =$3;
43424342
}
43434343
|TIMEopt_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 bebeween %d and %d",
5094+
elog(ERROR,"CURRENT_TIMESTAMP(%d) precision must bebetween %d and %d",
50955095
$3,0,13);
50965096
d->typmod =$3;
50975097

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp