Ashish Bilochi opened DATAJDBC-44 and commented
JDBCTEMPLATE performs non padded comparison for CHAR sql Type. If a field has CHAR type in database table and the data in that table has length lesser then the size of field, select query will not return any row.
For eg :
Table : Account
Field ACCT_CODE CHAR(4)
Value in database = 'CON '
sql Select * from ACCOUNT a where a.ACCT_CODE = ?
jdbctemplate.query(sql, new Object[]{"CON"}, new RowCallbackHandler());
This will not return any row since "CON" does not matches "CON ".
Affects: Ext 1.0 M1, Ext 1.0 M2, Ext 1.0 RC1, Ext 1.0 RC2, Ext 1.0 RC3, Ext 1.0 RC4, Ext 1.0 RELEASE