Skip to content

resolve use index / ignore index and use_index() / ignore_index() when building ID of bindings #15909

Open
@eurekaka

Description

Development Task

For these bind_sqls:

  • select * from t use index(idx) where a > 1
  • select /*+ use_index(@sel_1 t, idx) */ from t where a > 1

they are same actually but they have different ID now.

For these bind_sqls:

  • select * from t ignore index(idx) where a > 1
  • select /*+ use_index(@sel_1 t, idx) */ from t where a > 1

they are same actually but they have different ID now.

Resolve them to avoid potential duplicate bindings in mysql.bind_info.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions