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

Fix MySQL SqlSchemaDescriber on MySQL 8 #47

Merged
merged 12 commits into from
Oct 16, 2019

Conversation

tomhoule
Copy link
Contributor

@tomhoule tomhoule commented Sep 19, 2019

In queries, the column names are case-insensitive, but in the ResultSets
we get column names with their original case, which changed in MySQL 8.

Someone had the same problem on Stackoverflow:

https://stackoverflow.com/questions/54538448/what-are-the-changes-in-mysql-8-result-rowset-case


This fix works, but it feels like there could be a better, more general solution to that column name case sensitivity issue, what do you think? Maybe making accessing a column by name in a ResultSet in prisma-query case-insensitive.

@tomhoule tomhoule marked this pull request as ready for review September 19, 2019 16:12
@tomhoule
Copy link
Contributor Author

tomhoule commented Sep 20, 2019

TODO: test_each_connector with both versions of MySQL

edit: done

@janpio janpio added this to the Preview 13 milestone Sep 20, 2019
@tomhoule tomhoule mentioned this pull request Sep 20, 2019
@tomhoule tomhoule force-pushed the fix-schema-describer-on-mysql-8 branch 4 times, most recently from 037205a to d34f4b5 Compare September 25, 2019 13:58
@CLAassistant
Copy link

CLAassistant commented Sep 25, 2019

CLA assistant check
All committers have signed the CLA.

@tomhoule
Copy link
Contributor Author

Currently blocked on #63

@janpio janpio modified the milestones: Preview 13, Preview 14 Sep 26, 2019
@tomhoule tomhoule force-pushed the fix-schema-describer-on-mysql-8 branch from d34f4b5 to 61f1410 Compare September 30, 2019 15:18
@tomhoule tomhoule changed the title Fix MySQL SqlSchemaDescriber on MySQL 8 [WIP] Fix MySQL SqlSchemaDescriber on MySQL 8 Oct 1, 2019
@tomhoule tomhoule force-pushed the fix-schema-describer-on-mysql-8 branch 2 times, most recently from 81a6cc7 to 71bf23f Compare October 2, 2019 12:25
@janpio janpio modified the milestones: Preview 14, Preview 15 Oct 11, 2019
@tomhoule tomhoule force-pushed the fix-schema-describer-on-mysql-8 branch 3 times, most recently from fb99a54 to 5a85e90 Compare October 16, 2019 09:40
In queries, the column names are case-insensitive, but in the ResultSets
we get column names with their original case, which changed in MySQL 8.

Someone had the same problem on Stackoverflow:

https://stackoverflow.com/questions/54538448/what-are-the-changes-in-mysql-8-result-rowset-case
@tomhoule tomhoule force-pushed the fix-schema-describer-on-mysql-8 branch 7 times, most recently from 40598bc to 6f30c8f Compare October 16, 2019 13:51
@tomhoule tomhoule force-pushed the fix-schema-describer-on-mysql-8 branch from d2dc8b4 to 589aafb Compare October 16, 2019 14:24
@tomhoule tomhoule changed the title [WIP] Fix MySQL SqlSchemaDescriber on MySQL 8 Fix MySQL SqlSchemaDescriber on MySQL 8 Oct 16, 2019
@tomhoule tomhoule merged commit a348799 into master Oct 16, 2019
@tomhoule tomhoule deleted the fix-schema-describer-on-mysql-8 branch October 16, 2019 15:13
miguelff pushed a commit that referenced this pull request Apr 20, 2023
Replace f64 as the underlying Real type with Decimal.
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.

None yet

3 participants