Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

splitpart returns truncated last part if it contains non ascii caracters #6194

monetdb-team opened this issue Nov 30, 2020 · 0 comments


Copy link

@monetdb-team monetdb-team commented Nov 30, 2020

Date: 2017-01-27 12:23:25 +0100
From: Gatis Ozolins <<g.ozolins>>
To: SQL devs <>
Version: 11.25.5 (Dec2016-SP1)
CC: @njnes

Last updated: 2017-03-03 10:24:27 +0100

Comment 24924

Date: 2017-01-27 12:23:25 +0100
From: Gatis Ozolins <<g.ozolins>>

Comment 24925

Date: 2017-01-27 12:24:15 +0100
From: Gatis Ozolins <<g.ozolins>>

select splitpart('100-ača' , '-', 2)

Actual output:

Expected output:

Comment 24933

Date: 2017-02-01 11:34:08 +0100
From: @njnes

Fixed by returning the full string (not just start + len (as in utf8 characters))

Comment 24937

Date: 2017-02-01 13:47:07 +0100
From: MonetDB Mercurial Repository <>

Changeset a0c273f4b16f made by Niels Nes in the MonetDB repo, refers to this bug.

For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=a0c273f4b16f

Changeset description:

fixed bug #6194, ie properly count number of bytes (not number of utf8 characters)

Comment 25117

Date: 2017-03-03 10:24:27 +0100
From: @sjoerdmullender

Dec2016-SP2 has been released, incorporating the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant