Closed
Description
- In my table, I have a field that is of type
INTEGER
. - When I generate the code that takes in the field to be inserted into the database, I need to specify it as a string.
- Upon INSERT, the value is inserted into the database as a number.
- My SQLC command for the insert expects a
return :one
and the same field returns an integer.
Example
-- name: CreateOne :one
INSERT INTO table (something) VALUES ($1) RETURN *;
The function createOne
is generated, but the type for something
field during insert is incorrect (in this case a string rather than an integer). However, the return type is a number which is correct.
Even though it is not a big issue, it causes some inconvenience.
Metadata
Metadata
Assignees
Labels
No labels