Skip to content

Commit

Permalink
And another bugfix.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Gasser <[email protected]>
  • Loading branch information
ppanopticon committed Jul 11, 2024
1 parent a792898 commit e8d026b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal class RetrievableWriter(override val connection: PgVectorConnection): R
this.connection.jdbc.prepareStatement("INSERT INTO $RETRIEVABLE_ENTITY_NAME ($RETRIEVABLE_ID_COLUMN_NAME, $RETRIEVABLE_TYPE_COLUMN_NAME) VALUES (?, ?);").use { stmt ->
stmt.setObject(1, item.id)
stmt.setString(2, item.type)
return stmt.execute()
return stmt.executeUpdate() == 1
}
} catch (e: SQLException) {
LOGGER.error(e) { "Failed to persist retrievable ${item.id} due to SQL error." }
Expand Down

0 comments on commit e8d026b

Please sign in to comment.