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

[Question] PostgreSQL's pgcrypto uuid generator #2706

Closed
Simperfit opened this issue Apr 27, 2017 · 7 comments
Closed

[Question] PostgreSQL's pgcrypto uuid generator #2706

Simperfit opened this issue Apr 27, 2017 · 7 comments

Comments

@Simperfit
Copy link

Simperfit commented Apr 27, 2017

The postgreSQL Driver does not support pgcrypto's function to generate uuid (gen_random_uuid() returns uuid, it does support uuid-ossp but it is currently unavailable in some provider like Google Cloud SQL (postgres).

Should dbal supports pgcrypto too ?

I'm willing to help contributing to this if it's the case

@Ocramius
Copy link
Member

Should dbal supports pgcrypto too ?

Depends on whether it's provided OOTB, and if so, which version implemented it

@Simperfit
Copy link
Author

@Ocramius It is, just like uuid-ossp, I think it exist since a long time ago (maybe pgsql 8.2)

@Ocramius
Copy link
Member

@Simperfit so I suppose you just want to change

return 'UUID_GENERATE_V4()';
?

@Simperfit
Copy link
Author

@Ocramius I think we should add a new platform and detect if it's either one or either the other in order to not do a BC Break with existing apps that use uuid-ossp.

WDYT ?

@Ocramius
Copy link
Member

@Simperfit if we're moving to something that is more widely supported, and the output is the same, then it's fine to just change it as-is

Simperfit added a commit to Simperfit/dbal that referenced this issue Jun 13, 2017
@morozov
Copy link
Member

morozov commented Oct 3, 2018

The UUID functionality is deprecated in DBAL by #3212.

@github-actions
Copy link

github-actions bot commented Aug 1, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants