Skip to content

Commit 3cf3f44

Browse files
update comment
1 parent a394bb5 commit 3cf3f44

File tree

1 file changed

+3
-1
lines changed
  • ktorm-support-postgresql/src/test/kotlin/org/ktorm/support/postgresql

1 file changed

+3
-1
lines changed

ktorm-support-postgresql/src/test/kotlin/org/ktorm/support/postgresql/FunctionsTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class FunctionsTest : BasePostgreSqlTest() {
4848

4949
println(results)
5050
assert(results.size == 1)
51-
assert(results[0] == tupleOf(1, 1, 1, 1, 2)) // text[] is one-based, others are zero-based.
51+
52+
// text[] is one-based, others are zero-based. See https://stackoverflow.com/questions/69649737/postgres-array-positionarray-element-sometimes-0-indexed
53+
assert(results[0] == tupleOf(1, 1, 1, 1, 2))
5254
}
5355

5456
@Test

0 commit comments

Comments
 (0)