Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

When deleting data from JDBC resource, driver class needs to be initialised in some circumstances #78

Open
pflooky opened this issue Oct 23, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@pflooky
Copy link

pflooky commented Oct 23, 2024

From testing with Data Caterer example PostgresPlanRun, if you set the following plan flags after generating data:

val config = configuration
  .generatedReportsFolderPath("/opt/app/data/report")
  .enableUniqueCheck(true)
  .enableRecordTracking(true)
  .enableDeleteGeneratedRecords(true)
  .enableGenerateData(false)

You get error:
Caused by: java.sql.SQLException: No suitable driver found for jdbc:postgresql://host.docker.internal:5432/customer

A quick fix is to add this line of code: Class.forName("org.postgresql.Driver")

@pflooky pflooky added the bug Something isn't working label Oct 23, 2024
@pflooky pflooky added this to the 0.12.x milestone Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant