From dd1736f88f9794912c57c6297ce3bfbfaae2ecab Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Wed, 1 Mar 2023 05:58:02 -0500 Subject: [PATCH] fix statement prep --- .../compute/platform/intern/db/queries/update/queue-job.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/veupathdb/lib/compute/platform/intern/db/queries/update/queue-job.kt b/src/main/kotlin/org/veupathdb/lib/compute/platform/intern/db/queries/update/queue-job.kt index bcfb290..b10f672 100644 --- a/src/main/kotlin/org/veupathdb/lib/compute/platform/intern/db/queries/update/queue-job.kt +++ b/src/main/kotlin/org/veupathdb/lib/compute/platform/intern/db/queries/update/queue-job.kt @@ -24,8 +24,8 @@ private const val SQL = """ */ internal fun MarkJobQueued(con: Connection, jobID: HashID, queue: String) { con.prepareStatement(SQL).use { ps -> - ps.setBytes(1, jobID.bytes) - ps.setString(2, queue) + ps.setString(1, queue) + ps.setBytes(2, jobID.bytes) ps.execute() } } \ No newline at end of file