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 wrong registration logic for LanguageDriver #914

Closed
wants to merge 2 commits into from
Closed

Fix wrong registration logic for LanguageDriver #914

wants to merge 2 commits into from

Conversation

splade
Copy link

@splade splade commented Feb 14, 2017

In the function public void register(LanguageDriver instance), when the local variable driver == null, we should put the "instance" object
in the "LANGUAGE_DRIVER_MAP", NOT the "driver" object.

In the function "public void register(LanguageDriver instance)", when the local variable "driver" is NULL, we should put the "instance" object
in the "LANGUAGE_DRIVER_MAP", NOT the "driver" object.
…public-void-register(LanguageDriver-instance)"-of-the-class-"LanguageDriverRegistry"

Fix a logic error
@kazuki43zoo kazuki43zoo self-assigned this Feb 14, 2017
@kazuki43zoo kazuki43zoo added this to the 3.4.3 milestone Feb 14, 2017
@kazuki43zoo
Copy link
Member

@splade

Thank you for your contributing !
I've fix via 080db72 (adding test cases and polishing some logic).

@kazuki43zoo kazuki43zoo changed the title Fix a logic error Fix wrong registration logic for LanguageDriver Feb 14, 2017
pulllock pushed a commit to pulllock/mybatis-3 that referenced this pull request Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants