fixes bug in parameter index

Sat, 04 Dec 2021 17:43:34 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 04 Dec 2021 17:43:34 +0100
changeset 244
28052f3b9cf9
parent 243
a1c2611b02fc
child 245
97b4d0605318

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) }!!
             }

mercurial