Skip to content

Commit

Permalink
Merge branch 'master' of github.com:darold/ora2pg
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-migops committed Nov 30, 2021
2 parents c77e586 + ca58acb commit 871d98d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Ora2Pg/PLSQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,8 @@ sub plsql_to_plpgsql
} elsif ($str =~ s/;(\s+)([^;]+)SQL\%ROWCOUNT/;$1GET DIAGNOSTICS ora2pg_rowcount = ROW_COUNT;\n$1$2 ora2pg_rowcount/igs) {
$class->{get_diagnostics} = 'ora2pg_rowcount int;';
}
# SQL%ROWCOUNT with concatenated string
$str =~ s/(\s+)(GET DIAGNOSTICS )([^\s]+)( = ROW_COUNT)(\s+\|\|[^;]+);/$1$2$3$4;$1$3 := $3 $5;/;

# Sometime variable used in FOR ... IN SELECT loop is not declared
# Append its RECORD declaration in the DECLARE section.
Expand Down

0 comments on commit 871d98d

Please sign in to comment.