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

Function initCap treats an apostrophe as a word separator #63419

Open
ivkhokhlachev opened this issue May 6, 2024 · 1 comment
Open

Function initCap treats an apostrophe as a word separator #63419

ivkhokhlachev opened this issue May 6, 2024 · 1 comment

Comments

@ivkhokhlachev
Copy link

How to reproduce
Version 24.2.2, reproduced on the latest 24.4.1 in Clickhouse Playground

Run the query:
SELECT initCap('miley cyrus'' "mother''s daughter"')

Current result

Miley Cyrus' "Mother'S Daughter"

Expected result

Miley Cyrus' "Mother's Daughter"

@den-crane
Copy link
Contributor

den-crane commented May 6, 2024

psql (15.3 (Debian 15.3-0+deb12u1), server 9.6.24)

psql> SELECT initCap('miley cyrus'' "mother''s daughter"');
             initcap
----------------------------------
 Miley Cyrus' "Mother'S Daughter"


psql> SELECT initCap('JK. Rowling');
   initcap
-------------
 Jk. Rowling


psql> SELECT initCap('joe McAdam');
  initcap
------------
 Joe Mcadam

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

No branches or pull requests

2 participants