mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Tweak new error messages to match the actual syntax of DECLARE CURSOR.
(Last night I copied-and-pasted from the WITH HOLD case, but that's wrong because of the bizarrely irregular syntax specified by the standard.)
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.182 2007/10/24 23:27:08 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.183 2007/10/25 13:48:57 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -994,7 +994,7 @@ SPI_cursor_open(const char *name, SPIPlanPtr plan,
|
||||
((PlannedStmt *) linitial(stmt_list))->rowMarks != NIL)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("DECLARE CURSOR SCROLL ... FOR UPDATE/SHARE is not supported"),
|
||||
errmsg("DECLARE SCROLL CURSOR ... FOR UPDATE/SHARE is not supported"),
|
||||
errdetail("Scrollable cursors must be READ ONLY.")));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user