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

Call Item_field::fix_outer_field only on first execution

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      During the second execution of a prepared statement or procedure, calling Item_field::fix_outer_field can be problematic. For example
      TODO: pull example out of test in MDEV-35673

      Amongst the many things that fix_outer_field does, it populates Item_field::depended_from, which points to the SELECT_LEX where the Item_field is resolved. As SELECT_LEX structures are durable across executions, we can use this to avoid calling fix_outer_field during subsequent executions, also avoid a lot of issues related to permanent transformations that happen during optimization in the first execution.

      Attachments

        Issue Links

          Activity

            People

              Johnston Rex Johnston
              Johnston Rex Johnston
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.