Details
-
Technical task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
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.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Labels | Compatibility |
Parent |
|
MDEV-10764 [ 57940 ] |
Support case ID | not-26307 |
NRE Projects | AC-2610/DEFERRED |
Assignee | Alexander Barkov [ bar ] |
Workflow | MariaDB v3 [ 79691 ] | MariaDB v4 [ 140224 ] |
Description |
Currently the built-in function {{INSTR}} understands two parameters: {code:sql} INSTR(string, substring) {code} We'll extend {{INSTR}} to understand two extra optional parameters: {code:sql} INSTR(string, substring [,position [,occurence]) {code} 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. |
Currently the built-in function {{INSTR}} understands two parameters:
{code:sql} INSTR(string, substring) {code} We'll extend {{INSTR}} to understand two extra optional parameters: {code:sql} INSTR(string, substring [,position [,occurence]) {code} 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. |
Link | This issue is duplicated by MENT-2266 [ MENT-2266 ] |