PostgreSQL is giving me a couple of issues, and I'm not sure what the issue is. I have a simple main fuction at the moment with just connects to my database, and a transaction. i simple application is giving me the error
Caused by: org.postgresql.util.PSQLException: This ResultSet is closed.
which is quite curious
Copy code
Database.connect(
url = "jdbc:<postgresql://localhost:5432/library>",
user = "hm",
password = "wouldn't u like to know",
driver = "org.postgresql.Driver"
)
transaction {
Books.select { Op.TRUE }.forEach(::println)
}
t
tapac
07/16/2019, 4:54 PM
What is Books? Do you have custom toString on it?
h
Hamza
07/21/2019, 7:31 AM
The issue was that I was using a too recent version of PostgreSQL. Using the version in the wiki solved the issue
t
tapac
07/22/2019, 1:10 PM
What was an issue? And on which Postgresql version?