Revision 12568
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
939 | 939 |
WHEN duplicate_column THEN NULL; |
940 | 940 |
WHEN invalid_table_definition THEN |
941 | 941 |
IF SQLERRM LIKE 'multiple primary keys for table % are not allowed' THEN NULL; |
942 |
ELSE RAISE USING ERRCODE = SQLSTATE, MESSAGE = SQLERRM; -- rethrow
|
|
942 |
ELSE RAISE;
|
|
943 | 943 |
END IF; |
944 | 944 |
END; |
945 | 945 |
$$; |
... | ... | |
3165 | 3165 |
WHEN array_subscript_error THEN -- selective suppress |
3166 | 3166 |
IF SQLERRM LIKE 'arrays must have same bounds' THEN NULL; |
3167 | 3167 |
-- metadata cols not yet added |
3168 |
ELSE RAISE USING ERRCODE = SQLSTATE, MESSAGE = SQLERRM; -- rethrow
|
|
3168 |
ELSE RAISE;
|
|
3169 | 3169 |
END IF; |
3170 | 3170 |
END; |
3171 | 3171 |
|
Also available in: Unified diff
schemas/util.sql: `RAISE USING ERRCODE = SQLSTATE, MESSAGE = SQLERRM`: use simpler `RAISE` to rethrow error