Sat, 04 Dec 2021 17:43:34 +0100
fixes bug in parameter index
src/main/kotlin/de/uapcore/lightpit/dao/PostgresDataAccessObject.kt | file | annotate | diff | comparison | revisions |
--- a/src/main/kotlin/de/uapcore/lightpit/dao/PostgresDataAccessObject.kt Sat Nov 27 13:05:22 2021 +0100 +++ b/src/main/kotlin/de/uapcore/lightpit/dao/PostgresDataAccessObject.kt Sat Dec 04 17:43:34 2021 +0100 @@ -684,7 +684,7 @@ val eventid = withStatement("insert into lpit_issue_history_event(issueid, subject, type) values (?,?,?::issue_history_event) returning eventid") { setInt(1, issueComment.issueid) - setString(1, issue.subject) + setString(2, issue.subject) setEnum(3, type) querySingle { it.getInt(1) }!! }