Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle Function-based indexes shows columns with duplicate position and wrong expression #12261

Closed
Bart-De-Pauw opened this issue Apr 27, 2021 · 4 comments

Comments

@Bart-De-Pauw
Copy link

System information:

  • Operating system: Windows Server 2016 Version 1607
  • DBeaver version: 21.0.3 ce
  • Additional extensions: not applicable

Connection specification:

  • Database name and version: Oracle 12.1.0.2.0
  • Driver name: ojdbc8 19.3.0.0
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? not applicable

Describe the problem you're observing:

When viewing function-based indexes in oracle, it shows duplicate position and wrong expression
Only visible after expanding the index name by pressing the '>' symbol in front of the index name.
Sorting the columns does not help.

image

Steps to reproduce, if exist:

CREATE TABLE DEPT2 (DEPTNO NUMBER(2,0), DNAME VARCHAR2(14), LOC VARCHAR2(13));

CREATE INDEX dept2_idx1    ON dept2(dname);                    --correctly displayed
CREATE INDEX dept2_idx2    ON dept2(dname,loc);                --correctly displayed
CREATE INDEX dept2_fb_idx1 ON dept2(lower(dname));             --correctly displayed
CREATE INDEX dept2_fb_idx2 ON dept2(lower(dname),lower(loc));  --displays duplicate position, expression is correct
CREATE INDEX dept2_fb_idx3 ON dept2(lower(loc));               --correctly displayed
CREATE INDEX dept2_fb_idx4 ON dept2(lower(loc),lower(dname));  --displays duplicate POSITION, expression is wrong

Include any warning/errors/backtraces from the logs

@LonwoLonwo
Copy link
Member

Thanks for the bug report.

@LonwoLonwo LonwoLonwo added this to the 21.1.1 milestone Apr 28, 2021
@tati-kru tati-kru added the sp:2 label May 31, 2021
ShadelessFox added a commit that referenced this issue Jun 1, 2021
serge-rider added a commit that referenced this issue Jun 1, 2021
…fix#12261

#12261 Fix results duplication for multi-column indexes
@ShadelessFox
Copy link
Member

Fixed:

image

@Matvey16 Matvey16 self-assigned this Jun 4, 2021
@Matvey16
Copy link
Member

Matvey16 commented Jun 4, 2021

Verified

@Matvey16 Matvey16 closed this as completed Jun 4, 2021
@Bart-De-Pauw
Copy link
Author

Thank you for the swift resolution! Keep up the good work.

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

No branches or pull requests

5 participants