Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Allowing tuples such as ("a", "b") to be imported as ["a", "b"] #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abbas-gadhia
Copy link

Based on the code,
writeField#186 will pass the toIgnore as null, which will then be used in getTypeForBSON#154.
If i need to get into that if block on #154, (with respect to the comments between 149-153) i just cannot, since fs[0].getName will have to be null for it to equal toIgnore. and if its null, it will just throw an NPE.

All i want to do is create an array ["a", "b"] and that doesn't seem possible with the current code

Based on the code, 
writeField#186 will pass the `toIgnore` as null, which will then be used in getTypeForBSON#154.
If i need to get into that `if` block on mongodb#154, (with respect to the comments between 149-153) i just cannot, since fs[0].getName will have to be null for it to equal `toIgnore`. and if its null, it will just throw an NPE.

All i want to do is create an array ["a", "b"] and that doesn't seem possible with the current code
@evanchooly
Copy link
Contributor

Thanks for the patch but I'd really like to see some tests around this. The testing situation isn't great right now, however, and I'm trying to rectify that. I'll see if I can't get some time to get some better testing around this.

@llvtt llvtt added the pig label Mar 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants