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

Commit44cb3ae

Browse files
committed
Fix a couple of obvious problems in DROP IF EXISTS patch.
1 parentc892643 commit44cb3ae

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

‎src/backend/commands/aggregatecmds.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/commands/aggregatecmds.c,v 1.35 2006/06/1620:23:44 adunstan Exp $
12+
* $PostgreSQL: pgsql/src/backend/commands/aggregatecmds.c,v 1.36 2006/06/16 23:50:48 tgl Exp $
1313
*
1414
* DESCRIPTION
1515
* The "DefineFoo" routines take the parse tree and pick out the
@@ -216,14 +216,9 @@ RemoveAggregate(RemoveFuncStmt *stmt)
216216
if (!OidIsValid(procOid))
217217
{
218218
/* we only get here if stmt->missing_ok is true */
219-
220-
/* XXX might need better message here */
221-
222219
ereport(NOTICE,
223220
(errmsg("aggregate %s does not exist ... skipping",
224-
stmt->name)));
225-
226-
221+
NameListToString(stmt->name))));
227222
return;
228223
}
229224

‎src/backend/parser/gram.y

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.546 2006/06/1620:23:44 adunstan Exp $
14+
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.547 2006/06/16 23:50:48 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -4075,15 +4075,14 @@ DropCastStmt: DROP CAST opt_if_exists '(' Typename AS Typename ')' opt_drop_beha
40754075
n->sourcetype =$5;
40764076
n->targettype =$7;
40774077
n->behavior =$9;
4078-
n->missing_ok =
4078+
n->missing_ok =$3;
40794079
$$ = (Node *)n;
40804080
}
40814081
;
40824082

4083-
opt_if_exists: IF_P EXISTS {$$ =true; }
4084-
|/* empty*/ {$$ =false; }
4085-
;
4086-
4083+
opt_if_exists: IF_P EXISTS{$$ =true; }
4084+
|/*EMPTY*/{$$ =false; }
4085+
;
40874086

40884087

40894088
/*****************************************************************************

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp