Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
90472927
Commit
90472927
authored
Oct 18, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spell 'between' correctly, clean up spacing in error messages.
parent
43568d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/backend/parser/gram.y
src/backend/parser/gram.y
+10
-10
No files found.
src/backend/parser/gram.y
View file @
90472927
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.26
3 2001/10/18 17:30:14 thomas
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.26
4 2001/10/18 23:16:09 tgl
Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -4134,7 +4134,7 @@ opt_float: '(' Iconst ')'
...
@@ -4134,7 +4134,7 @@ opt_float: '(' Iconst ')'
opt_numeric: '(' Iconst ',' Iconst ')'
opt_numeric: '(' Iconst ',' Iconst ')'
{
{
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
elog(ERROR,"NUMERIC precision %d must be beween 1 and %d",
elog(ERROR,"NUMERIC precision %d must be be
t
ween 1 and %d",
$2, NUMERIC_MAX_PRECISION);
$2, NUMERIC_MAX_PRECISION);
if ($4 < 0 || $4 > $2)
if ($4 < 0 || $4 > $2)
elog(ERROR,"NUMERIC scale %d must be between 0 and precision %d",
elog(ERROR,"NUMERIC scale %d must be between 0 and precision %d",
...
@@ -4145,7 +4145,7 @@ opt_numeric: '(' Iconst ',' Iconst ')'
...
@@ -4145,7 +4145,7 @@ opt_numeric: '(' Iconst ',' Iconst ')'
| '(' Iconst ')'
| '(' Iconst ')'
{
{
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
elog(ERROR,"NUMERIC precision %d must be beween 1 and %d",
elog(ERROR,"NUMERIC precision %d must be be
t
ween 1 and %d",
$2, NUMERIC_MAX_PRECISION);
$2, NUMERIC_MAX_PRECISION);
$$ = ($2 << 16) + VARHDRSZ;
$$ = ($2 << 16) + VARHDRSZ;
...
@@ -4160,7 +4160,7 @@ opt_numeric: '(' Iconst ',' Iconst ')'
...
@@ -4160,7 +4160,7 @@ opt_numeric: '(' Iconst ',' Iconst ')'
opt_decimal: '(' Iconst ',' Iconst ')'
opt_decimal: '(' Iconst ',' Iconst ')'
{
{
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
elog(ERROR,"DECIMAL precision %d must be beween 1 and %d",
elog(ERROR,"DECIMAL precision %d must be be
t
ween 1 and %d",
$2, NUMERIC_MAX_PRECISION);
$2, NUMERIC_MAX_PRECISION);
if ($4 < 0 || $4 > $2)
if ($4 < 0 || $4 > $2)
elog(ERROR,"DECIMAL scale %d must be between 0 and precision %d",
elog(ERROR,"DECIMAL scale %d must be between 0 and precision %d",
...
@@ -4171,7 +4171,7 @@ opt_decimal: '(' Iconst ',' Iconst ')'
...
@@ -4171,7 +4171,7 @@ opt_decimal: '(' Iconst ',' Iconst ')'
| '(' Iconst ')'
| '(' Iconst ')'
{
{
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
if ($2 < 1 || $2 > NUMERIC_MAX_PRECISION)
elog(ERROR,"DECIMAL precision %d must be beween 1 and %d",
elog(ERROR,"DECIMAL precision %d must be be
t
ween 1 and %d",
$2, NUMERIC_MAX_PRECISION);
$2, NUMERIC_MAX_PRECISION);
$$ = ($2 << 16) + VARHDRSZ;
$$ = ($2 << 16) + VARHDRSZ;
...
@@ -4308,8 +4308,8 @@ ConstDatetime: datetime
...
@@ -4308,8 +4308,8 @@ ConstDatetime: datetime
*/
*/
$$->timezone = $5;
$$->timezone = $5;
if (($3 < 0) || ($3 > 13))
if (($3 < 0) || ($3 > 13))
elog(ERROR,"TIMESTAMP(%d)
%s precision must be be
ween %d and %d",
elog(ERROR,"TIMESTAMP(%d)
%s precision must be bet
ween %d and %d",
$3, ($5? " WITH TIME ZONE": ""), 0, 13);
$3, ($5
? " WITH TIME ZONE": ""), 0, 13);
$$->typmod = $3;
$$->typmod = $3;
}
}
| TIMESTAMP opt_timezone_x
| TIMESTAMP opt_timezone_x
...
@@ -4336,8 +4336,8 @@ ConstDatetime: datetime
...
@@ -4336,8 +4336,8 @@ ConstDatetime: datetime
else
else
$$->name = xlateSqlType("time");
$$->name = xlateSqlType("time");
if (($3 < 0) || ($3 > 13))
if (($3 < 0) || ($3 > 13))
elog(ERROR,"TIME(%d)
%s precision must be be
ween %d and %d",
elog(ERROR,"TIME(%d)
%s precision must be bet
ween %d and %d",
$3, ($5? " WITH TIME ZONE": ""), 0, 13);
$3, ($5
? " WITH TIME ZONE": ""), 0, 13);
$$->typmod = $3;
$$->typmod = $3;
}
}
| TIME opt_timezone
| TIME opt_timezone
...
@@ -5091,7 +5091,7 @@ c_expr: attr
...
@@ -5091,7 +5091,7 @@ c_expr: attr
d->name = xlateSqlType("timestamptz");
d->name = xlateSqlType("timestamptz");
d->setof = FALSE;
d->setof = FALSE;
if (($3 < 0) || ($3 > 13))
if (($3 < 0) || ($3 > 13))
elog(ERROR,"CURRENT_TIMESTAMP(%d) precision must be beween %d and %d",
elog(ERROR,"CURRENT_TIMESTAMP(%d) precision must be be
t
ween %d and %d",
$3, 0, 13);
$3, 0, 13);
d->typmod = $3;
d->typmod = $3;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment