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

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.0.9
    • 3.1
    • None
    • 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

        1. mariadb103_prepare_zerofil.c
          2 kB
          Daniël van Eeden
        2. test.sh
          0.5 kB
          Daniël van Eeden

        Issue Links

          Activity

            People

              georg Georg Richter
              dveeden Daniël van Eeden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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