Skip to content

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