Revision 12342
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
1053 | 1053 |
LANGUAGE sql |
1054 | 1054 |
AS $_$ |
1055 | 1055 |
SELECT (CASE |
1056 |
WHEN util.is_table($1) THEN util.drop_table($1::text) |
|
1057 |
WHEN util.is_view($1) THEN util.drop_view($1::text)
|
|
1056 |
WHEN util.is_table($1) THEN util.drop_table($1::text, $2)
|
|
1057 |
WHEN util.is_view($1) THEN util.drop_view ($1::text, $2)
|
|
1058 | 1058 |
-- otherwise, throw case_not_found error |
1059 | 1059 |
END) |
1060 | 1060 |
$_$; |
Also available in: Unified diff
bugfix: schemas/util.sql: drop_relation(): need to pass force param to util.drop_*()