Skip to content

Commit

Permalink
MySQL8 compatibility fixes. #2466
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Jun 26, 2023
1 parent 58c8ce8 commit 81e8668
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public boolean verifyPassword(User user, String password) {

Connection connection = this.databaseSpring.connect();
try {
PreparedStatement preStat = connection.prepareStatement(query);
PreparedStatement preStat = connection.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
try {
preStat.setString(1, password);
preStat.setString(2, user.getLogin());
Expand Down Expand Up @@ -480,7 +480,7 @@ public boolean verifyResetPasswordToken(User user, String resetPasswordToken) {

Connection connection = this.databaseSpring.connect();
try {
PreparedStatement preStat = connection.prepareStatement(query);
PreparedStatement preStat = connection.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
try {
preStat.setString(1, resetPasswordToken);
preStat.setString(2, user.getLogin());
Expand Down Expand Up @@ -523,7 +523,7 @@ public boolean verifyAPIKey(String apiKey) {

Connection connection = this.databaseSpring.connect();
try {
PreparedStatement preStat = connection.prepareStatement(query);
PreparedStatement preStat = connection.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
try {
preStat.setString(1, apiKey);
ResultSet rs = preStat.executeQuery();
Expand Down

0 comments on commit 81e8668

Please sign in to comment.