Testcontainers-java: Whitespaces are truncated from text values in init script in presence of C style comments

Created on 6 May 2019  路  3Comments  路  Source: testcontainers/testcontainers-java

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

modulejdbc resolutiopr-submitted typbug

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oneiros-de picture oneiros-de  路  3Comments

michael-simons picture michael-simons  路  3Comments

chomhanks picture chomhanks  路  3Comments

aruizca picture aruizca  路  4Comments

itudoben picture itudoben  路  3Comments