You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that when using sqlc.slice('names'), it really behaves differently, compared to what it is generated in golang
Expectation:
it should make the names as array like data once it's converted to typescript
Outcome:
it converts to string | null type only!
in Golang, it is correctly converted and the logic that replaces the docblock SQL Slice is being written properly
In typescript, it is wrongly interpreted, basically mysql2 requires to be an array so that it will do its job to wrap it into a comma separated values.
The text was updated successfully, but these errors were encountered:
I've noticed that when using sqlc.slice('names'), it really behaves differently, compared to what it is generated in golang
Expectation:
Outcome:
in Golang, it is correctly converted and the logic that replaces the docblock SQL Slice is being written properly

In typescript, it is wrongly interpreted, basically mysql2 requires to be an array so that it will do its job to wrap it into a comma separated values.

The text was updated successfully, but these errors were encountered: