Skip to content

Conversation

@jokr
Copy link

@jokr jokr commented Nov 9, 2025

I am debugging an issue with the Drizzle MySQL proxy. The callback is expected to return a object with three fields:

  • rows
  • insertId
  • affectedRows

However, the code handling the callback here destructures the rows field and then expects the insertID and affectedRows field on that.

This throws.

The doc seem out of date here as well:
https://orm.drizzle.team/docs/connect-drizzle-proxy

It does mention that on certain method a different response is expected. However, I can't validate this in the code and the mode execute here is never mentioned in the docs.

I am debugging an issue with the Drizzle MySQL proxy. The callback is expected to return a object with three fields:
- rows
- insertId
- affectedRows

However, the code handling the callback here destructures the rows field and then expects the insertID and affectedRows field on that.

This throws.

The doc seem out of date here as well:
https://orm.drizzle.team/docs/connect-drizzle-proxy

It does mention that on certain `method` a different response is expected. However, I can't validate this in the code and the mode `execute` here is never mentioned in the docs.
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.

1 participant