|
17 | 17 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group |
18 | 18 | * Portions Copyright (c) 1994, Regents of the University of California |
19 | 19 | * |
20 | | - *$PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.368 2007/10/24 23:27:08 tgl Exp $ |
| 20 | + *$PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.369 2007/10/25 13:48:57 tgl Exp $ |
21 | 21 | * |
22 | 22 | *------------------------------------------------------------------------- |
23 | 23 | */ |
@@ -1627,14 +1627,14 @@ transformDeclareCursorStmt(ParseState *pstate, DeclareCursorStmt *stmt) |
1627 | 1627 | if (result->rowMarks!=NIL&& (stmt->options&CURSOR_OPT_SCROLL)) |
1628 | 1628 | ereport(ERROR, |
1629 | 1629 | (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), |
1630 | | -errmsg("DECLARECURSORSCROLL ... FOR UPDATE/SHARE is not supported"), |
| 1630 | +errmsg("DECLARE SCROLL CURSOR ... FOR UPDATE/SHARE is not supported"), |
1631 | 1631 | errdetail("Scrollable cursors must be READ ONLY."))); |
1632 | 1632 |
|
1633 | 1633 | /* FOR UPDATE and INSENSITIVE are not compatible */ |
1634 | 1634 | if (result->rowMarks!=NIL&& (stmt->options&CURSOR_OPT_INSENSITIVE)) |
1635 | 1635 | ereport(ERROR, |
1636 | 1636 | (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), |
1637 | | -errmsg("DECLARECURSORINSENSITIVE ... FOR UPDATE/SHARE is not supported"), |
| 1637 | +errmsg("DECLARE INSENSITIVE CURSOR ... FOR UPDATE/SHARE is not supported"), |
1638 | 1638 | errdetail("Insensitive cursors must be READ ONLY."))); |
1639 | 1639 |
|
1640 | 1640 | /* We won't need the raw querytree any more */ |
|