mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Addresses #889: update mysql connector
This commit is contained in:
parent
1bb8719cab
commit
c865bb2382
2
pom.xml
2
pom.xml
@ -106,7 +106,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.49</version>
|
<version>8.0.22</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
@ -257,7 +257,7 @@ public class HabboStats implements Runnable {
|
|||||||
try (PreparedStatement statement = connection.prepareStatement("SELECT * FROM users_settings WHERE user_id = ? LIMIT 1")) {
|
try (PreparedStatement statement = connection.prepareStatement("SELECT * FROM users_settings WHERE user_id = ? LIMIT 1")) {
|
||||||
statement.setInt(1, habboInfo.getId());
|
statement.setInt(1, habboInfo.getId());
|
||||||
try (ResultSet set = statement.executeQuery()) {
|
try (ResultSet set = statement.executeQuery()) {
|
||||||
set.first();
|
set.next();
|
||||||
if (set.getRow() != 0) {
|
if (set.getRow() != 0) {
|
||||||
stats = new HabboStats(set, habboInfo);
|
stats = new HabboStats(set, habboInfo);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user