Returns the substring from string str before count occurrences of the delimiter delim.
Therefore substring_index() is not equivalent to PostgreSQL's split_part(). To get similar behaviour Internetsuggests suggests to "double wrap" string in substring_index():
According to documentation:
Therefore
substring_index()
is not equivalent to PostgreSQL'ssplit_part()
. To get similar behaviour Internet suggests suggests to "double wrap" string insubstring_index()
:This is exactly what this PR does. Hopefully this resolves #13.