You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Yuhao Bi (JIRA)" <ji...@apache.org> on 2015/06/25 04:52:04 UTC
[jira] [Updated] (PHOENIX-2073) Two bytes character in LIKE
expression is not allowed
[ https://issues.apache.org/jira/browse/PHOENIX-2073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuhao Bi updated PHOENIX-2073:
------------------------------
Attachment: PHOENIX-2073.patch
> Two bytes character in LIKE expression is not allowed
> -----------------------------------------------------
>
> Key: PHOENIX-2073
> URL: https://issues.apache.org/jira/browse/PHOENIX-2073
> Project: Phoenix
> Issue Type: Bug
> Reporter: Yuhao Bi
> Attachments: PHOENIX-2073.patch
>
>
> If you use some two bytes character like Chinese characters in like expression, you will get a SQLException.
> SELECT * FROM TEST.TEST WHERE name LIKE '中文%';
> java.sql.SQLException: ERROR 201 (22000): Illegal data. CHAR types may only contain single byte characters (中文)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)