File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.106 2002/08/26 17:53:58 tgl Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.107 2002/08/29 06:05:27 tgl Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -1237,13 +1237,16 @@ QueryRewrite(Query *parsetree)
12371237 switch (query -> commandType )
12381238 {
12391239 case CMD_INSERT :
1240- elog (ERROR , "Cannot insert into a view without an appropriate rule" );
1240+ elog (ERROR , "Cannot insert into a view"
1241+ "\n\tYou need an unconditional ON INSERT DO INSTEAD rule" );
12411242 break ;
12421243 case CMD_UPDATE :
1243- elog (ERROR , "Cannot update a view without an appropriate rule" );
1244+ elog (ERROR , "Cannot update a view"
1245+ "\n\tYou need an unconditional ON UPDATE DO INSTEAD rule" );
12441246 break ;
12451247 case CMD_DELETE :
1246- elog (ERROR , "Cannot delete from a view without an appropriate rule" );
1248+ elog (ERROR , "Cannot delete from a view"
1249+ "\n\tYou need an unconditional ON DELETE DO INSTEAD rule" );
12471250 break ;
12481251 default :
12491252 elog (ERROR , "QueryRewrite: unexpected commandType %d" ,
You can’t perform that action at this time.
0 commit comments