This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Add support for binding parameters #428
Open
Description
I am using the github.com/go-sql-driver/mysql
MySQL driver for Go. When I try to execute a query containing a variable i get the error that it is not implemented yet.
Error 1047: command handling not implemented yet: 22
q, err := db.Query(`
SELECT
COUNT(*)
FROM
commit_files
NATURAL JOIN
ref_commits
WHERE
ref_commits.ref_name = 'HEAD'
AND ref_commits.history_index = 0
AND commit_files.repository_id = ?
AND commit_files.file_path NOT REGEXP '^vendor.*'
`, repoID)