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
When generating a copyfrom query in mysql and setting the query_parameter_limit to 0, sqlc incorrectly generates an invalid go file, calling the (e *mysqltsv.Encoder).AppendString(s string) function with an array of structs as the argument. This code does not compile.
Relevant log output
No response
Database schema
CREATETABLEauthor (
id BIGINT UNSIGNED PRIMARY KEY,
name textNOT NULL
);
SQL queries
-- name: CreateAuthors :copyfromINSERT INTO author
(name)
VALUES (?);
Version
1.26.0
What happened?
When generating a copyfrom query in mysql and setting the
query_parameter_limit
to0
, sqlc incorrectly generates an invalid go file, calling the(e *mysqltsv.Encoder).AppendString(s string)
function with an array of structs as the argument. This code does not compile.Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/34328b7faed42fedb392c42cbe3a6851ebce76e304fcf091fe0f81368d52273c
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: