Skip to content

fix: MySQL binary/varbinary columns typed as Buffer instead of string#5914

Open
MrAnderson323 wants to merge 2 commits into
drizzle-team:mainfrom
MrAnderson323:hyphaforge/issue-1188-mqk023xm
Open

fix: MySQL binary/varbinary columns typed as Buffer instead of string#5914
MrAnderson323 wants to merge 2 commits into
drizzle-team:mainfrom
MrAnderson323:hyphaforge/issue-1188-mqk023xm

Conversation

@MrAnderson323

Copy link
Copy Markdown

MySQL2 driver parses binary and varbinary columns as Buffer objects, not strings. This PR updates the TypeScript types for MySqlBinary and MySqlVarbinary column builders to reflect this — both the insert/select data types now use Buffer instead of string. This matches the actual runtime behavior of the mysql2 library.


Closes #1188

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.

[BUG]: MySQL2 binary/varbinary types are incorrectly typed as strings instead of buffers

1 participant