Open daemas opened 7 years ago
It worked for me in version 0.6, but after upgrading to a newer version it stopped working. I think this happened because of the replacement of LinkedHashMap
with a HashMap
in PgConnection
class to store information about columns. LinkedHashMap
guarantees the order of the inserted elements, while HashMap
does not, according to Java specification.
I can confirm @daemas findings. I was indeed able to fix this issue by changing the HashMap
back to a LinkedHashMap
in PgConnection.getColumns()
.
PgRow's
get***(int index)
methods are broken because the order of columns is messed up in PgRow.columns and PgRow.pgColumns.