mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Merge branch 'fix-issue-marketplace-sql' into 'dev'
Fix issue when try cancel the item on marketplace See merge request morningstar/Arcturus-Community!499
This commit is contained in:
commit
7efe8bd618
@ -67,7 +67,7 @@ public class MarketPlace {
|
||||
if (offer != null && habbo.getInventory().getMarketplaceItems().contains(offer)) {
|
||||
RequestOffersEvent.cachedResults.clear();
|
||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection()) {
|
||||
try (PreparedStatement ownerCheck = connection.prepareStatement("SELECT user_id FROM marketplace_items WHERE id = ?")) {
|
||||
try (PreparedStatement ownerCheck = connection.prepareStatement("SELECT user_id FROM marketplace_items WHERE id = ?", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)) {
|
||||
ownerCheck.setInt(1, offer.getOfferId());
|
||||
try (ResultSet ownerSet = ownerCheck.executeQuery()) {
|
||||
ownerSet.last();
|
||||
|
Loading…
Reference in New Issue
Block a user