We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94dc58 commit c27ee91Copy full SHA for c27ee91
jdbc-mybatis/src/main/java/com/vonchange/jdbc/mybatis/MybatisJdbcTemplate.java
@@ -40,13 +40,13 @@ protected PreparedStatementCreator getPreparedStatementCreator(String sql, SqlPa
40
if(null==sqlParam){
41
return getPreparedStatementCreatorOriginal(sql,paramSource,customizer);
42
}
43
+ Object[] paramObj=sqlParam.getParams().toArray();
44
List<SqlParameter> declaredParameters = buildSqlParameterList(sqlParam.getParams());
45
PreparedStatementCreatorFactory pscf = new PreparedStatementCreatorFactory(sqlParam.getSql(),declaredParameters);
46
if (customizer != null) {
47
customizer.accept(pscf);
48
- Object[] paramObj=sqlParam.getParams().toArray();
49
- return pscf.newPreparedStatementCreator(paramObj);
+ return pscf.newPreparedStatementCreator(sqlParam.getSql(),paramObj);
50
51
protected PreparedStatementCreator getPreparedStatementCreatorOriginal(String sql, SqlParameterSource paramSource,
52
@Nullable Consumer<PreparedStatementCreatorFactory> customizer) {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments