Skip to content

JSON: Cast key when using the equality operator - #4298

Merged
janmeier merged 1 commit into
sequelize:masterfrom
johanneswuerbach:jsonb-cast-keys
Aug 12, 2015
Merged

janmeier merged 1 commit into
sequelize:masterfrom
johanneswuerbach:jsonb-cast-keys

Conversation

@johanneswuerbach

Copy link
Copy Markdown
Contributor

Fixed operator does not exist exception when using queries like:

{
  'data.age': 4
}

Fixes: #3824

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just about to comment on the non-DRY-ness but you were quicker than me ;)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, my bad. Committed an early version of this PR and not the refactored one .... :D

@janmeier

Copy link
Copy Markdown
Member

Remember to run jshint, you have an undefined variable

Fixed `operator does not exist` exception when using queries like:
```js
{
  'data.age': 4
}
```
@johanneswuerbach

Copy link
Copy Markdown
Contributor Author

Sorry, fixed.

janmeier added a commit that referenced this pull request Aug 12, 2015
JSON: Cast key when using the equality operator
@janmeier
janmeier merged commit a6508a8 into sequelize:master Aug 12, 2015
@janmeier

Copy link
Copy Markdown
Member

Cool, thanks :)

@janmeier

Copy link
Copy Markdown
Member

Not sure this fixes #3824 though, we need to add a case for casting to boolean

@johanneswuerbach
johanneswuerbach deleted the jsonb-cast-keys branch August 12, 2015 09:16
@yonjah yonjah mentioned this pull request Aug 7, 2017
4 of 5 tasks
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