1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00
Subject: [PATCHES] DROP AGGREGATE patch/fix.


Here's a patch that fixes the DROP AGGREGATE command to delete
the desired aggregate for a specific type.
This commit is contained in:
Marc G. Fournier
1997-05-22 00:17:24 +00:00
parent 021ccf0b8c
commit 5e7c0a0b9a
13 changed files with 202 additions and 49 deletions

View File

@ -1,7 +1,7 @@
--
-- destroy.source
--
-- $Header: /cvsroot/pgsql/src/test/regress/sql/Attic/destroy.sql,v 1.2 1997/04/27 04:35:31 scrappy Exp $
-- $Header: /cvsroot/pgsql/src/test/regress/sql/Attic/destroy.sql,v 1.3 1997/05/22 00:17:15 scrappy Exp $
--
--
@ -74,11 +74,11 @@ DROP TYPE widget;
--
-- AGGREGATE REMOVAL
--
DROP AGGREGATE newavg;
DROP AGGREGATE newavg int4;
DROP AGGREGATE newsum;
DROP AGGREGATE newsum int4;
DROP AGGREGATE newcnt;
DROP AGGREGATE newcnt int4;
--

View File

@ -1,7 +1,7 @@
--
-- errors.source
--
-- $Header: /cvsroot/pgsql/src/test/regress/sql/errors.sql,v 1.1 1997/04/27 03:56:21 scrappy Exp $
-- $Header: /cvsroot/pgsql/src/test/regress/sql/errors.sql,v 1.2 1997/05/22 00:17:24 scrappy Exp $
-- bad in postquel, but ok in postsql
@ -182,6 +182,15 @@ drop aggregate 314159;
-- no such aggregate
drop aggregate nonesuch;
-- missing aggregate type
drop aggregate newcnt1;
-- bad aggregate type
drop aggregate newcnt nonesuch;
-- no such aggregate for type
drop aggregate newcnt float4;
--
-- REMOVE FUNCTION