Skip to content

fix(source-mysql): Add schema name condition to list columns query#11623

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:fix/list_columns_by_schema_name
Jun 15, 2023
Merged

fix(source-mysql): Add schema name condition to list columns query#11623
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:fix/list_columns_by_schema_name

Conversation

@erezrokah
Copy link
Member

Summary

Fixes #11619.
The issue is that users is an existing table with a performance_schema, see https://dev.mysql.com/doc/mysql-perfschema-excerpt/8.0/en/performance-schema-users-table.html.

If someone creates a users table listing columns from INFORMATION_SCHEMA.COLUMNS only by table name gives us the columns from both the manually created users table and the performance one.

The solution is to add the schema name to the columns query.

@erezrokah erezrokah requested review from a team, bbernays and disq and removed request for a team and bbernays June 15, 2023 13:54
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jun 15, 2023
@kodiakhq kodiakhq bot merged commit f0f8638 into cloudquery:main Jun 15, 2023
kodiakhq bot pushed a commit that referenced this pull request Jun 15, 2023
🤖 I have created a release *beep* *boop*
---


## [1.2.2](plugins-source-mysql-v1.2.1...plugins-source-mysql-v1.2.2) (2023-06-15)


### Bug Fixes

* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 4d76231 ([#11532](#11532)) ([6f04233](6f04233))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to d864719 ([#11611](#11611)) ([557a290](557a290))
* **source-mysql:** Add schema name condition to list columns query ([#11623](#11623)) ([f0f8638](f0f8638))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Getting an unknown column error, when that column doesn't exist in the source

3 participants