Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

H2Util: Exclude PostgreSQL schema PG_CATALOG from being reset #12

Merged

Conversation

Undover
Copy link

@Undover Undover commented Apr 5, 2024

Starting from version 2.0.202 of h2database, the de.cronn.testutils.h2.H2Util#resetDatabase method has stopped working when running with MODE=PostgreSQL. It attempts to truncate tables in the PG_CATALOG schema which results in an exception, e.g:

  • java.lang.RuntimeException: org.h2.jdbc.JdbcSQLSyntaxErrorException: Cannot truncate "PG_CATALOG.PG_ATTRDEF"; SQL statement: TRUNCATE TABLE PG_CATALOG.PG_ATTRDEF RESTART IDENTITY [90106-206]

@rpost rpost self-assigned this Apr 6, 2024
@rpost rpost merged commit 1687094 into cronn:main Apr 6, 2024
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants