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

Make UUID primary keys work #429

Merged
merged 1 commit into from
Dec 10, 2013
Merged

Make UUID primary keys work #429

merged 1 commit into from
Dec 10, 2013

Conversation

marclennox
Copy link
Contributor

I'm using Rails 4 with UUID primary keys (postgres), which breaks some of the "hand crafted" taggable queries. UUIDs need to be handled as strings. I've put together a quick patch that simply puts single quotes around the ID values, which works and doesn't break integer primary keys. There's probably a more elegant solution to this though.

@bf4
Copy link
Collaborator

bf4 commented Dec 10, 2013

Can you rebase against master and force push?

@marclennox
Copy link
Contributor Author

Done.

On 10 December 2013 13:25, Benjamin Fleischer notifications@github.hscsec.cnwrote:

Can you rebase against master and force push?


Reply to this email directly or view it on GitHubhttps://github.com//pull/429#issuecomment-30253839
.

@bf4
Copy link
Collaborator

bf4 commented Dec 10, 2013

Seems fine to me. I'd be surprised if a model id had single quotes in it.

bf4 added a commit that referenced this pull request Dec 10, 2013
Make UUID primary keys work by quoting them
@bf4 bf4 merged commit ec11676 into mbleigh:master Dec 10, 2013
tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request Mar 19, 2021
Make UUID primary keys work by quoting them
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