1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-02 14:29:07 +01:00

Fixed SQLException when inserting a job

This commit is contained in:
montlikadani 2019-11-10 12:50:41 +01:00
parent cdd95e2a9b
commit 5fe7df1bc5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# 4.15.0
- Fixed issue when the quest description only showed one lines of list.
- Added cost for skipping quests
- Fixed SQLException when inserting a job
# 4.14.0
- Fixed %titlename% placeholder does not showed anything

View File

@ -1451,7 +1451,7 @@ public abstract class JobsDAO {
if (exp < 0)
exp = 0;
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(2, prog.getJob().getId());
prest.setInt(3, prog.getLevel());