-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(mysql): getVersion returning undefined for PolarDB-X 2.0 #11837
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
base: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
When using the distributed database PolarDB-X 2.0 compatible with MYSQL 8.0,start a nestjs server will show a error:
|
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your help @Missna
Can you add a test to validate this change?
commit: |
A test for PolarDB or for MySQL? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a test that shows that this fix is solving the issue.
if this was an issue with MySql, let's use it.
UPDATE
I saw your message, it's a PolarDB issue. Anyway, Let's add a test for mysql to validate the correct beaviour.
pkuczynski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, simple test would be useful...
|
I'm afraid that fixing the version return is not enough to make PolarDBX to work properly with TypeORM, after getting the version it fails at every test saying You can play around with their docker image and see yourself. (Here was a big message with logs from their container to demonstrate what I'm talking about but docker ate up all the RAM I had before I could send the comment) |
Description of change
Pull-Request Checklist
masterbranchtests/**.test.ts)docs/docs/**.md)