4 Jul 2007 16:23
Created: (IBATIS-445) SqlText setText function and tab (\t) character in text definition
Enrico (JIRA <ibatis-dev <at> incubator.apache.org>
2007-07-04 14:23:05 GMT
2007-07-04 14:23:05 GMT
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;
}
(Continue reading)
So when answering tough questions where you would normally want to
pick multiple choices, it's important that you pick the "primary" or
"most important" one....
Even though multiple choices apply, one always stands out. If it
doesn't, then you basically cancel out the survey option and you might
as well randomly choose one (because it would still have more meaning
than choosing multiples).
Cheers,
Clinton
On 7/7/07, Clinton Begin <clinton.begin <at> gmail.com> wrote:
> Hi everyone,
>
> I've put together a simple survey to help us set the direction for
> future versions of iBATIS.
>
> Please fill it out to ensure that iBATIS remains or becomes the
> product you want.
>
> It should only take 10 minutes to fill out. The results are not
> displayed, but I will publish a summary of them when I feel enough
> results have been submitted. So the faster you complete the survey,
> the faster you'll get to see the results.
>
RSS Feed