Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-155

Values read from MySQL TEXT columns are not null-terminated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2.0
    • Fix Version/s: 2.2.3, 3.0.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Centos6 64

      Description

      Using prepared statements to read MySQL TEXT columns leads to following results:

      • mysql_bind.length contains the correct length of the output text.
      • mysql_bind.buffer contains the required string but is not null-terminated.

      Unfortunately I could not find exact specification for this behaviour but since it differs from MySQL C Connector and handling of other string types, I suppose it could be a bug.

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            kilya Alex Kiliski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: