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

Handle PostgreSQL binary resources #229

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Handle PostgreSQL binary resources #229

wants to merge 4 commits into from

Conversation

jankal
Copy link

@jankal jankal commented Nov 12, 2023

Description

PostgreSQL (PDO) returns binary values as resources. Converting those to UUIDs is possible with this change.

Motivation and context

Fixes #225 where the uuid_binary type was unusable with PostgreSQL.

How has this been tested?

Added 1 new unit test, cross-checked with MySQL 8 and MariaDB 10.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

@jankal jankal marked this pull request as ready for review November 12, 2023 23:54
@jankal jankal requested a review from ramsey as a code owner November 12, 2023 23:54
@thePanz
Copy link

thePanz commented Jan 16, 2024

Thanks for the PR @jankal , this solves the issue!

Any updates on this PR @ramsey ?

@ramsey
Copy link
Owner

ramsey commented Jan 17, 2024

Thanks for the reminder, @thePanz. I'll try to take a look very soon.

@tasselchof tasselchof mentioned this pull request Apr 18, 2024
7 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.

PostgreSQL UUID type returns a binary stream; DB to PHP conversion is always null
3 participants