Skip to content

find a string based primaryKey called id#855

Merged
sdepold merged 3 commits intosequelize:masterfrom
whito:master
Aug 27, 2013
Merged

find a string based primaryKey called id#855
sdepold merged 3 commits intosequelize:masterfrom
whito:master

Conversation

@whito
Copy link
Copy Markdown
Contributor

@whito whito commented Aug 23, 2013

I am using a String instead of an Integer for my id column ( I use a UUID ) and the find() function wasn't working. This pull request allows find to work when using a non-Integer based id instead of an Integer based id.

@durango
Copy link
Copy Markdown
Member

durango commented Aug 23, 2013

Are you sure this isn't already fixed in #master? I thought I added a PR for this a while back...

@whito
Copy link
Copy Markdown
Contributor Author

whito commented Aug 23, 2013

I came across the problem yesterday... was just the extra check for id in dao-factory:

(attributeName !== 'id')

which wouldn't allow the primaryKeys to be populated

@whito
Copy link
Copy Markdown
Contributor Author

whito commented Aug 23, 2013

Strange... Travis CI fails one test... but I don't think its related to this PR... any ideas what it is?

@durango
Copy link
Copy Markdown
Member

durango commented Aug 23, 2013

Strange... Travis CI fails one test... but I don't think its related to this PR... any ideas what it is?

Github says its fine O-o

@whito
Copy link
Copy Markdown
Contributor Author

whito commented Aug 23, 2013

Ya I pushed a teeny change in the PR to start travis again and it looks good now ;)

@sdepold sdepold merged commit 82c3783 into sequelize:master Aug 27, 2013
@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 82c3783 on whito:master into * on sequelize:master*.

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