Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12579

Incorrect arguments to mysqld_stmt_execute when using LOBs

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2.5
    • 10.2.7
    • Prepared Statements
    • None
    • Linux Debian 8.6
    • 10.2.7-1

    Description

      When binding LOBs with MYSQL_TYPE_VAR_STRING or MYSQL_TYPE_LONG_BLOB and providing data with mysql_stmt_send_long_data(), we get the following error:

      -1210: Incorrect arguments to mysqld_stmt_execute
      

      The same C code works find with Oracle MySQL client.

      Attachments

        1. mdev12579.c
          0.9 kB
          Georg Richter
        2. MDEV-12579.patch
          0.6 kB
          Georg Richter

        Activity

          revision-id: 1d90a8304bf0983a91044ca451129552388b026d (mariadb-10.2.6-54-g1d90a8304bf)
          parent(s): 0992be927e1c686c39c39fe53fc2a7869d55143d
          committer: Oleksandr Byelkin
          timestamp: 2017-06-22 09:52:02 +0200
          message:

          MDEV-12579: Incorrect arguments to mysqld_stmt_execute when using LOBs

          Parameters can be MYSQL_TYPE_VARCHAR for long data load.

          sanja Oleksandr Byelkin added a comment - revision-id: 1d90a8304bf0983a91044ca451129552388b026d (mariadb-10.2.6-54-g1d90a8304bf) parent(s): 0992be927e1c686c39c39fe53fc2a7869d55143d committer: Oleksandr Byelkin timestamp: 2017-06-22 09:52:02 +0200 message: MDEV-12579 : Incorrect arguments to mysqld_stmt_execute when using LOBs Parameters can be MYSQL_TYPE_VARCHAR for long data load. —

          github branch is bb-10.2-MDEV-12579

          sanja Oleksandr Byelkin added a comment - github branch is bb-10.2- MDEV-12579

          Ok to push! Thanks.

          bar Alexander Barkov added a comment - Ok to push! Thanks.

          10.3 has it already fixed, so only test suite should be merged.

          sanja Oleksandr Byelkin added a comment - 10.3 has it already fixed, so only test suite should be merged.

          Verified with 10.2.8

          sebflaesch FLAESCH Sebastien added a comment - Verified with 10.2.8

          People

            sanja Oleksandr Byelkin
            sebflaesch FLAESCH Sebastien
            Votes:
            0 Vote for this issue
            Watchers:
            6 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.