I'm creating a query to select rows with a given URL.
I'm using this code to create the query and retrieve the data
pages_query := `
SELECT id
FROM pages
WHERE url = 'my.url.com?param=23/'`
stmt, err := datastore.DB.Prepare(pages_query)
rows, err := stmt.Query()
But it does not retrieve any data, though there are records matching that query in the database.
I believe that is because the stmt.Query() replaces the '?' with none, but I haven't been able to scape it.
How could I scape that question mark?