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

Implement strpos(string, substring) function

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.8.0
    • Function/UDF
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: