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
17701770
17711771/* Check callbacks */
17721772CREATE 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)
17741774RETURNS VOID AS $$
17751775DECLARE
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';
17781778BEGIN
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);
17821781END
17831782$$ language plpgsql;
17841783CREATE TABLE abc(a serial, b int);
You can’t perform that action at this time.
0 commit comments