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

mysql_stmt_fetch: required buffer for zerofil integer is 1 more than reported length

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.9
    • Fix Version/s: 3.0.10
    • Labels:
      None

      Description

      mysql_fetch_fields() says a "smallint(5) unsigned zerofill" has a (max)length of 5.

      However If I use mysql_stmt_fetch() with a MYSQL_BIND with buffer_length of 5 I get return code 101 (MYSQL_DATA_TRUNCATED).

      With a buffer of 6 it works fine.

      With 10.3.11 a buffer of 5 was working fine.

      Related: https://github.com/perl5-dbi/DBD-mysql/issues/304

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                georg Georg Richter
                Reporter:
                dveeden Daniël van Eeden
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: