PL/SQL parser - Phase 2 (MDEV-10764)

[MDEV-12090] Make INSTR understand optional parameters for position and occurence Created: 2017-02-20  Updated: 2023-10-20

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Technical task Priority: Major
Reporter: Alexander Barkov Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: Compatibility


 Description   

Currently the built-in function INSTR understands two parameters:

INSTR(string, substring)

We'll extend INSTR to understand two extra optional parameters:

INSTR(string, substring [,position [,occurence])

where:

  • position is an nonzero integer indicating the character of string where to begin the search. If position is negative, then INSTR counts backward from the end of string and then searches backward from the resulting position.
  • occurrence is a positive integer indicating which occurrence of string to search for.

Generated at Thu Feb 08 07:55:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.