Skip to content
Advertisement

Tag: postgresql

Spring boot – org.postgresql.util.PSQLException: FATAL: password authentication failed for user “postgres” [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 8 months ago. Improve this question

How to generate .dot file using Schemacrawler

Using schemcrawler I’ve generated html file But I want to have an output in .dot file that contains diagram, node, graph, edge etc.. So how can I do it using my code or maybe some another way to do it with Java? Answer Simply change the output format from TextOutputFormat.html to DiagramOutputFormat.scdot. Sualeh Fatehi, SchemaCrawler

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? Should I use PrepareStatement or something else? Answer I

Can’t automatically obtain ID for a record in database

My entity is: Method to write a record to the database. I just want to send it to the database and automatically obtain an ID for every record in this table, but every time when I do this – “status”: 500, “error”: “Internal Server Error”. And nothing changing in table. My table is: Why it doesn’t work so? Answer You

ValidationFailedException after Liquibase update to 4.9.1

We were using older Liquibase that we now wanted to update to 4.9.1 due to vulnerabilities in older versions. However, now at least one of our old migrations fails with ValidationFailedException: The constraintName is missing from <addPrimaryKey>. However, it worked just fine with the older versions. How can we fix this? If we change the migration, it changes its checksum

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 explicitCollectionsIds is empty/not filled

Advertisement