Skip to content

Conversation

@slively
Copy link

@slively slively commented Dec 13, 2014

For the below model property I was not able to set the value to false. When I removed the NOT NULL constraint then the field would get set to NULL. This looked correct in the API, but was wrong in the database.

"approved": {
"type": "Boolean",
"required": true,
"length": null,
"precision": null,
"scale": null,
"postgresql": {
"columnName": "approved",
"dataType": "boolean",
"dataLength": null,
"dataPrecision": null,
"dataScale": null,
"nullable": "NO"
}
}

@slnode
Copy link

slnode commented Dec 13, 2014

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

raymondfeng added a commit that referenced this pull request Dec 13, 2014
allow false value for BOOLEAN NOT NULL column
@raymondfeng raymondfeng merged commit cf3c4fd into loopbackio:master Dec 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants