Skip to content

Commit

Permalink
Update UpdateStatement.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
esperar authored Oct 9, 2023
1 parent eda64ad commit dcccdb9
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ open class UpdateStatement(val targetsSet: ColumnSet, val limit: Int?, val where
}

override fun arguments(): Iterable<Iterable<Pair<IColumnType, Any?>>> = QueryBuilder(true).run {
if (targetsSet is Join && currentDialect is OracleDialect) {
where?.toQueryBuilder(this)
values.forEach {
registerArgument(it.key, it.value)
when {
targetsSet is Join && currentDialect is OracleDialect -> {
where?.toQueryBuilder(this)
values.forEach {
registerArgument(it.key, it.value)
}
}
} else {
values.forEach {
registerArgument(it.key, it.value)
else -> {
values.forEach {
registerArgument(it.key, it.value)
}
where?.toQueryBuilder(this)
}
where?.toQueryBuilder(this)
}
if (args.isNotEmpty()) listOf(args) else emptyList()
}

}

0 comments on commit dcccdb9

Please sign in to comment.