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.
请先登录再写评论。
It looks like a known issue, please follow IJPL-19224 (https://youtrack.jetbrains.com/issue/IJPL-19224) for updates.
To temporarily resolve this false warning, add the following line before your query:
//goland:noinspection SqlResolve