-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed as not planned
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement
Description
Yanming Zhou opened SPR-16211 and commented
I'm developing a query console using NamedParameterJdbcTemplate, I need get parameter names from sql to construct UI form let user input parameters
ParsedSql parsedSql = 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()
Reference URL: #1597
Issue Links:
- make org.springframework.jdbc.core.namedparam.ParsedSql public accessible [SPR-10816] #15442 make org.springframework.jdbc.core.namedparam.ParsedSql public accessible ("is duplicated by")
- NamedParameterJdbcTemplate fails on PostgreSQL array [SPR-16340] #20887 NamedParameterJdbcTemplate fails on PostgreSQL array
- SqlParameterSource needs method for extracting parameter names [SPR-16361] #20908 SqlParameterSource needs method for extracting parameter names
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement