Goland ubale to resolve table name in a formatted string

I have a golang string like this:
 

const UserTbl = “users”


query := fmt.Sprintf("insert into `%s` (`phone`, `email`, `totp_key`, `recovery_key`, `first_name`, `last_name`, `title`, `created_on`) values(?,?,?,?,?,?,?,?)", UserTbl)

Goland keeps complaining that it cannot resolve the table name.

All data sources are added to the project with correct SQL dialect selected.

0

请先登录再写评论。