- Notifications
You must be signed in to change notification settings - Fork 978
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageNew issues that hasn't been reviewedNew issues that hasn't been reviewed
Description
Version
1.19.1
What happened?
What happened?
When usequery_parameter_limitconfig, the generated code does not import the package.
Andemit_interface=true, the generatedQuerier interfacedoes not import thesql.NullTimeortimepackage.config:
query_parameter_limit: 2emit_interface: true- SQL:
-- name: MarkNoticeDone :execUPDATE`notice`SET`status`='done', `notice_at`=? WHERE`id`= ?; -- name: CreateNotice :execINSERT INTO`notice` (`cnt`, `created_at`) VALUES (?, ?);- gen code:
notice.sql.go:
import ( "context""database/sql"// this line not gen"encoding/json""time" ) func (q*Queries) MarkNoticeDone(ctx context.Context, noticeAt sql.NullTime, iDuint64) error{_, err:=q.exec(ctx, q.markNoticeDoneStmt, markNoticeDone, noticeAt, iD) returnerr }querier.go:
import ( "context""database/sql"// this line not gen"time"// this line not gen ) typeQuerierinterface{CreateNotice(ctx context.Context, cntstring, createdAt time.Time) errorMarkNoticeDone(ctx context.Context, noticeAt sql.NullTime, iDuint64) error }What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go
stepan-romankov
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageNew issues that hasn't been reviewedNew issues that hasn't been reviewed