Files
bun.sh/test/regression
Claude Bot 57c662b623 fix(sql): improve error message for Set/Map in PostgreSQL queries
When passing Set, WeakSet, Map, or WeakMap objects as PostgreSQL query
parameters, the error message now clearly explains why these types aren't
supported and provides guidance on how to convert them.

Before: "Unknown object is not a valid PostgreSQL type"
After: "Set is not a valid PostgreSQL type. Use Array.from(set) or [...set]
       to convert it to an array first."

This helps users understand the issue and how to fix it rather than
receiving a generic error message.

Fixes #25749

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 12:08:42 +00:00
..