]> granicus.if.org Git - postgresql/commitdiff
Add error hint that PL/pgSQL "EXECUTE of SELECT ... INTO" can be
authorBruce Momjian <bruce@momjian.us>
Mon, 31 May 2010 20:02:30 +0000 (20:02 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 31 May 2010 20:02:30 +0000 (20:02 +0000)
performed by "EXECUTE ... INTO".

Jaime Casanova

src/pl/plpgsql/src/pl_exec.c

index 47808a419151f9da5db55c8c9073856a81f2dbdb..b8b536cf63ce4920af59ef7b8f886dba2ba0437a 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.257 2010/04/14 23:52:10 tgl Exp $
+ *       $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.258 2010/05/31 20:02:30 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -3033,7 +3033,8 @@ exec_stmt_dynexecute(PLpgSQL_execstate *estate,
                                if (*ptr == 'S' || *ptr == 's')
                                        ereport(ERROR,
                                                        (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-                                       errmsg("EXECUTE of SELECT ... INTO is not implemented")));
+                                       errmsg("EXECUTE of SELECT ... INTO is not implemented"),
+                                       errhint("You might want to use EXECUTE ... INTO instead.")));
                                break;
                        }