gvdutra opened a new issue, #7499:
URL: https://github.com/apache/hop/issues/7499

   ### Apache Hop version?
   
   SNAPSHOT-20260711
   
   ### Java version?
   
   OpenJDK Temurin 21.0.11
   
   ### Operating system
   
   macOS
   
   ### What happened?
   
   `SqlScriptParser.removeComments` removes block comments without preserving a 
token boundary. When a comment appears between SQL word characters, the 
surrounding tokens are merged and the resulting SQL changes meaning or becomes 
invalid.
   
   Steps to reproduce:
   
   ```java
   new SqlScriptParser(true).removeComments("SELECT/* comment */1");
   ```
   
   Expected:
   
   ```sql
   SELECT 1
   ```
   
   Actual:
   
   ```sql
   SELECT1
   ```
   
   This affects callers that remove comments before executing or otherwise 
processing SQL. A separator should be preserved when both sides of the removed 
block comment are SQL word characters.
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Database
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to