diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/ColumnType.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/ColumnType.kt index f3c35ac1f4..a51959efec 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/ColumnType.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/ColumnType.kt @@ -69,7 +69,7 @@ interface IColumnType { } /** - * Function checks that provided value suites the column type and throws [IllegalArgumentException] otherwise. + * Function checks that provided value is suites the column type and throws [IllegalArgumentException] otherwise. * [value] can be of any type (including [Expression]) * */ @Throws(IllegalArgumentException::class) diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/statements/UpdateBuilder.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/statements/UpdateBuilder.kt index 5577b01274..cb6cef45f9 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/statements/UpdateBuilder.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/statements/UpdateBuilder.kt @@ -14,7 +14,6 @@ abstract class UpdateBuilder(type: StatementType, targets: List) : open operator fun set(column: Column, value: S) { when { - values.containsKey(column) -> error("$column is already initialized") !column.columnType.nullable && value == null -> error("Trying to set null to not nullable column $column") else -> { column.columnType.validateValueBeforeUpdate(value)