Skip to content

Commit fada300

Browse files
committed
Fix to_date translation expression
1 parent 7e02360 commit fada300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ora_migrator--0.9.2.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ BEGIN
866866
* Retrieve only two first arguments from to_date()
867867
* Excludes NLS options
868868
*/
869-
s := regexp_replace(s, 'to_date\((''[^,]*''),\s?(''[^,]*'').*\)',
869+
s := regexp_replace(s, 'to_date\(\s*(''[^,]*'')\s*,\s*(''[^,]*'')[^)]*\)',
870870
'to_date(\1, \2)', 'i');
871871

872872
RETURN s;

0 commit comments

Comments
 (0)