From 8ec68b4348d2ff6b574f3a977613db16e0a639df Mon Sep 17 00:00:00 2001 From: Mahesh-newt Date: Thu, 12 Jun 2025 15:44:21 +0530 Subject: [PATCH] Handling Single Line Comments in Table --- lib/Ora2Pg.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Ora2Pg.pm b/lib/Ora2Pg.pm index fc8b7c67..b465dd72 100644 --- a/lib/Ora2Pg.pm +++ b/lib/Ora2Pg.pm @@ -8896,7 +8896,15 @@ sub export_table } } } - $sql_output .= ",\n"; + # $sql_output .= ",\n"; + if ($f->[4] =~ /--\s*\S+/) + { + $sql_output .= "\n,"; + } + else + { + $sql_output .= ",\n"; + } # Replace default generated value on update by a trigger if ($f->[12] =~ /^DEFAULT_GENERATED on update (.*)/i) {