File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1770,15 +1770,14 @@ NOTICE: 100 rows copied from test_fkey_0
1770
1770
1771
1771
/* Check callbacks */
1772
1772
CREATE TABLE log(id serial, message text);
1773
- CREATE FUNCTION abc_on_partition_created_callback(args jsonb)
1773
+ CREATE OR REPLACE FUNCTION abc_on_partition_created_callback(args jsonb)
1774
1774
RETURNS VOID AS $$
1775
1775
DECLARE
1776
- start_value TEXT := args->>'start';
1777
- end_value TEXT := args::jsonb->'end';
1776
+ start_value TEXT := args->>'start';
1777
+ end_value TEXT := args::jsonb->'end';
1778
1778
BEGIN
1779
- -- raise notice 'callback: %', args->start;
1780
- INSERT INTO log(message)
1781
- VALUES (start_value || '-' || end_value);
1779
+ INSERT INTO log(message)
1780
+ VALUES (start_value || '-' || end_value);
1782
1781
END
1783
1782
$$ language plpgsql;
1784
1783
CREATE TABLE abc(a serial, b int);
You can’t perform that action at this time.
0 commit comments