Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-342

Implement strpos(string, substring) function

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: Function/UDF
    • Labels:
      None

      Description

      Function Definition

      int strpos(string text, substring text)
      

      Description

      This function finds the location of specified substring.

      • If string or substring is null, the result should be null.
      • If substring is '', the result should be 1.
      • If there is no matched substring, the result should be 0.
      • The result is one-based index.

      Example.

      hyunsik=> select strpos('tajo','jo');
       strpos 
      --------
            3
      (1 row)
      

        Attachments

        1. TAJO-342.patch
          6 kB
          Hyoungjun Kim
        2. TAJO-342_2.patch
          9 kB
          Hyoungjun Kim

          Activity

            People

            • Assignee:
              hjkim Hyoungjun Kim
              Reporter:
              hyunsik Hyunsik Choi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: