Currently, the query query that returns results is as follows:
SELECT nome, email, senha
FROM Professor
WHERE email = ? AND senha = HASHBYTES('SHA1','" + senha + "')
p.setString(1, email);
When trying to parameterize the value within the HASHBYTES resource (with the 'placeholder'? ', in the PreparedStatement of Java), there is some read / type / conversion error that causes the query not to return results.
What would be the correct way to parameterize this Query, then to do the binding with the value of the variable password ?