Conversation
|
@hiroebe Thanks for the fix. Could I ask you to add a new end-to-end test that includes the examples from #2432? To do this, create a new directory inside the Thanks! |
|
@kyleconroy Thanks for the instruction. I've added a new end-to-end test. |
| INSERT INTO foo (id) VALUES (?) | ||
| ` | ||
|
|
||
| func (q *Queries) CreateFoo(ctx context.Context, id uint32) error { |
There was a problem hiding this comment.
Note: The id parameter was previously generated as int32 while it's unsigned in MySQL schema.
There was a problem hiding this comment.
Yep, this will be a breaking change, but it's necessary, as the existing code can lead to overflow errors.
A fix to the original change (sqlc-dev#1746) that added support for unsigned integers. While this is a breaking change, it's impact should be smaller than the previous change. * fix missing unsigned param * add end-to-end test for unsigned_params
Fixes #2432