Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ade4b3

Browse files
committed
Triggers should return TRIGGER not OPAQUE. Looks like this script got
overlooked in 7.3 updates. Not a critical fix but avoids a notice whenthe resulting SQL script is executed.
1 parent96ecf9d commit1ade4b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/oracle/Ora2Pg.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ print STDERR "Add triggers definition...\n" if ($self->{debug});
881881
if ($self->{export_schema}) {
882882
$sql_output .="SET search_path =$self->{schema}, pg_catalog;\n\n";
883883
}
884-
$sql_output .="CREATE FUNCTION pg_fct_\L$trig->[0]\E () RETURNSOPAQUE AS '\n$trig->[4]\n' LANGUAGE 'plpgsql'\n\n";
884+
$sql_output .="CREATE FUNCTION pg_fct_\L$trig->[0]\E () RETURNSTRIGGER AS '\n$trig->[4]\n' LANGUAGE 'plpgsql'\n\n";
885885
$sql_output .="CREATE TRIGGER\L$trig->[0]\E\n\t$trig->[1]$trig->[2] ON\"\L$trig->[3]\E\" FOR EACH ROW\n\tEXECUTE PROCEDURE pg_fct_\L$trig->[0]\E();\n\n";
886886
}
887887
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp