Skip to content

Fix booleans and objects#291

Merged
brianc merged 1 commit into
brianc:masterfrom
barryhammen:fix_update_types
Jan 27, 2016
Merged

Fix booleans and objects#291
brianc merged 1 commit into
brianc:masterfrom
barryhammen:fix_update_types

Conversation

@barryhammen
Copy link
Copy Markdown
Contributor

Sqlite doesn't support TRUE and FALSE as boolean values, only 1 and 0.

Also, if trying to update using a JSON object, if the object didn't have an explicit .toString() method, it would end up trying to save '[object Object]' to the database. Switched out to use JSON.stringify in that case.

@brianc
Copy link
Copy Markdown
Owner

brianc commented Jan 27, 2016

@barryhammen I'm sorry it took me a while to get to this PR - got kinda behind on things at work for a while. This is fantastic. I'm gonna merge it & push a new version today! 💃 thank you sooo much!

brianc added a commit that referenced this pull request Jan 27, 2016
@brianc brianc merged commit cbd17ea into brianc:master Jan 27, 2016
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.

2 participants