Decathlon / tzatziki

Decathlon library to ease and promote Test Driven Development of Java microservices!
Apache License 2.0
62 stars 30 forks source link

[Tzatziki JPA] Keyword 'only' does not work on multi-schemas databases #344

Closed mfnztdkt closed 1 month ago

mfnztdkt commented 2 months ago

Context : a multi-schemas database

The method the_repository_will_contain_with_type launches a Truncate in case of InsertionMode.ONLY . That Truncate does not take schema into account, leading to that error "StatementCallback; bad SQL grammar [TRUNCATE TABLE RESTART IDENTITY CASCADE]", when trying to truncate a table located in another schema than the one defined in the datasource.

I don't know if it is the best solution, however the following solves the issue :

Can you tell if you plan to add that feature in Tzatziki soon ?

alexandrepa commented 2 months ago

Hi, this issue is closely linked to issue #340, I will do a global fix to handle multiple schema database. Can be confident that the fix will be release in a new version before the end of the week.

mfnztdkt commented 2 months ago

Great, thank you !

alexandrepa commented 1 month ago

v1.6.0 should resolve your issue.