SqlText setText function and tab (\t) character in text definition
------------------------------------------------------------------------
Key: IBATIS-445
URL: https://issues.apache.org/jira/browse/IBATIS-445
Project: iBatis for Java
Issue Type: Bug
Components: SQL Maps
Affects Versions: 2.3.0
Environment: Z/OS (host platform), IBM DB2 version 7
Reporter: Enrico
Priority: Minor
When we have a '\t' character in a query string (reading from configuration
file) the db2 was unabled to cached the preparedStatement Query.
We have resolved this issue rewriting the method setText in class SqlText
public void setText(String text) {
this.text = text.replace('\r', ' ').replace('\n', ' ');
this.isWhiteSpace = text.trim().length() == 0;
}
in
public void setText(String text) {
this.text = text.replace('\r', ' ').replace('\n', ' ').replace('\t','');
this.isWhiteSpace = text.trim().length() == 0;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.