Skip to content

fix(Data/PostgreSQL): Map UUIDOID to FDT_UUID instead of FDT_BLOB#5113

Merged
matejk merged 1 commit intomainfrom
4924-postgresql-uuid-type
Dec 18, 2025
Merged

fix(Data/PostgreSQL): Map UUIDOID to FDT_UUID instead of FDT_BLOB#5113
matejk merged 1 commit intomainfrom
4924-postgresql-uuid-type

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Dec 17, 2025

Summary

Fix PostgreSQL UUID column type mapping so that UUID columns are properly recognized and can be converted to Poco::UUID.

Problem

In PostgreSQLTypes.cpp, UUIDOID was incorrectly mapped to FDT_BLOB, causing UUID columns to be treated as Poco::Data::LOB<unsigned char> instead of Poco::UUID.

This prevented users from using recordset.value("uuid").convert<Poco::UUID>() on PostgreSQL UUID columns.

Solution

Change the mapping from FDT_BLOB to FDT_UUID. The extractors (Extractor.cpp, BinaryExtractor.cpp) already have proper UUID extraction support for UUIDOID.

Fixes #4924

@matejk matejk merged commit bce1c89 into main Dec 18, 2025
86 checks passed
@matejk matejk deleted the 4924-postgresql-uuid-type branch December 18, 2025 09:59
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.

Data/PostgreSQL: RecordSet does not recognize UUID field

1 participant