Skip to content

Commit

Permalink
🐛 page count query bind value
Browse files Browse the repository at this point in the history
  • Loading branch information
allbegray committed Mar 4, 2023
1 parent e9d94e6 commit 554c6b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = 'herbaccara'
version = '0.0.12'
version = '0.0.13'
sourceCompatibility = '17'

publishing {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/herbaccara/jooq/Pagination.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Pagination {
} else {
dsl
.select(DSL.count())
.from("( $sql )")
.from("( $sql )", *query.bindValues.toTypedArray())
.single()
.value1()
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/kotlin/herbaccara/jooq/PaginationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class PaginationTest {

private val table = DSL.table("\"board\"")

private val id = table.field("id", Int::class.java)
private val title = table.field("title", String::class.java)
private val id = DSL.field("id", Int::class.java)
private val title = DSL.field("title", String::class.java)

private val baseQuery = dsl
.select(
Expand Down

0 comments on commit 554c6b9

Please sign in to comment.