开始使用mysql驱动访问数据库时我们正常的模糊查询写法是
concat('%',#{contractId,jdbcType=VARCHAR},'%')
但是hana语法中concat方法是只有两个参数的,因此会报出
### Cause: java.sql.SQLException: A problem occurred while trying to acquire a cached PreparedStatement in a background thread.
; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; A problem occurred while trying to acquire a cached PreparedStatement in a background thread.; nested exception is java.sql.SQLException: A problem occurred while trying to acquire a cached PreparedStatement in a background thread.] with root cause
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [316]: wrong number of arguments in function invocation: line 8 col 28 (at pos 346)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionS