You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to insert the value with a prepared statement into the table. To do that at one moment, I call something like this (Kotlin):
val statement:PGPreparedStatement=...
val type ="bytea"val array = arrayOf(byteArrayOf(0), byteArrayOf(1, 2, 3))
val argument = statement.connection.createArrayOf(type, array)
It works fine with the org.postgresql:postgresql:42.7.3, but fails with com.impossibl.pgjdbc-ng:pgjdbc-ng:0.8.9
The error occurred is the following:
com.impossibl.postgres.jdbc.PGSQLSimpleException: Error encoding array values
at com.impossibl.postgres.jdbc.ErrorUtils.makeSQLException(ErrorUtils.java:151)
at com.impossibl.postgres.jdbc.PGDirectConnection.createArrayOf(PGDirectConnection.java:1233)
...
The text was updated successfully, but these errors were encountered:
Version: 0.8.9
I have a table with the column of type
bytea[]
I want to insert the value with a prepared statement into the table. To do that at one moment, I call something like this (Kotlin):
It works fine with the
org.postgresql:postgresql:42.7.3
, but fails withcom.impossibl.pgjdbc-ng:pgjdbc-ng:0.8.9
The error occurred is the following:
The text was updated successfully, but these errors were encountered: