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: return null for nullable RelationId() column #6848

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

anttimaki
Copy link
Contributor

Fix issue where attempting to cast bigints to strings also did it for
null values.

Fix issue where transformRelationIds() filtered out null values when
it should only be done for undefined.

Closes: #6815

Fix issue where attempting to cast bigints to strings also did it for
null values.

Fix issue where transformRelationIds() filtered out null values when
it should only be done for undefined.

Closes: typeorm#6815
@pleerock pleerock merged commit 7147a0d into typeorm:master Oct 5, 2020
@pleerock
Copy link
Member

pleerock commented Oct 5, 2020

Thank you!

@imnotjames imnotjames added the hacktoberfest-accepted label hacktoberfest label Oct 7, 2020
@anttimaki anttimaki deleted the issue-6815 branch October 10, 2020 05:48
zaro pushed a commit to zaro/typeorm that referenced this pull request Jan 12, 2021
Fix issue where attempting to cast bigints to strings also did it for
null values.

Fix issue where transformRelationIds() filtered out null values when
it should only be done for undefined.

Closes: typeorm#6815
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted label hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RelationId() on nullable relation returns 'null' string
3 participants