Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-592

update of UTF8 text column gives error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.2.1
    • Fix Version/s: N/A
    • Component/s: configuration
    • Labels:
      None
    • Environment:
      centos7 server 10.2.13

      Description

      I've never experienced a problem with an exotic character saving to Mariadb before, but this trips up the JDBC driver prepared statement:

      actually when i paste in the example, it shows correctly here but jira prevents me from saving it; it might be a strange 4 byte character possibly as follows (commonly used in email being copied and pasted into a text field as html):

      😊

      The smiley face encoded as a UTF8 string causes the following error:

      (conn=78522) Incorrect string value: '\xF0\x9F\x98\x8A</...' for column 'comments' at row 1) #1366 (TransactionSet.java:1050)
      java.sql.SQLDataException: (conn=78522) Incorrect string value: '\xF0\x9F\x98\x8A</...' for column 'comments' at row 1
      

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            rdyas Robert Dyas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.