The dimensional merchant is not working ok.
For example i'm receiving 50 adena. If i take 50 adena, the row is deleted from the database and is all ok. But if i receive 49 it is not being updated and after every restart you can receive 49 adena again.
I fixed this bug in another java proyect, it's a pretty simple change.
Цитата:
[18:14:36] ERROR
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'itemCount' at row 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:4094)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:4028)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:24 90)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :2651)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionIm pl.java:2734)
at com.mysql.jdbc.PreparedStatement.executeInternal(P reparedStatement.java:2155)
at com.mysql.jdbc.PreparedStatement.execute(PreparedS tatement.java:1379)
at org.apache.commons.dbcp.DelegatingPreparedStatemen t.execute(DelegatingPreparedStatement.java:172)
at org.apache.commons.dbcp.DelegatingPreparedStatemen t.execute(DelegatingPreparedStatement.java:172)
at l2s.gameserver.model.Player.updatePremiumItem(Play er.java:4948)
at l2s.gameserver.network.l2.c2s.RequestWithDrawPremi umItem.runImpl(RequestWithDrawPremiumItem.java:66)
at l2s.gameserver.network.l2.c2s.L2GameClientPacket.r un(L2GameClientPacket.java:49)
at l2s.commons.net.nio.impl.MMOExecutableQueue.run(MM OExecutableQueue.java:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
|