mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
Fixed SQLException when inserting a job
This commit is contained in:
parent
cdd95e2a9b
commit
5fe7df1bc5
@ -1,6 +1,7 @@
|
|||||||
# 4.15.0
|
# 4.15.0
|
||||||
- Fixed issue when the quest description only showed one lines of list.
|
- Fixed issue when the quest description only showed one lines of list.
|
||||||
- Added cost for skipping quests
|
- Added cost for skipping quests
|
||||||
|
- Fixed SQLException when inserting a job
|
||||||
|
|
||||||
# 4.14.0
|
# 4.14.0
|
||||||
- Fixed %titlename% placeholder does not showed anything
|
- Fixed %titlename% placeholder does not showed anything
|
||||||
|
@ -1451,7 +1451,7 @@ public abstract class JobsDAO {
|
|||||||
if (exp < 0)
|
if (exp < 0)
|
||||||
exp = 0;
|
exp = 0;
|
||||||
prest = conn.prepareStatement("INSERT INTO `" + getJobsTableName() + "` (`" + JobsTableFields.userid.getCollumn() + "`, `" + JobsTableFields.jobid.getCollumn()
|
prest = conn.prepareStatement("INSERT INTO `" + getJobsTableName() + "` (`" + JobsTableFields.userid.getCollumn() + "`, `" + JobsTableFields.jobid.getCollumn()
|
||||||
+ "`, `" + JobsTableFields.level.getCollumn() + "`, `" + JobsTableFields.experience.getCollumn() + "`, `" + JobsTableFields.job.getCollumn() + "`) VALUES (?, ?, ?, ?);");
|
+ "`, `" + JobsTableFields.level.getCollumn() + "`, `" + JobsTableFields.experience.getCollumn() + "`, `" + JobsTableFields.job.getCollumn() + "`) VALUES (?, ?, ?, ?, ?);");
|
||||||
prest.setInt(1, jPlayer.getUserId());
|
prest.setInt(1, jPlayer.getUserId());
|
||||||
prest.setInt(2, prog.getJob().getId());
|
prest.setInt(2, prog.getJob().getId());
|
||||||
prest.setInt(3, prog.getLevel());
|
prest.setInt(3, prog.getLevel());
|
||||||
|
Loading…
Reference in New Issue
Block a user