Skip to content
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
@meyskens

Description

@meyskens

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    empathy-sessionsIssue filed as as part of empathy sessionsfeatureproposalproposal for new additions or changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions