File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/kotlin/io/github/freya022/botcommands/internal/core/db/query Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import io.github.freya022.botcommands.api.core.db.query.ParametrizedQueryFactory
77import io.github.freya022.botcommands.api.core.service.annotations.BService
88import io.github.freya022.botcommands.api.core.service.annotations.Lazy
99import io.github.oshai.kotlinlogging.KotlinLogging
10+ import java.sql.Array as SqlArray
1011import java.sql.Connection
1112import java.sql.DatabaseMetaData
1213import java.sql.PreparedStatement
13- import java.sql.Array as SqlArray
1414
1515@Lazy
1616@BService
@@ -27,6 +27,7 @@ internal object PostgresParametrizedQueryFactory : ParametrizedQueryFactory<Post
2727 // Attempt to replace those with our own representation
2828 override fun addValue (index : Int , value : Any? ) {
2929 if (value == null ) return
30+ if (value is ByteArray ) return
3031 if (value.javaClass.isArray || value is SqlArray ) {
3132 values.put(index, formatParameter(value))
3233 }
You can’t perform that action at this time.
0 commit comments