Add tests for Find functions

This commit is contained in:
2025-03-01 17:17:32 -05:00
parent 864477f997
commit 32f8db6196
7 changed files with 592 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ enum class Op(val sql: String) {
/** Compare existence in a list of values */
IN("IN"),
/** Compare overlap between an array and a list of values */
IN_ARRAY("?|"),
IN_ARRAY("??|"),
/** Compare existence */
EXISTS("IS NOT NULL"),
/** Compare nonexistence */

View File

@@ -86,6 +86,7 @@ object Parameters {
return try {
replaceNamesInQuery(query, parameters)
//.also(::println)
.let { conn.prepareStatement(it) }
.also { stmt ->
replacements.sortedBy { it.first }