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
Hello, i have idea to improve plugin.
When i writing code with golang sql driver, i often don't see bug with inconsistency between args and placeholders.
Here is example:
db.Query(`SELECT * FROM orders WHERE id = ? AND customer_id = ?`, orderId)
In this case, i missed argument for custom_id = ?, and this errors occurs only in runtime :(.
So, plugin can check and highlight this bug, like in fmt.Sprintf when plugin highlight inconsistency.
P.s. Sorry for my English.
The text was updated successfully, but these errors were encountered:
sintanial
changed the title
database/sql: Auto-detect consistency between args and placeholdes
database/sql: Auto-detect inconsistency between args and placeholdes
Feb 23, 2017
sintanial
changed the title
database/sql: Auto-detect inconsistency between args and placeholdes
database/sql: (improve idea) Auto-detect inconsistency between args and placeholdes
Feb 23, 2017
Hello, i have idea to improve plugin.
When i writing code with golang sql driver, i often don't see bug with inconsistency between args and placeholders.
Here is example:
In this case, i missed argument for
custom_id = ?
, and this errors occurs only in runtime :(.So, plugin can check and highlight this bug, like in
fmt.Sprintf
when plugin highlight inconsistency.P.s. Sorry for my English.
The text was updated successfully, but these errors were encountered: