Renamed SQL table item_mall_transactions to prime_shop_transactions.
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| CREATE TABLE IF NOT EXISTS `item_mall_transactions` ( | CREATE TABLE IF NOT EXISTS `prime_shop_transactions` ( | ||||||
|   `charId` INT UNSIGNED NOT NULL DEFAULT 0, |   `charId` INT UNSIGNED NOT NULL DEFAULT 0, | ||||||
|   `productId` INT NOT NULL DEFAULT 0, |   `productId` INT NOT NULL DEFAULT 0, | ||||||
|   `quantity` INT NOT NULL DEFAULT 1, |   `quantity` INT NOT NULL DEFAULT 1, | ||||||
| @@ -121,9 +121,9 @@ public class RequestBrBuyProduct implements IClientIncomingPacket | |||||||
| 		player.sendPacket(new ExBrBuyProduct(ExBrBuyProduct.RESULT_OK)); | 		player.sendPacket(new ExBrBuyProduct(ExBrBuyProduct.RESULT_OK)); | ||||||
| 		player.broadcastUserInfo(); | 		player.broadcastUserInfo(); | ||||||
| 		 | 		 | ||||||
| 		// Save transaction info at SQL table item_mall_transactions | 		// Save transaction info at SQL table prime_shop_transactions | ||||||
| 		try (Connection con = DatabaseFactory.getConnection(); | 		try (Connection con = DatabaseFactory.getConnection(); | ||||||
| 			PreparedStatement statement = con.prepareStatement("INSERT INTO item_mall_transactions (charId, productId, quantity) values (?,?,?)")) | 			PreparedStatement statement = con.prepareStatement("INSERT INTO prime_shop_transactions (charId, productId, quantity) values (?,?,?)")) | ||||||
| 		{ | 		{ | ||||||
| 			statement.setLong(1, player.getObjectId()); | 			statement.setLong(1, player.getObjectId()); | ||||||
| 			statement.setInt(2, product.getProductId()); | 			statement.setInt(2, product.getProductId()); | ||||||
|   | |||||||
| @@ -42,7 +42,7 @@ public class ExBrRecentProductList implements IClientOutgoingPacket | |||||||
| 		final int playerObj = player.getObjectId(); | 		final int playerObj = player.getObjectId(); | ||||||
| 		 | 		 | ||||||
| 		try (Connection con = DatabaseFactory.getConnection(); | 		try (Connection con = DatabaseFactory.getConnection(); | ||||||
| 			PreparedStatement statement = con.prepareStatement("SELECT productId FROM item_mall_transactions WHERE charId=? ORDER BY transactionTime DESC")) | 			PreparedStatement statement = con.prepareStatement("SELECT productId FROM prime_shop_transactions WHERE charId=? ORDER BY transactionTime DESC")) | ||||||
| 		{ | 		{ | ||||||
| 			statement.setInt(1, playerObj); | 			statement.setInt(1, playerObj); | ||||||
| 			try (ResultSet rset = statement.executeQuery()) | 			try (ResultSet rset = statement.executeQuery()) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment