8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773a28d commit 8fb137aCopy full SHA for 8fb137a
postgresql-async/src/main/scala/com/github/mauricio/async/db/postgresql/PostgreSQLConnection.scala
@@ -191,11 +191,16 @@ class PostgreSQLConnection
191
var x = 0
192
193
while ( x < m.values.size ) {
194
- items(x) = if ( m.values(x) == 8A33 null ) {
+ val buf = m.values(x)
195
+ items(x) = if ( buf == null ) {
196
null
197
} else {
- val columnType = this.currentQuery.get.columnTypes(x)
198
- this.decoderRegistry.decode(columnType, m.values(x), configuration.charset)
+ try {
199
+ val columnType = this.currentQuery.get.columnTypes(x)
200
+ this.decoderRegistry.decode(columnType, buf, configuration.charset)
201
+ } finally {
202
+ buf.release()
203
+ }
204
}
205
x += 1
206
0 commit comments