Skip to content

Commit 0eec521

Browse files
ShreckYeCopilot
andauthored
Clarify about a TODO and convert it into an ordinary comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4a5c41a commit 0eec521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exposed-core/src/main/kotlin/org/jetbrains/exposed/v1/core/statements/UpsertStatement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ sealed interface UpsertBuilder {
106106
internal fun UpsertBuilder.getKeyColumns(vararg keys: Column<*>): List<Column<*>> {
107107
this as InsertStatement<*>
108108
return keys.asList().ifEmpty {
109-
// TODO If it's needed to avoid changes from the underlying `columns`, revert to `toList`.
109+
// If the underlying `columns` array can be mutated after this call, use `toList()` to avoid reflecting future changes.
110110
table.primaryKey?.columns?.asList() ?: table.indices.firstOrNull { it.unique }?.columns
111111
} ?: emptyList()
112112
}

0 commit comments

Comments
 (0)