Hi, I noticed, that test-containers removes whitespace characters from VARCHAR values in init script when C style comments are present.
Please check sample project demonstrating a problem: https://github.com/ParafeniukMikalaj/testcontainers-jdbc-test
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.
Not stale. Let鈥檚 check this again - if it鈥檚 not fixed in the latest improvements to ScriptUtils, we should add a test case and fix it.
Sorry for leaving this so long @ParafeniukMikalaj. I've created a quick test case in #1702, which I believe is equivalent to your repro example and shows that the problem is no longer occurring. Please have a look if you have time.
Thank you for taking the time to report the issue and develop a repro example back in May; if this had still been a problem it would certainly have been important to fix, and having a test for this now lets us guard against regressions.
Most helpful comment
Not stale. Let鈥檚 check this again - if it鈥檚 not fixed in the latest improvements to ScriptUtils, we should add a test case and fix it.