Commit c8cc45b2 authored by Jan Wieck's avatar Jan Wieck

Fixed small bug in ruleutils and added output of pg_views and

pg_rules to rules regression test.

Jan
parent b7a86e40
......@@ -3,7 +3,7 @@
* out of it's tuple
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.12 1999/05/12 15:01:58 wieck Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.13 1999/05/12 17:59:31 wieck Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
......@@ -788,7 +788,7 @@ make_viewdef(HeapTuple ruletup, TupleDesc rulettc)
query = (Query *) lfirst(actions);
if (ev_type != '1' || ev_attr >= 0 || !is_instead || strcmp(ev_qual, ""))
if (ev_type != '1' || ev_attr >= 0 || !is_instead || strcmp(ev_qual, "<>"))
return "Not a view";
strcpy(buf, get_query_def(query, NULL));
......
This diff is collapsed.
......@@ -681,3 +681,12 @@ DELETE FROM shoelace WHERE EXISTS
WHERE sl_name = shoelace.sl_name);
SELECT * FROM shoelace ORDER BY sl_name;
--
-- Check that ruleutils are working
--
SELECT * FROM pg_views ORDER BY viewname;
SELECT * FROM pg_rules ORDER BY tablename, rulename;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment