You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose parameter names from ParsedSql [SPR-16211] #20759
in: dataIssues in data modules (jdbc, orm, oxm, tx)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement
I'm developing a query console using NamedParameterJdbcTemplate, I need get parameter names from sql to construct UI form let user input parameters
ParsedSqlparsedSql = NamedParameterUtils.parseSqlStatement(sql);
List<String> params = parsedSql.getParameterNames(); //NOT public
It's better if NamedParameterJdbcTemplate could provide a method to get parameter name and parameter type, using PreparedStatement.getParameterMetaData().getParameterType()
ParsedSql would have to provide new accessor methods which don't allow for mutation; the current methods are really only meant to for internal purposes. Let's revisit this for 5.1.
in: dataIssues in data modules (jdbc, orm, oxm, tx)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement
Activity
spring-projects-issues commentedon Jan 10, 2018
Juergen Hoeller commented
ParsedSqlwould have to provide new accessor methods which don't allow for mutation; the current methods are really only meant to for internal purposes. Let's revisit this for 5.1.spring-projects-issues commentedon Oct 22, 2018
Yanming Zhou commented
Please revisit this for 5.1.
rengy-github commentedon Feb 14, 2020
Namedparameterutils is a tool class. I also want to use this class instead of copying one