Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.9.0"
sqldelight = "2.0.0-rc02"
sqldelight = "2.0.0"
idea = "222.4459.24"
coroutines = "1.7.3"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private enum class PostgreSqlType(override val javaType: TypeName): DialectType
INTERVAL(ClassName("kotlinx.datetime", "DateTimePeriod")),
UUID(ClassName("kotlinx.uuid", "UUID"));

override fun prepareStatementBinder(columnIndex: String, value: CodeBlock): CodeBlock {
override fun prepareStatementBinder(columnIndex: CodeBlock, value: CodeBlock): CodeBlock {
return CodeBlock.builder()
.add(
when (this) {
Expand All @@ -99,7 +99,7 @@ private enum class PostgreSqlType(override val javaType: TypeName): DialectType
UUID -> "bindUUID"
}
)
.add("($columnIndex, %L)\n", value)
.add("(%L, %L)\n", columnIndex, value)
.build()
}

Expand Down