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

Two bytes character in LIKE expression is not allowed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.5.0, 4.4.1
    • None
    • 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-v1.patch
          3 kB
          Yuhao Bi
        2. PHOENIX-2073.patch
          2 kB
          Yuhao Bi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: