Skip to content

Tag: postgresql

Parametrized query request postgresql

I want to get data from my DB where is LocalDateTime equals to LocalDateTime in get request. Timeslot table code: Controller code: But when I did this request result in console is: org.postgresql.util.PSQLException: ERROR: syntax error at end of input. How do i change sql request code to fix this error? Shoul…

Result set is empty but query works in Postgres

I’m trying to get some results from Postgres into my Java application. As of now, I always used PreparedStatements with ResultSets to get data from my database in memory. But today my code refuses to work, although I use the same code as usual. Here is my piece of code: Here is the log: The ArrayList ex…