Kabbura
03/12/2020, 7:30 PMlimit
function does not generate sql when the limit size is 0, as the function implementation is
open fun queryLimit(size: Int, offset: Int, alreadyOrdered: Boolean) = buildString {
if (size > 0) {
append("LIMIT $size")
if (offset > 0) {
append(" OFFSET $offset")
}
}
}
Shouldn't be if (size >= 0)
instead?
My use case is that the limit size is generated dynamically, and when it is 0, the sql query results should be empty.tapac
03/12/2020, 7:47 PMKabbura
03/12/2020, 9:35 PM