$sql_output.="CREATE FUNCTION pg_fct_\L$trig->[0]\E () RETURNS TRIGGER AS '\n$trig->[4]\n' LANGUAGE 'plpgsql'\n\n";
$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";
}
}
if(!$sql_output){
$sql_output="-- Nothing found of type $self->{type}\n";
$self->{functions}{$fct}="-- Oracle function declaration, please edit to match PostgreSQL syntax.\n$self->{functions}{$fct}";
$sql_output.="-- PostgreSQL possible function declaration, please edit to match your needs.\nCREATE FUNCTION \L$fct\E(".join(',',@argu).") RETURNS ".$self->_sql_type(uc($1))." AS '\n$self->{functions}{$fct}\n' LANGUAGE 'sql'\n\n";
}
if(!$sql_output){
$sql_output="-- Nothing found of type $self->{type}\n";