@@ -439,6 +439,7 @@ sub oracle_init {
439
439
$oracle_functions_list_3{'NVL2'}{'regex'} = '\bNVL2\s*\(';
440
440
$oracle_functions_list_3{'PERCENT_RANK'}{'regex'} = '\bPERCENT_RANK\s*\(';
441
441
$oracle_functions_list_3{'RANK'}{'regex'} = '\bRANK\s*\(';
442
+ $oracle_functions_list_3{'REGEXP_LIKE'}{'regex'} = '\bREGEXP_LIKE\s*\(';
442
443
$oracle_functions_list_3{'REGR_AVGX'}{'regex'} = '\bREGR_AVGX\s*\(';
443
444
$oracle_functions_list_3{'REGR_AVGY'}{'regex'} = '\bREGR_AVGY\s*\(';
444
445
$oracle_functions_list_3{'REGR_COUNT'}{'regex'} = '\bREGR_COUNT\s*\(';
@@ -828,8 +829,8 @@ sub oracle_init {
828
829
$oracle_functions_list_4{'DUMP'}{'comments'} = q{};
829
830
$oracle_functions_list_4{'EMPTY_BLOB'}{'sourcedocumentation'} = 'http://docs.oracle.com/database/121/SQLRF/functions064.htm';
830
831
$oracle_functions_list_4{'EMPTY_BLOB'}{'pgdocumentation'} = '';
831
- $oracle_functions_list_4{'EMPTY_BLOB'}{'pginstruction'} = '';
832
- $oracle_functions_list_4{'EMPTY_BLOB'}{'comments'} = q{};
832
+ $oracle_functions_list_4{'EMPTY_BLOB'}{'pginstruction'} = 'No equivalent ';
833
+ $oracle_functions_list_4{'EMPTY_BLOB'}{'comments'} = q{The zero length string '' can be used instead on a bytea field };
833
834
$oracle_functions_list_4{'EMPTY_CLOB'}{'sourcedocumentation'} = 'http://docs.oracle.com/database/121/SQLRF/functions064.htm';
834
835
$oracle_functions_list_4{'EMPTY_CLOB'}{'pgdocumentation'} = '';
835
836
$oracle_functions_list_4{'EMPTY_CLOB'}{'pginstruction'} = '';
@@ -1158,9 +1159,9 @@ sub oracle_init {
1158
1159
$oracle_functions_list_3{'RANK'}{'pginstruction'} = 'rank';
1159
1160
$oracle_functions_list_3{'RANK'}{'comments'} = q{The Postgresql function does support the `WITHIN GROUP` clause. Needs a similar rewriting as dense_rank.};
1160
1161
$oracle_functions_list_4{'RAWTOHEX'}{'sourcedocumentation'} = 'http://docs.oracle.com/database/121/SQLRF/functions157.htm';
1161
- $oracle_functions_list_4{'RAWTOHEX'}{'pgdocumentation'} = '';
1162
- $oracle_functions_list_4{'RAWTOHEX'}{'pginstruction'} = '';
1163
- $oracle_functions_list_4{'RAWTOHEX'}{'comments'} = q{};
1162
+ $oracle_functions_list_4{'RAWTOHEX'}{'pgdocumentation'} = 'https://www.postgresql.org/docs/current/functions-binarystring.html ';
1163
+ $oracle_functions_list_4{'RAWTOHEX'}{'pginstruction'} = 'encode ';
1164
+ $oracle_functions_list_4{'RAWTOHEX'}{'comments'} = q{encode(arg, 'HEX') might be used instead };
1164
1165
$oracle_functions_list_4{'RAWTONHEX'}{'sourcedocumentation'} = 'http://docs.oracle.com/database/121/SQLRF/functions158.htm';
1165
1166
$oracle_functions_list_4{'RAWTONHEX'}{'pgdocumentation'} = '';
1166
1167
$oracle_functions_list_4{'RAWTONHEX'}{'pginstruction'} = '';
@@ -1177,6 +1178,10 @@ sub oracle_init {
1177
1178
$oracle_functions_list_4{'REGEXP_INSTR'}{'pgdocumentation'} = '';
1178
1179
$oracle_functions_list_4{'REGEXP_INSTR'}{'pginstruction'} = '';
1179
1180
$oracle_functions_list_4{'REGEXP_INSTR'}{'comments'} = q{};
1181
+ $oracle_functions_list_3{'REGEXP_LIKE'}{'sourcedocumentation'} = 'https://docs.oracle.com/database/121/SQLRF/conditions007.htm#SQLRF00501';
1182
+ $oracle_functions_list_3{'REGEXP_LIKE'}{'pgdocumentation'} = 'https://www.postgresql.org/docs/current/functions-matching.html';
1183
+ $oracle_functions_list_3{'REGEXP_LIKE'}{'pginstruction'} = '~ operator';
1184
+ $oracle_functions_list_3{'REGEXP_LIKE'}{'comments'} = q{};
1180
1185
$oracle_functions_list_4{'REGEXP_REPLACE'}{'sourcedocumentation'} = 'http://docs.oracle.com/database/121/SQLRF/functions163.htm';
1181
1186
$oracle_functions_list_4{'REGEXP_REPLACE'}{'pgdocumentation'} = 'https://www.postgresql.org/docs/current/static/functions-string.html';
1182
1187
$oracle_functions_list_4{'REGEXP_REPLACE'}{'pginstruction'} = 'regexp_replace';
0 commit comments