包:com.gdxsoft.easyweb.script.display.action
类 ActionListFrame
方法 createSqlSearch
处理当数据库为 HSQLDB时候,ListFrame的字符串查询参数大小写敏感的问题,手工转成大写
/**
* 合成用户检索表达式
*
* @param conn
* @return
* @throws Exception
*/
private String createSqlSearch(DataConnection conn) throws Exception {
String databaseType = conn.getDatabaseType();
if (databaseType == null) {
databaseType = "";
} else {
databaseType = databaseType.trim().toUpperCase();
}
....
if (databaseType.equals("HSQLDB")) {
s.al("(UPPER(" + dataField + ") like '%" + exp.replace("'", "''").toUpperCase() + "%')");
} else {
s.al("(" + dataField + " like '%" + exp.replace("'", "''") + "%')");
}
}