diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-09-01 20:42:46 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-09-01 20:42:46 +0000 |
| commit | b153c0920960a6059b67969469166fb29c0105d7 (patch) | |
| tree | 4e7100ecdca88746c369ae2a6a43468925f3194d /src/backend/tcop | |
| parent | 9ac4299163247645c6e391f5f65735c6cb78ccb9 (diff) | |
| download | postgresql-b153c0920960a6059b67969469166fb29c0105d7.tar.gz | |
Add a bunch of new error location reports to parse-analysis error messages.
There are still some weak spots around JOIN USING and relation alias lists,
but most errors reported within backend/parser/ now have locations.
Diffstat (limited to 'src/backend/tcop')
| -rw-r--r-- | src/backend/tcop/utility.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 2f9078c2fb..b867df5581 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.297 2008/08/30 01:39:14 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.298 2008/09/01 20:42:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -801,7 +801,7 @@ ProcessUtility(Node *parsetree, { NotifyStmt *stmt = (NotifyStmt *) parsetree; - Async_Notify(stmt->relation->relname); + Async_Notify(stmt->conditionname); } break; @@ -809,7 +809,7 @@ ProcessUtility(Node *parsetree, { ListenStmt *stmt = (ListenStmt *) parsetree; - Async_Listen(stmt->relation->relname); + Async_Listen(stmt->conditionname); } break; @@ -817,8 +817,8 @@ ProcessUtility(Node *parsetree, { UnlistenStmt *stmt = (UnlistenStmt *) parsetree; - if (stmt->relation) - Async_Unlisten(stmt->relation->relname); + if (stmt->conditionname) + Async_Unlisten(stmt->conditionname); else Async_UnlistenAll(); } |
