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

Prepared statement needs to be re-prepared

    XMLWordPrintable

Details

    Description

      Stored procedures contain statement like:
      SET @vartmp = ...;
      PREPARE _stmt FROM @vartmp;
      EXECUTE _stmt;

      Sometimes the execution fails with error: mysql_errno:1615, mysql_warning_count:0, mysql_sqlstate:'HY000', mysql_error:'Prepared statement needs to be re-prepared'

      No idea how to reproduce stably this issue. It happens randomly on various objects from time to time. No DDL operations during the execution.

      MariaDB configuration:
      table_open_cache = 60000
      table_definition_cache = 60000

      I'm happy to provide any information required to solve the problem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Mike Ilin Mike Ilin
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.