Skip to content

Procedure with one output parameter [DATAJPA-1442] #1759

Closed
@spring-projects-issues

Description

@spring-projects-issues

Carlos Orellana Bermejo opened DATAJPA-1442 and commented

Creating a procedure like:

@NamedStoredProcedureQuery(name = "get_error_db" , procedureName = "DB_NAME", parameters = {
@StoredProcedureParameter(mode = ParameterMode.OUT, name = "P_ERROR", type = String.class)

and doing the calling:

@Procedure(name = "get_error_db")
String getErrorDB();

 

i got this error:

Invalid mix of named and positional parameters; nested exception is java.lang.IllegalArgumentException: Invalid mix of named and positional parameters

 

For resolving this error I deleted the name of the parameter P_ERROR in the procedure creation. I don't know if this is a bug or this is the normal method of doing this type of query


Affects: 2.1.1 (Lovelace SR1)

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions