Skip to content

[MYSQL] Fix columnInfo showing column multiple times.#69

Open
Nitwel wants to merge 1 commit intoknex:masterfrom
Nitwel:fix-column-info
Open

[MYSQL] Fix columnInfo showing column multiple times.#69
Nitwel wants to merge 1 commit intoknex:masterfrom
Nitwel:fix-column-info

Conversation

@Nitwel
Copy link

@Nitwel Nitwel commented Sep 6, 2021

closes #63

@rijkvanzanten
Copy link
Collaborator

@oreilles looking good>?

@oreilles
Copy link
Contributor

oreilles commented Sep 7, 2021

I would do a left join lateral with limit 1 instead, that would avoid calculating the row number and adding the last where close.
EDIT: apparently not possible, I thought it was Postgres, LATERAL only was added to MySQL in 8.0.

@oreilles
Copy link
Contributor

oreilles commented Sep 7, 2021

We should add a test for this adding multiple indicies on one column. And for other vendors as well

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MySQL columnInfo(): Duplicated rows when more than 1 index exists for a field

3 participants