Получаю сообшение об ошибки.
java.sql.SQLException: Before start of result set sql exception!
Не понятна причина ошибки, кто может объяснить ?
String queryDataBase = "SELECT nickname,password,email FROM users WHERE nickname = ? AND password = ? AND email = ?";
PreparedStatement preparedStatement = connection.prepareStatement(queryDataBase);
preparedStatement.setString(1, name);
preparedStatement.setString(2, password);
preparedStatement.setString(3, email);
ResultSet resultSetQuery = preparedStatement.executeQuery();
if (resultSetQuery != null){
if (resultSetQuery.getString("nickname").equals(name)) {
System.out.println(resultSetQuery.getString("nickname"));
if (resultSetQuery.getString("password").equals(password)) {
System.out.println(resultSetQuery.getString("password"));
if (resultSetQuery.getString("email").equals(email)) {
System.out.println(resultSetQuery.getString("email"));