Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2073

Two bytes character in LIKE expression is not allowed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0, 4.4.1
    • Labels:
      None

      Description

      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 (中文)

        Attachments

        1. PHOENIX-2073.patch
          2 kB
          Yuhao Bi
        2. PHOENIX-2073-v1.patch
          3 kB
          Yuhao Bi

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              byh0831 Yuhao Bi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: