ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fcarballo <fcarba...@gmail.com>
Subject Duplicate CacheKey with several query parameters value on null (IBATIS-663)
Date Thu, 24 Sep 2009 15:21:13 GMT

I'm having a problem with cached stored procedures call, using null
When I call a stored procedure like: "call user.some_sp(?,?)" I get the same
cacheKey for parameters: [1, null] and [null, 1]
I think that the problem is in class
com.ibatis.sqlmap.engine.exchange.BaseDataExchange on method getCacheKey:
for (int i = 0; i < data.length; i++) {
      if (data[i] != null) {
If the paramValue is null, it is ignored. Then when I get the cacheKey, on
the parameters
 values part, I get |1| for both parameters pair.
View this message in context: http://www.nabble.com/Duplicate-CacheKey-with-several-query-parameters-value-on-null-%28IBATIS-663%29-tp25576546p25576546.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message